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

Public Member Functions | |
| DPOPagentTest (boolean useXCSP, boolean useTCP, boolean useCentralMailer, boolean useDelay, Class< V > domClass, Class< U > utilClass) | |
| Creates a JUnit test case corresponding to the input method. | |
| DPOPagentTest (boolean useXCSP, boolean swap, boolean minNCCCs, boolean countNCCCs, boolean ignoreHypercubeNCCCs) | |
| Constructor. | |
| DPOPagentTest (boolean useXCSP, boolean swap, boolean minNCCCs, boolean countNCCCs, boolean ignoreHypercubeNCCCs, String dpopPath) | |
| Constructor. | |
| DPOPagentTest (Class<? extends XCSPparser< V, U > > parserClass) | |
| Constructor for a test with a subsolver. | |
| DPOPagentTest (boolean useXCSP, boolean useTCP, boolean useCentralMailer, boolean useDelay, Class< V > domClass, Class< U > utilClass, MessageType startMsgType) | |
| Creates a JUnit test case corresponding to the input method. | |
| DPOPagentTest (boolean useXCSP, boolean useTCP, boolean useCentralMailer, boolean useDelay, Class< V > domClass, Class< U > utilClass, MessageType startMsgType, Class< ? extends XCSPparser< V, U > > parserClass, boolean swap, boolean minNCCCs, boolean countNCCCs, boolean measureMsgs, boolean ignoreHypercubeNCCCs) | |
| Creates a JUnit test case corresponding to the input method. | |
| void | setUp () throws Exception |
| void | testRandom () throws Exception |
| Tests the DPOPagent on a random problem. | |
| Collection< MessageType > | getMsgTypes () |
| void | notifyIn (Message msg) |
| void | setQueue (Queue queue) |
| Does nothing. | |
| Public Member Functions inherited from frodo2.communication.IncomingMsgPolicyInterface< T > | |
| default void | notifyIn (Message msg, Object toAgent) |
| Notifies the listener of an incoming message. | |
Static Public Member Functions | |
| static TestSuite | suite () |
Protected Member Functions | |
| void | setStartMsgType (MessageType startMsgType) throws JDOMException |
| Sets the type of the start message for all modules. | |
| void | tearDown () throws Exception |
| void | checkOutput () throws Exception |
| Checks that the output of the algorithm is correct. | |
Protected Attributes | |
| Document | agentConfig |
| The agent configuration file. | |
| Queue | queue |
| The queue used to listen to the agents. | |
| Map< Object, QueueOutputPipeInterface > | pipes |
| For each agent, the output pipe to it. | |
| RandGraphFactory.Graph | graph |
| Random graph used to generate a constraint graph. | |
| int | nbrMsgsReceived |
| Used to track the number of various types of messages received from the agents. | |
| int | nbrAgentsFinished |
| Number of agents finished. | |
| boolean | useCentralMailer = false |
true if the algorithm should be tested with the central mailer | |
| Document | problemDoc |
| The XCSP random problem file. | |
| DCOPProblemInterface< V, U > | problem |
| The problem. | |
| Class< V > | domClass |
| The class used for variable values. | |
| Class< U > | utilClass |
| The class used for utility values. | |
| UTILpropagation< V, U > | utilModule |
| The module listening for the optimal utility to the problem. | |
| SolutionCollector< V, U > | solCollector |
| The module listening for the optimal assignment to the problem. | |
| boolean | useXCSP |
| Whether to use XCSP. | |
| MessageType | startMsgType |
| The type of the start message. | |
| boolean | countNCCCs |
| Whether to count NCCCs. | |
| boolean | maximize = true |
| Whether we should maximize or minimize. | |
| CentralMailer | mailman |
| The CentralMailer. | |
| boolean | aggregate = false |
true when the weighted sum hypercube should be tested | |
Private Member Functions | |
| void | setStartMsgType (Element messages, MessageType startMsgType) |
| Overwrites the type of the start messages. | |
Private Attributes | |
| final int | maxNbrVars = 10 |
| Maximum number of variables in the problem. | |
| final int | maxNbrEdges = 50 |
| Maximum number of binary constraints in the problem. | |
| final int | maxNbrAgents = 10 |
| Maximum number of agents. | |
| String | dpopPath = "src/frodo2/algorithms/dpop/DPOPagent.xml" |
| The path to DPOPagent.xml. | |
| QueueIOPipe | pipe |
| The testers pipe. | |
| Map< String, AgentInterface< V > > | agents |
| All agents, indexed by their IDs. | |
| int | nbrAgents |
| Total number of agents. | |
| final ReentrantLock | finished_lock = new ReentrantLock () |
| Used to make the test thread wait. | |
| final Condition | finished = finished_lock.newCondition() |
| Used to wake up the test thread when all agents have finished. | |
| boolean | useDelay |
true when the central mailer is to be tested with delays | |
| boolean | measureMsgs |
| Whether to measure message numbers and sizes. | |
| Class< ? extends XCSPparser< V, U > > | parserClass |
| The class of the parser/subsolver to use. | |
| boolean | useTCP |
| Whether TCP pipes should be used for communication between agents. | |
| boolean | minNCCCs |
| Whether to optimize runtime or NCCC count. | |
| boolean | ignoreHypercubeNCCCs |
| Whether to ignore Hypercube NCCCs or not. | |
| boolean | swap |
| Whether we should swap. | |
JUnit test for DPOPagent.
| <V> | the type used for variable values |
| <U> | the type used for utility values |
| frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.DPOPagentTest | ( | boolean | useXCSP, |
| boolean | useTCP, | ||
| boolean | useCentralMailer, | ||
| boolean | useDelay, | ||
| Class< V > | domClass, | ||
| Class< U > | utilClass ) |
Creates a JUnit test case corresponding to the input method.
| useXCSP | whether to use XCSP |
| useTCP | whether TCP pipes should be used for communication between agents |
| useCentralMailer | true when the central mailer should be tested |
| useDelay | true when the central mailer should be tested with a delay |
| domClass | the class to be used for variable values |
| utilClass | the class to be used for utility values |
References domClass, DPOPagentTest(), useCentralMailer, useDelay, useTCP, useXCSP, and utilClass.
Referenced by DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), and suite().

| frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.DPOPagentTest | ( | boolean | useXCSP, |
| boolean | swap, | ||
| boolean | minNCCCs, | ||
| boolean | countNCCCs, | ||
| boolean | ignoreHypercubeNCCCs ) |
Constructor.
| useXCSP | whether to use XCSP |
| swap | whether we should swap |
| minNCCCs | whether to optimize runtime or NCCC count |
| countNCCCs | whether to count NCCCs |
| ignoreHypercubeNCCCs | Whether to ignore Hypercube NCCCs or not |
References countNCCCs, DPOPagentTest(), ignoreHypercubeNCCCs, minNCCCs, swap, and useXCSP.

| frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.DPOPagentTest | ( | boolean | useXCSP, |
| boolean | swap, | ||
| boolean | minNCCCs, | ||
| boolean | countNCCCs, | ||
| boolean | ignoreHypercubeNCCCs, | ||
| String | dpopPath ) |
Constructor.
| useXCSP | whether to use XCSP |
| swap | whether we should swap |
| minNCCCs | whether to optimize runtime or NCCC count |
| countNCCCs | whether to count NCCCs |
| ignoreHypercubeNCCCs | Whether to ignore Hypercube NCCCs or not |
| dpopPath | The path the the DPOP agent configuration file |
References countNCCCs, dpopPath, ignoreHypercubeNCCCs, minNCCCs, swap, and useXCSP.
| frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.DPOPagentTest | ( | Class<? extends XCSPparser< V, U > > | parserClass | ) |
Constructor for a test with a subsolver.
| parserClass | class of the parser/subsolver |
References DPOPagentTest(), and parserClass.

| frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.DPOPagentTest | ( | boolean | useXCSP, |
| boolean | useTCP, | ||
| boolean | useCentralMailer, | ||
| boolean | useDelay, | ||
| Class< V > | domClass, | ||
| Class< U > | utilClass, | ||
| MessageType | startMsgType ) |
Creates a JUnit test case corresponding to the input method.
| useXCSP | whether to use XCSP |
| useTCP | whether TCP pipes should be used for communication between agents |
| useCentralMailer | true when the central mailer should be tested |
| useDelay | true when the central mailer should be tested with a delay |
| domClass | the class to be used for variable values |
| utilClass | the class to be used for utility values |
| startMsgType | the type of the start message |
References domClass, DPOPagentTest(), startMsgType, useCentralMailer, useDelay, useTCP, useXCSP, and utilClass.

| frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.DPOPagentTest | ( | boolean | useXCSP, |
| boolean | useTCP, | ||
| boolean | useCentralMailer, | ||
| boolean | useDelay, | ||
| Class< V > | domClass, | ||
| Class< U > | utilClass, | ||
| MessageType | startMsgType, | ||
| Class< ? extends XCSPparser< V, U > > | parserClass, | ||
| boolean | swap, | ||
| boolean | minNCCCs, | ||
| boolean | countNCCCs, | ||
| boolean | measureMsgs, | ||
| boolean | ignoreHypercubeNCCCs ) |
Creates a JUnit test case corresponding to the input method.
| useXCSP | whether to use XCSP |
| useTCP | whether TCP pipes should be used for communication between agents |
| useCentralMailer | true when the central mailer should be tested |
| useDelay | true when the central mailer should be tested with a delay |
| domClass | the class to be used for variable values |
| utilClass | the class to be used for utility values |
| startMsgType | the type of the start message |
| parserClass | the class of the parser/subsolver |
| swap | whether we should swap |
| minNCCCs | whether to optimize runtime or NCCC count |
| countNCCCs | whether to count NCCCs |
| measureMsgs | whether to measure message numbers and sizes |
| ignoreHypercubeNCCCs | Whether to ignore Hypercube NCCCs or not |
References countNCCCs, domClass, ignoreHypercubeNCCCs, measureMsgs, minNCCCs, parserClass, startMsgType, swap, useCentralMailer, useDelay, useTCP, useXCSP, and utilClass.
|
protected |
Checks that the output of the algorithm is correct.
| Exception | if an error occurs |
Reimplemented in frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >, frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >, frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >, frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >, and frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.
References agentConfig, domClass, frodo2.algorithms.dpop.UTILpropagation< Val extends Addable< Val >, U extends Addable< U > >.getOptUtil(), frodo2.algorithms.SolutionCollector< V extends Addable< V >, U extends Addable< U > >.getSolution(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse(), parserClass, problem, frodo2.algorithms.AbstractDCOPsolver< V extends Addable< V >, U extends Addable< U >, S extends Solution< V, U >.solve(), and utilClass.
Referenced by testRandom().

| Collection< MessageType > frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.getMsgTypes | ( | ) |
Implements frodo2.communication.MessageListener< T >.
References frodo2.algorithms.AgentInterface< V extends Addable< V > >.AGENT_CONNECTED, frodo2.algorithms.AgentInterface< V extends Addable< V > >.AGENT_FINISHED, frodo2.algorithms.AgentInterface< V extends Addable< V > >.LOCAL_AGENT_ADDRESS_REQUEST, and frodo2.algorithms.AgentInterface< V extends Addable< V > >.LOCAL_AGENT_REPORTING.
| void frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.notifyIn | ( | Message | msg | ) |
Implements frodo2.communication.IncomingMsgPolicyInterface< T >.
References frodo2.algorithms.AgentInterface< V extends Addable< V > >.LOCAL_AGENT_REPORTING, nbrAgents, notifyIn(), pipe, and pipes.
Referenced by notifyIn().

| void frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.setQueue | ( | Queue | queue | ) |
|
private |
Overwrites the type of the start messages.
| messages | messages element |
| startMsgType | the new type of the start messages |
References startMsgType.
|
protected |
Sets the type of the start message for all modules.
| startMsgType | the new type for the start message |
| JDOMException | if parsing the agent configuration file failed |
References agentConfig, setStartMsgType(), frodo2.algorithms.AgentInterface< V extends Addable< V > >.START_AGENT, and startMsgType.
Referenced by setStartMsgType(), and setUp().

| void frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.setUp | ( | ) | throws Exception |
Reimplemented in frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >, frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >, frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >, frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >, and frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.
References frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.addSpaceToIgnore(), agentConfig, domClass, frodo2.algorithms.test.AllTests.generateProblem(), frodo2.algorithms.RandGraphFactory.getRandGraph(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.getStatsFromQueue(), graph, mailman, maxNbrAgents, maxNbrEdges, maxNbrVars, minNCCCs, nbrAgentsFinished, nbrMsgsReceived, frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.newInstance(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.parse(), parserClass, pipes, problem, problemDoc, queue, frodo2.solutionSpaces.ProblemInterface< V extends Addable< V >, U extends Addable< U > >.reset(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setDomClass(), frodo2.solutionSpaces.ProblemInterface< V extends Addable< V >, U extends Addable< U > >.setDomClass(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.setSilent(), setStartMsgType(), frodo2.algorithms.XCSPparser< V extends Addable< V >, U extends Addable< U > >.setUtilClass(), frodo2.solutionSpaces.ProblemInterface< V extends Addable< V >, U extends Addable< U > >.setUtilClass(), solCollector, frodo2.algorithms.AgentInterface< V extends Addable< V > >.STATS_MONITOR, swap, utilClass, and utilModule.

|
static |
Reimplemented in frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >, frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >, frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >, frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >, and frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.
References DPOPagentTest(), and suite().
Referenced by frodo2.algorithms.dpop.test.AllTestsDPOP.suite(), and suite().

|
protected |
Reimplemented in frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >, frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >, and frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.
References agents, graph, mailman, pipe, pipes, problem, problemDoc, queue, solCollector, and utilModule.
| void frodo2.algorithms.dpop.test.DPOPagentTest< V extends Addable< V >, U extends Addable< U > >.testRandom | ( | ) | throws Exception |
Tests the DPOPagent on a random problem.
| Exception | if an error occurs |
References agentConfig, agents, checkOutput(), frodo2.algorithms.AgentFactory< V extends Addable< V >, U extends Addable< U > >.createAgent(), frodo2.communication.mailer.CentralMailer.execute(), graph, mailman, nbrAgents, nbrAgentsFinished, pipe, problem, queue, frodo2.timeout, useCentralMailer, and useTCP.

|
protected |
The agent configuration file.
Referenced by checkOutput(), setStartMsgType(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), and testRandom().
|
private |
All agents, indexed by their IDs.
Referenced by tearDown(), and testRandom().
|
protected |
true when the weighted sum hypercube should be tested
|
protected |
Whether to count NCCCs.
Referenced by frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.AFBagentTest(), DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), and frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.SynchBBagentTest().
|
protected |
The class used for variable values.
Referenced by frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.AFBagentTest(), checkOutput(), DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.E_DPOPagentTest(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.ParamDPOPtest(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.Robust_E_DPOPagentTest(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), setUp(), and frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.SynchBBagentTest().
|
private |
The path to DPOPagent.xml.
Referenced by DPOPagentTest().
|
private |
Used to wake up the test thread when all agents have finished.
|
private |
Used to make the test thread wait.
|
protected |
Random graph used to generate a constraint graph.
Referenced by frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), tearDown(), and testRandom().
|
private |
Whether to ignore Hypercube NCCCs or not.
Referenced by DPOPagentTest(), DPOPagentTest(), and DPOPagentTest().
|
protected |
The CentralMailer.
Referenced by frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), setUp(), tearDown(), and testRandom().
|
protected |
Whether we should maximize or minimize.
Referenced by frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.AFBagentTest(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.checkOutput(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), and frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.SynchBBagentTest().
|
private |
Maximum number of agents.
Referenced by setUp().
|
private |
Maximum number of binary constraints in the problem.
Referenced by setUp().
|
private |
|
private |
Whether to measure message numbers and sizes.
Referenced by DPOPagentTest().
|
private |
Whether to optimize runtime or NCCC count.
Referenced by DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), and setUp().
|
private |
Total number of agents.
Referenced by notifyIn(), and testRandom().
|
protected |
|
protected |
Used to track the number of various types of messages received from the agents.
Referenced by frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), and setUp().
|
private |
The class of the parser/subsolver to use.
Referenced by checkOutput(), DPOPagentTest(), DPOPagentTest(), and setUp().
|
private |
The testers pipe.
Referenced by notifyIn(), tearDown(), and testRandom().
|
protected |
For each agent, the output pipe to it.
Referenced by notifyIn(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), setUp(), and tearDown().
|
protected |
The problem.
Referenced by frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.checkOutput(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.checkOutput(), checkOutput(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.checkOutput(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), tearDown(), and testRandom().
|
protected |
The XCSP random problem file.
Referenced by frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.checkOutput(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), and tearDown().
|
protected |
The queue used to listen to the agents.
Referenced by setQueue(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), tearDown(), and testRandom().
|
protected |
The module listening for the optimal assignment to the problem.
Referenced by frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.checkOutput(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), and tearDown().
|
protected |
The type of the start message.
Referenced by DPOPagentTest(), DPOPagentTest(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.E_DPOPagentTest(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.ParamDPOPtest(), setStartMsgType(), setStartMsgType(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), and frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp().
|
private |
Whether we should swap.
Referenced by DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), and setUp().
|
protected |
true if the algorithm should be tested with the central mailer
Referenced by frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.AFBagentTest(), DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.E_DPOPagentTest(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.ParamDPOPtest(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.Robust_E_DPOPagentTest(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.setUp(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.SynchBBagentTest(), and testRandom().
|
private |
true when the central mailer is to be tested with delays
Referenced by DPOPagentTest(), DPOPagentTest(), and DPOPagentTest().
|
private |
Whether TCP pipes should be used for communication between agents.
Referenced by frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.AFBagentTest(), DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.E_DPOPagentTest(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.ParamDPOPtest(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.Robust_E_DPOPagentTest(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.SynchBBagentTest(), and testRandom().
|
protected |
Whether to use XCSP.
Referenced by frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.AFBagentTest(), DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.ParamDPOPtest(), and frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.SynchBBagentTest().
|
protected |
The class used for utility values.
Referenced by frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.AFBagentTest(), checkOutput(), DPOPagentTest(), DPOPagentTest(), DPOPagentTest(), frodo2.algorithms.dpop.param.test.ParamDPOPtest< V extends Addable< V >, U extends Addable< U > >.ParamDPOPtest(), frodo2.algorithms.afb.test.AFBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), setUp(), frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.setUp(), and frodo2.algorithms.synchbb.test.SynchBBagentTest< V extends Addable< V >, U extends Addable< U > >.SynchBBagentTest().
|
protected |
The module listening for the optimal utility to the problem.
Referenced by frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.checkOutput(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.checkOutput(), frodo2.algorithms.dpop.stochastic.robust.test.Robust_E_DPOPagentTest< V extends Addable< V > >.setUp(), frodo2.algorithms.dpop.stochastic.test.E_DPOPagentTest< V extends Addable< V > >.setUp(), setUp(), and tearDown().