|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
JUnit test for the class VarElectionMEssengerTest. More...

Classes | |
| class | IdIncreasingVerifyer |
| A IncomingMsgPolicyInterface used in JUNIT VarElectionMessengerTest to test whenever ID send are strictly increasing. More... | |
Public Member Functions | |
| VarElectionMessengerTest (String method) | |
| Constructor that instantiates a test only for the input method. | |
| Public Member Functions inherited from frodo2.algorithms.varOrdering.election.tests.LeaderElectionMaxIDTest< Integer > | |
| LeaderElectionMaxIDTest (String method) | |
| Constructor that instantiates a test only for the input method. | |
| void | testRandomSharedMemory () throws IOException |
| Tests the DFS generation protocol on a random graph using QueueIOPipes. | |
| void | testRandomTCP () throws IOException |
| Tests the DFS generation protocol on a random graph using TCP pipes. | |
| void | testRandom (boolean useTCP) throws IOException |
| Tests the leader election protocol on a random graph of "agents". | |
| Collection< MessageType > | getMsgTypes () |
| void | notifyIn (Message msg) |
| Keeps track of the output of the leader election protocol sent by each agent. | |
| void | setQueue (Queue queue) |
| Does nothing in this case. | |
Static Public Member Functions | |
| static TestSuite | suite () |
| Static Public Member Functions inherited from frodo2.algorithms.varOrdering.election.tests.LeaderElectionMaxIDTest< Integer > | |
| static TestSuite | suite () |
| static Map< String, String > | computeLeaders (List< String > nodes, List< List< String > > components) |
| Compute the leaders. | |
Protected Member Functions | |
| int | getNbrMsgsNeeded () |
| Map< String, Integer > | initiatingIDandListener () |
| void | checkOutputs (Map< String, Integer > allUniqueIDs) |
| Protected Member Functions inherited from frodo2.algorithms.varOrdering.election.tests.LeaderElectionMaxIDTest< Integer > | |
| void | setUp () |
| void | tearDown () throws Exception |
| Ends all queues. | |
| Map< String, S > | initiatingIDandListener () |
| Compute uniqueID, link them with variable name and generate listeners. | |
| void | checkOutputs (Map< String, S > allUniqueIDs) |
| Called to verify output correctness. | |
| int | getNbrMsgsNeeded () |
Additional Inherited Members | |
| Protected Attributes inherited from frodo2.algorithms.varOrdering.election.tests.LeaderElectionMaxIDTest< Integer > | |
| int | nbrAgents |
| Number of agents in the test. | |
| Map< String, Queue > | queues |
| List of queues, indexed by agent name. | |
| Map< String, MessageLEoutput< String > > | outputs |
| For each agent, the output of LeaderElectionMaxID. | |
| Integer | remainingOutputs |
| Current number of agents that still need to 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. | |
| 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. | |
JUnit test for the class VarElectionMEssengerTest.
| frodo2.algorithms.varOrdering.election.tests.VarElectionMessengerTest.VarElectionMessengerTest | ( | String | method | ) |
Constructor that instantiates a test only for the input method.
| method | test method |
Referenced by suite().
|
protected |
References frodo2.algorithms.varOrdering.election.tests.LeaderElectionMaxIDTest< Integer >.computeLeaders(), frodo2.algorithms.varOrdering.election.tests.LeaderElectionMaxIDTest< Integer >.graph, and frodo2.algorithms.varOrdering.election.tests.LeaderElectionMaxIDTest< Integer >.outputs.

|
protected |
|
protected |
References frodo2.communication.Queue.addIncomingMessagePolicy(), frodo2.algorithms.varOrdering.election.tests.LeaderElectionMaxIDTest< Integer >.graph, frodo2.algorithms.varOrdering.election.tests.LeaderElectionMaxIDTest< Integer >.nbrAgents, and frodo2.algorithms.varOrdering.election.tests.LeaderElectionMaxIDTest< Integer >.queues.

|
static |
References VarElectionMessengerTest().
Referenced by frodo2.algorithms.varOrdering.election.tests.AllTestsElection.suite().
