FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest Class Reference

An overall unit test for the MB-DPOP algorithm. More...

Inheritance diagram for frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest:

Public Member Functions

 MB_DPOPagentTest (boolean maximize, boolean useTCP)
 Constructor.
void test () throws Exception
 The test method.

Static Public Member Functions

static TestSuite suite ()

Protected Member Functions

void setUp () throws Exception
void tearDown () throws Exception

Private Attributes

final int maxNbrVars = 10
 Maximum number of variables in the problem.
final int maxNbrEdges = 45
 Maximum number of binary constraints in the problem.
final int maxNbrAgents = 10
 Maximum number of agents.
Document problem
 The input random problem.
final boolean maximize
 Whether to maximize or minimize.
final boolean useTCP
 Whether to use TCP pipes.

Detailed Description

An overall unit test for the MB-DPOP algorithm.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ MB_DPOPagentTest()

frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.MB_DPOPagentTest ( boolean maximize,
boolean useTCP )

Constructor.

Parameters
maximizeWhether to maximize or minimize
useTCPWhether to use TCP pipes

References maximize, and useTCP.

Referenced by suite().

Member Function Documentation

◆ setUp()

void frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.setUp ( ) throws Exception
protected
See also
junit.framework.TestCase#setUp()

References frodo2.algorithms.test.AllTests.createRandProblem(), maxNbrAgents, maxNbrEdges, and maxNbrVars.

Here is the call graph for this function:

◆ suite()

TestSuite frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.suite ( )
static
Returns
the suite of tests

References MB_DPOPagentTest(), and suite().

Referenced by suite(), and frodo2.algorithms.test.AllTests.suite().

Here is the call graph for this function:

◆ tearDown()

void frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.tearDown ( ) throws Exception
protected
See also
junit.framework.TestCase#tearDown()

◆ test()

void frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.test ( ) throws Exception

Member Data Documentation

◆ maximize

final boolean frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.maximize
private

Whether to maximize or minimize.

Referenced by MB_DPOPagentTest().

◆ maxNbrAgents

final int frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.maxNbrAgents = 10
private

Maximum number of agents.

Referenced by setUp().

◆ maxNbrEdges

final int frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.maxNbrEdges = 45
private

Maximum number of binary constraints in the problem.

Referenced by setUp().

◆ maxNbrVars

final int frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.maxNbrVars = 10
private

Maximum number of variables in the problem.

Referenced by setUp().

◆ problem

Document frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.problem
private

The input random problem.

Referenced by test().

◆ useTCP

final boolean frodo2.algorithms.dpop.memory.tests.MB_DPOPagentTest.useTCP
private

Whether to use TCP pipes.

Referenced by MB_DPOPagentTest().


The documentation for this class was generated from the following file: