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

JUnit test case for the class Problem. More...

Inheritance diagram for frodo2.algorithms.test.ProblemTest:

Public Member Functions

 ProblemTest (String method)
 Constructor.
void testGetAgent ()
 Test method for Problem.getAgent().
void testGetAgents ()
 Test method for Problem.getAgents().
void testGetVariables ()
 Test method for Problem.getVariables().
void testGetAnonymVars ()
 Test method for Problem.getAnonymVars().
void testGetExtVars ()
 Test method for Problem.getExtVars().
void testGetMyVars ()
 Test method for Problem.getMyVars().
void testGetNbrIntVars ()
 Test method for Problem.getNbrIntVars().
void testGetOwner ()
 Test method for Problem.getOwner(java.lang.String).
void testGetOwners ()
 Test method for Problem.getOwners().
void testIsRandom ()
 Test method for Problem.isRandom(java.lang.String).
void testGetDomain ()
 Test method for Problem.getDomain(java.lang.String).
void testGetDomainSize ()
 Test method for Problem.getDomainSize(java.lang.String).
void testSetDomain ()
 Test method for Problem.setDomain(java.lang.String, Addable[]).
void testGetNeighborhoods ()
 Test method for Problem.getNeighborhoods().
void testGetAnonymNeighborhoods ()
 Test method for Problem.getAnonymNeighborhoods().
void testGetAgentNeighborhoods ()
 Test method for Problem.getAgentNeighborhoods().
void testGetNeighborhoodSizes ()
 Test method for Problem.getNeighborhoodSizes().
void testGetNbrNeighbors ()
 Test method for Problem.getNbrNeighbors(java.lang.String).
void testGetSolutionSpaces ()
 Test method for Problem#getSolutionSpaces(boolean).
void testGetSolutionSpacesString ()
 Test method for Problem.getSolutionSpaces(java.lang.String).
void testGetSolutionSpacesStringBoolean ()
 Test method for Problem.getSolutionSpaces(java.lang.String, boolean).
void testGetSolutionSpacesStringSet ()
 Test method for Problem.getSolutionSpaces(java.lang.String, Set).
void testGetSolutionSpacesStringBooleanSet ()
 Test method for Problem.getSolutionSpaces(java.lang.String, boolean, Set).
void testGetProbabilitySpaces ()
 Test method for Problem.getProbabilitySpaces().
void testGetProbabilitySpacesString ()
 Test method for Problem.getProbabilitySpaces(java.lang.String).

Static Public Member Functions

static TestSuite suite ()

Protected Member Functions

void setUp ()
void tearDown () throws Exception

Private Attributes

final int maxNbrVars = 15
 Maximum number of variables in the random graph.
final int maxNbrEdges = 100
 Maximum number of edges in the random graph.
final int maxNbrAgents = 5
 Maximum number of agents.
Document problem
 Random XCSP problem.
Graph graph
 A random graph.
XCSPparser< AddableInteger, AddableRealparser
 The parser.
HashMap< String, XCSPparser< AddableInteger, AddableReal > > trueSubProbs
 For each agent, its correct subproblem.
HashMap< String, DCOPProblemInterface< AddableInteger, AddableReal > > subProbs
 For each agent, its computed subproblem.

Detailed Description

JUnit test case for the class Problem.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ ProblemTest()

frodo2.algorithms.test.ProblemTest.ProblemTest ( String method)

Constructor.

Parameters
methodname of the test method to launch

Referenced by suite().

Member Function Documentation

◆ setUp()

◆ suite()

TestSuite frodo2.algorithms.test.ProblemTest.suite ( )
static
Returns
the test suite for this test

References ProblemTest(), and suite().

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

Here is the call graph for this function:

◆ tearDown()

void frodo2.algorithms.test.ProblemTest.tearDown ( ) throws Exception
protected
See also
junit.framework.TestCase#tearDown()

References parser, problem, subProbs, and trueSubProbs.

◆ testGetAgent()

void frodo2.algorithms.test.ProblemTest.testGetAgent ( )

Test method for Problem.getAgent().

References subProbs.

◆ testGetAgentNeighborhoods()

void frodo2.algorithms.test.ProblemTest.testGetAgentNeighborhoods ( )

Test method for Problem.getAgentNeighborhoods().

References subProbs, and trueSubProbs.

◆ testGetAgents()

void frodo2.algorithms.test.ProblemTest.testGetAgents ( )

Test method for Problem.getAgents().

References subProbs, and trueSubProbs.

◆ testGetAnonymNeighborhoods()

void frodo2.algorithms.test.ProblemTest.testGetAnonymNeighborhoods ( )

Test method for Problem.getAnonymNeighborhoods().

Todo
Not yet implemented

◆ testGetAnonymVars()

