- Author
- Brammert Ottens, 17 aug. 2011
◆ NormalizeTest()
| frodo2.algorithms.duct.tests.NormalizeTest.NormalizeTest |
( |
boolean | useTCP | ) |
|
- Parameters
-
| useTCP | when true TCP pipes are used for communication, otherwise IO pipes |
References useTCP.
Referenced by suite().
◆ getMsgTypes()
| Collection< MessageType > frodo2.algorithms.duct.tests.NormalizeTest.getMsgTypes |
( |
| ) |
|
◆ notifyIn()
| void frodo2.algorithms.duct.tests.NormalizeTest.notifyIn |
( |
Message | msg | ) |
|
◆ setQueue()
| void frodo2.algorithms.duct.tests.NormalizeTest.setQueue |
( |
Queue | queue | ) |
|
◆ setUp()
| void frodo2.algorithms.duct.tests.NormalizeTest.setUp |
( |
| ) |
throws Exception |
|
protected |
- See also
- junit.framework.TestCase#setUp()
References frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.computeDFS(), dfs, frodo2.algorithms.test.AllTests.generateProblem(), frodo2.algorithms.RandGraphFactory.getRandGraph(), graph, maxNbrAgents, maxNbrEdges, maxNbrVars, parser, problem, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setUtilClass(), and solver.
◆ startNormalization()
| void frodo2.algorithms.duct.tests.NormalizeTest.startNormalization |
( |
RandGraphFactory.Graph | graph, |
|
|
Map< String, DFSview< AddableInteger, AddableReal > > | dfs, |
|
|
Map< String, Queue > | queues ) |
|
static |
◆ suite()
| TestSuite frodo2.algorithms.duct.tests.NormalizeTest.suite |
( |
| ) |
|
|
static |
◆ tearDown()
| void frodo2.algorithms.duct.tests.NormalizeTest.tearDown |
( |
| ) |
throws Exception |
|
protected |
- See also
- junit.framework.TestCase#tearDown()
References dfs, graph, and queues.
◆ test()
| void frodo2.algorithms.duct.tests.NormalizeTest.test |
( |
| ) |
throws IOException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, ClassNotFoundException, InvocationTargetException |
Runs a random test.
- Exceptions
-
| IOException | if the method fails to create pipes |
| NoSuchMethodException | if the ADOPT class does not have a public constructor that takes in a ProblemInterface and a JDOM Element |
| IllegalAccessException | if the ADOPT class does not have a public constructor that takes in a ProblemInterface and a JDOM Element |
| InstantiationException | if the instantiation of ADOPT failed |
| IllegalArgumentException | if an error occurs in passing arguments to the constructor of ADOPT |
| ClassNotFoundException | if the utility class is not found |
| InvocationTargetException | if the UTILpropagation constructor throws an exception |
References frodo2.solutionSpaces.AddableReal.add(), frodo2.communication.Queue.addIncomingMessagePolicy(), frodo2.solutionSpaces.AddableReal.compareTo(), frodo2.algorithms.test.AllTests.createQueueNetwork(), dfs, frodo2.solutionSpaces.AddableReal.equals(), frodo2.solutionSpaces.DCOPProblemInterface< V extends Addable< V >, U extends Addable< U > >.getSubProblem(), graph, myQueue, nbrMsgsRemaining, nbrMsgsRemaining_lock, parameters, parser, problem, queues, frodo2.communication.Queue.setProblem(), spaces, startNormalization(), frodo2.algorithms.AgentInterface< V extends Addable< V > >.STATS_MONITOR, test(), and useTCP.
Referenced by test().
◆ dfs
◆ graph
| RandGraphFactory.Graph frodo2.algorithms.duct.tests.NormalizeTest.graph |
|
protected |
◆ maxNbrAgents
| final int frodo2.algorithms.duct.tests.NormalizeTest.maxNbrAgents = 5 |
|
private |
Maximum number of agents.
Referenced by setUp().
◆ maxNbrEdges
| final int frodo2.algorithms.duct.tests.NormalizeTest.maxNbrEdges = 9 |
|
private |
Maximum number of edges in the random graph.
Referenced by setUp().
◆ maxNbrVars
| final int frodo2.algorithms.duct.tests.NormalizeTest.maxNbrVars = 5 |
|
private |
Maximum number of variables in the random graph.
- Note
- Must be at least 2.
Referenced by setUp().
◆ myQueue
| Queue frodo2.algorithms.duct.tests.NormalizeTest.myQueue |
|
protected |
The queue this class listens to.
Referenced by test().
◆ nbrMsgsRemaining
| int frodo2.algorithms.duct.tests.NormalizeTest.nbrMsgsRemaining |
|
protected |
The number of output messages remaining to be received from the UTIL propagation protocol.
Referenced by notifyIn(), and test().
◆ nbrMsgsRemaining_lock
| final Object frodo2.algorithms.duct.tests.NormalizeTest.nbrMsgsRemaining_lock = new Object () |
|
protected |
Used to synchronize the access to nbrMsgsRemaining.
We cannot synchronize directly over nbrMsgsRemaining because it will be decremented, and hence the object will change.
Referenced by notifyIn(), and test().
◆ optUtil
| AddableReal frodo2.algorithms.duct.tests.NormalizeTest.optUtil |
|
protected |
The optimal utility reported by the UTILpropagation.
◆ parameters
| Element frodo2.algorithms.duct.tests.NormalizeTest.parameters |
|
protected |
The parameters for adopt.
Referenced by test().
◆ parser
◆ problem
| Document frodo2.algorithms.duct.tests.NormalizeTest.problem |
|
protected |
◆ queues
| Map<String, Queue> frodo2.algorithms.duct.tests.NormalizeTest.queues |
|
protected |
◆ solver
Solver used to calculate the optimal utility.
Referenced by setUp().
◆ spaces
◆ useTCP
| boolean frodo2.algorithms.duct.tests.NormalizeTest.useTCP |
|
protected |
The documentation for this class was generated from the following file: