FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > > Class Template Reference

JUnit test for P_DPOP agent. More...

Inheritance diagram for frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >:

Public Member Functions

 P_DPOPagentTest (String method, boolean maximize, Class< V > domClass, boolean useTCP)
 Constructor.
void testP_DPOPvsDPOP () throws JDOMException, IOException
 Test whenever P-DPOP's and DPOP's answers to a random problem are equivalent.

Static Public Member Functions

static TestSuite suite ()

Private Attributes

int maxVar = 5
 The maximum number of variables in this problem.
int maxAgent = 5
 The maximum number of agents in this problem.
int maxEdge = 10
 The maximum number of constraints in this problem.
boolean maximize
 Whether to maximize or minimize.
Class< V > domClass
 The class used for variable values.
final boolean useTCP
 Whether to use TCP pipes.

Detailed Description

JUnit test for P_DPOP agent.

Parameters
<V>the type used for variable values
Author
Eric Zbinden, Thomas Leaute

Constructor & Destructor Documentation

◆ P_DPOPagentTest()

frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.P_DPOPagentTest ( String method,
boolean maximize,
Class< V > domClass,
boolean useTCP )

Constructor.

Parameters
methodtest method
maximizeWhether to maximize or minimize
domClassthe class to be used for variable values
useTCPWhether to use TCP pipes

References domClass, maximize, and useTCP.

Referenced by suite(), and testP_DPOPvsDPOP().

Member Function Documentation

◆ suite()

TestSuite frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.suite ( )
static
Returns
the test suite for this test

References P_DPOPagentTest().

Referenced by frodo2.algorithms.dpop.privacy.test.AllTestsP_DPOP.suite().

Here is the call graph for this function:

◆ testP_DPOPvsDPOP()

Member Data Documentation

◆ domClass

Class<V> frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.domClass
private

The class used for variable values.

Referenced by P_DPOPagentTest().

◆ maxAgent

int frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.maxAgent = 5
private

The maximum number of agents in this problem.

Referenced by testP_DPOPvsDPOP().

◆ maxEdge

int frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.maxEdge = 10
private

The maximum number of constraints in this problem.

Referenced by testP_DPOPvsDPOP().

◆ maximize

boolean frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.maximize
private

Whether to maximize or minimize.

Referenced by P_DPOPagentTest().

◆ maxVar

int frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.maxVar = 5
private

The maximum number of variables in this problem.

Referenced by testP_DPOPvsDPOP().

◆ useTCP

final boolean frodo2.algorithms.dpop.privacy.test.P_DPOPagentTest< V extends Addable< V > >.useTCP
private

Whether to use TCP pipes.

Referenced by P_DPOPagentTest().


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