void frodo2.algorithms.test.ProblemTest.testGetAnonymVars ( )

Test method for Problem.getAnonymVars().

◆ testGetDomain()

◆ testGetDomainSize()

◆ testGetExtVars()

void frodo2.algorithms.test.ProblemTest.testGetExtVars ( )

Test method for Problem.getExtVars().

◆ testGetMyVars()

void frodo2.algorithms.test.ProblemTest.testGetMyVars ( )

Test method for Problem.getMyVars().

References subProbs, and trueSubProbs.

◆ testGetNbrIntVars()

void frodo2.algorithms.test.ProblemTest.testGetNbrIntVars ( )

Test method for Problem.getNbrIntVars().

◆ testGetNbrNeighbors()

◆ testGetNeighborhoods()

void frodo2.algorithms.test.ProblemTest.testGetNeighborhoods ( )

Test method for Problem.getNeighborhoods().

References subProbs, and trueSubProbs.

◆ testGetNeighborhoodSizes()

void frodo2.algorithms.test.ProblemTest.testGetNeighborhoodSizes ( )

◆ testGetOwner()

◆ testGetOwners()

void frodo2.algorithms.test.ProblemTest.testGetOwners ( )

Test method for Problem.getOwners().

◆ testGetProbabilitySpaces()

void frodo2.algorithms.test.ProblemTest.testGetProbabilitySpaces ( )

Test method for Problem.getProbabilitySpaces().

Todo
Not yet implemented

◆ testGetProbabilitySpacesString()

void frodo2.algorithms.test.ProblemTest.testGetProbabilitySpacesString ( )

Test method for Problem.getProbabilitySpaces(java.lang.String).

Todo
Not yet implemented

◆ testGetSolutionSpaces()

void frodo2.algorithms.test.ProblemTest.testGetSolutionSpaces ( )

◆ testGetSolutionSpacesString()

void frodo2.algorithms.test.ProblemTest.testGetSolutionSpacesString ( )

Test method for Problem.getSolutionSpaces(java.lang.String).

Todo
Not yet implemented

◆ testGetSolutionSpacesStringBoolean()

void frodo2.algorithms.test.ProblemTest.testGetSolutionSpacesStringBoolean ( )

Test method for Problem.getSolutionSpaces(java.lang.String, boolean).

Todo
Not yet implemented

◆ testGetSolutionSpacesStringBooleanSet()

void frodo2.algorithms.test.ProblemTest.testGetSolutionSpacesStringBooleanSet ( )

Test method for Problem.getSolutionSpaces(java.lang.String, boolean, Set).

Todo
Not yet implemented

◆ testGetSolutionSpacesStringSet()

void frodo2.algorithms.test.ProblemTest.testGetSolutionSpacesStringSet ( )

Test method for Problem.getSolutionSpaces(java.lang.String, Set).

Todo
Not yet implemented

◆ testGetVariables()

void frodo2.algorithms.test.ProblemTest.testGetVariables ( )

Test method for Problem.getVariables().

References subProbs, and trueSubProbs.

◆ testIsRandom()

void frodo2.algorithms.test.ProblemTest.testIsRandom ( )

Test method for Problem.isRandom(java.lang.String).

Todo
Not implemented.

◆ testSetDomain()

void frodo2.algorithms.test.ProblemTest.testSetDomain ( )

Test method for Problem.setDomain(java.lang.String, Addable[]).

Todo
Not yet implemented

Member Data Documentation

◆ graph

Graph frodo2.algorithms.test.ProblemTest.graph
private

A random graph.

Referenced by setUp().

◆ maxNbrAgents

final int frodo2.algorithms.test.ProblemTest.maxNbrAgents = 5
private

Maximum number of agents.

Referenced by setUp().

◆ maxNbrEdges

final int frodo2.algorithms.test.ProblemTest.maxNbrEdges = 100
private

Maximum number of edges in the random graph.

Referenced by setUp().

◆ maxNbrVars

final int frodo2.algorithms.test.ProblemTest.maxNbrVars = 15
private

Maximum number of variables in the random graph.

Note
Must be at least 2.

Referenced by setUp().

◆ parser

XCSPparser<AddableInteger, AddableReal> frodo2.algorithms.test.ProblemTest.parser
private

The parser.

Referenced by setUp(), and tearDown().

◆ problem

Document frodo2.algorithms.test.ProblemTest.problem
private

Random XCSP problem.

Referenced by setUp(), and tearDown().

◆ subProbs

HashMap<String, DCOPProblemInterface<AddableInteger, AddableReal> > frodo2.algorithms.test.ProblemTest.subProbs
private

◆ trueSubProbs

HashMap<String, XCSPparser<AddableInteger, AddableReal> > frodo2.algorithms.test.ProblemTest.trueSubProbs
private

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