Test case for the module SecureCircularRouting.
More...
|
| class | TestMessage |
| | A message holding the sender variable and the number of variables visited so far. More...
|
| class | Forwarder |
| | A test listener that asks the SecureCircularRouting message, for each variable, to forward a message forward all the way until it comes back, and same backwards. More...
|
|
| static TestSuite | suite () |
Test case for the module SecureCircularRouting.
- Author
- Thomas Leaute
◆ SecureCircularRoutingTest()
| frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.SecureCircularRoutingTest |
( |
String | name, |
|
|
boolean | useTCP ) |
Constructor from a method name.
- Parameters
-
| name | the name of the test method |
| useTCP | whether to use TCP pipes |
References useTCP.
Referenced by suite().
◆ getMsgTypes()
| Collection< MessageType > frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.getMsgTypes |
( |
| ) |
|
◆ notifyIn()
| void frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.notifyIn |
( |
Message | msg | ) |
|
◆ setQueue()
| void frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.setQueue |
( |
Queue | queue | ) |
|
◆ setUp()
| void frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.setUp |
( |
| ) |
throws Exception |
|
protected |
- See also
- junit.framework.TestCase#setUp()
References frodo2.communication.Queue.addIncomingMessagePolicy(), frodo2.algorithms.test.AllTests.createQueueNetwork(), dfs, frodo2.algorithms.dpop.privacy.SecureCircularRouting.DFS_OUTPUT_MSG_TYPE, frodo2.algorithms.test.AllTests.generateProblem(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getAgentNeighborhoods(), frodo2.algorithms.RandGraphFactory.getRandGraph(), frodo2.algorithms.dpop.privacy.SecureCircularRouting.getStatsFromQueue(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.getStatsFromQueue(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getSubProblem(), graph, maxNbrAgents, maxNbrEdges, maxNbrVars, myQueue, frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.OUTPUT_MSG_TYPE, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse(), parser, queues, frodo2.communication.Queue.setProblem(), frodo2.algorithms.dpop.privacy.SecureCircularRouting.setSilent(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.setSilent(), frodo2.algorithms.AgentInterface< V extends Addable< V > >.STATS_MONITOR, and useTCP.
◆ suite()
| TestSuite frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.suite |
( |
| ) |
|
|
static |
◆ tearDown()
| void frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.tearDown |
( |
| ) |
|
|
protected |
◆ test()
| void frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.test |
( |
| ) |
|
◆ countdown
| int frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.countdown |
|
private |
Countdown until the test terminates.
Referenced by notifyIn().
◆ dfs
The underlying DFS.
Referenced by setUp().
◆ finished
| final Condition frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.finished = finished_lock.newCondition() |
|
private |
Used to wake up the test thread when all agents have finished.
Referenced by notifyIn().
◆ finished_lock
| final ReentrantLock frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.finished_lock = new ReentrantLock () |
|
private |
Used to make the test thread wait.
Referenced by notifyIn().
◆ graph
| Graph frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.graph |
|
private |
◆ maxNbrAgents
| final int frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.maxNbrAgents = 10 |
|
staticprivate |
The maximum number of agents in the random test problems.
Referenced by setUp().
◆ maxNbrEdges
| final int frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.maxNbrEdges = 200 |
|
staticprivate |
The maximum number of edges in the random test problems.
Referenced by setUp().
◆ maxNbrVars
| final int frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.maxNbrVars = 50 |
|
staticprivate |
The maximum number of variables in the random test problems.
Referenced by setUp().
◆ myQueue
| Queue frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.myQueue |
|
private |
The stats gatherer's queue.
Referenced by setUp().
◆ parser
The parser for the whole problem.
Referenced by setUp().
◆ pipes
The pipe to send message to each agent, indexed by agent name.
◆ queues
| Map<String, Queue> frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.queues |
|
private |
The queue of each agent, indexed by agent name.
Referenced by setUp(), and test().
◆ TEST_BACK_MSG_TYPE
| final MessageType frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.TEST_BACK_MSG_TYPE = new MessageType ("Test backward message") |
|
staticprivate |
The type of the test backward message.
◆ TEST_FWD_MSG_TYPE
| final MessageType frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.TEST_FWD_MSG_TYPE = new MessageType ("Test forward message") |
|
staticprivate |
The type of the test forward message.
◆ useTCP
| final boolean frodo2.algorithms.dpop.privacy.test.SecureCircularRoutingTest.useTCP |
|
private |
The documentation for this class was generated from the following file: