JUnit test for the class SecureVarElection.
More...
|
| static TestSuite | suite () |
| static TestSuite | suite () |
|
| void | initiateParamAndListener (XCSPparser< AddableInteger, AddableReal > parser, Class< ? extends ScoringHeuristic<?> > heuristic, Class< ? extends ScoringHeuristic<?> > tiebreaking, int diameter) throws NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException |
| void | checkOutputs (Class<?> heuristic, Map< String, Integer > allUniqueIDs) |
| void | setUp () |
| void | tearDown () throws Exception |
| | Ends all queues.
|
| void | checkOutputs (Class<?> heuristic, Map< String, S > allUniqueIDs) |
| | Checks that the outputs of the module are consistent with the correct outputs for the given heuristic.
|
| void | initiateParamAndListener (XCSPparser< AddableInteger, AddableReal > parser, Class< ? extends ScoringHeuristic<?> > heuristic, Class< ? extends ScoringHeuristic<?> > tiebreaking, int diameter) throws NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException |
| | Initiate the parameter and the listener by reflection.
|
| VariableElection<?> | getNewInstance (Constructor<?> constr, Object[] args) throws IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException |
|
| Map< String, MessageLEoutput< S > > | outputs |
| | For each variable, the output of VariableElection.
|
| int | remainingOutputs |
| | Current number of variables that have not yet sent their output of the leader election protocol.
|
| final ReentrantLock | finished_lock |
| | Used to make the test thread wait.
|
| final Condition | finished |
| | Used to wake up the test thread when all agents have finished.
|
| Map< String, Queue > | queues |
| | List of queues, indexed by agent name.
|
| RandGraphFactory.Graph | graph |
| | Random graph used to generate a constraint graph.
|
| Map< String, QueueOutputPipeInterface > | pipes |
| | One output pipe used to send messages to each queue, indexed by the queue's agent name.
|
| boolean | useTCP |
| | true whether TCP pipes should be used instead of QueueIOPipes
|
JUnit test for the class SecureVarElection.
◆ SecureVarElectionTest()
| frodo2.algorithms.varOrdering.election.tests.SecureVarElectionTest.SecureVarElectionTest |
( |
boolean | useTCP | ) |
|
◆ checkOutputs()
| void frodo2.algorithms.varOrdering.election.tests.SecureVarElectionTest.checkOutputs |
( |
Class<?> | heuristic, |
|
|
Map< String, Integer > | allUniqueIDs ) |
|
protected |
◆ initiateParamAndListener()
| void frodo2.algorithms.varOrdering.election.tests.SecureVarElectionTest.initiateParamAndListener |
( |
XCSPparser< AddableInteger, AddableReal > | parser, |
|
|
Class< ? extends ScoringHeuristic<?> > | heuristic, |
|
|
Class< ? extends ScoringHeuristic<?> > | tiebreaking, |
|
|
int | diameter ) throws NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException |
|
protected |
◆ suite()
| TestSuite frodo2.algorithms.varOrdering.election.tests.SecureVarElectionTest.suite |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: