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

JUnit test for P_DPOP agent. More...

Inheritance diagram for frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >:

Public Member Functions

 P2_DPOPagentTest (Class< V > domClass, Class< ? extends CryptoScheme< AddableInteger, E, ?> > schemeClass, Class< E > classOfE, boolean mergeBack, boolean minNCCCs, boolean useTCP, boolean maximize, int sign)
 Constructor.
 P2_DPOPagentTest (Class< V > domClass, Class< ? extends CryptoScheme< AddableInteger, E, ?> > schemeClass, Class< E > classOfE, boolean mergeBack, boolean minNCCCs, boolean useTCP)
 Constructor.
void test () 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 ()

Protected 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.
Class< ? extends CryptoScheme< AddableInteger, E, ?> > schemeClass
 The class of the CryptoScheme.
Class< V > domClass
 The class used for variable values.
final boolean mergeBack
 Whether to enable the merging of back-edges.
final boolean minNCCCs
 Whether to minimize the NCCC.
final boolean useTCP
 Whether to use TCP pipes.

Private Attributes

Class< E > classOfE
 The class used for encrypted values.
final boolean maximize
 Whether to test on a maximization or a minimization problem.
final int sign
 The sign of the costs/utilities in the test problem instance.

Detailed Description

JUnit test for P_DPOP agent.

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

Constructor & Destructor Documentation

◆ P2_DPOPagentTest() [1/2]

frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.P2_DPOPagentTest ( Class< V > domClass,
Class< ? extends CryptoScheme< AddableInteger, E, ?> > schemeClass,
Class< E > classOfE,
boolean mergeBack,
boolean minNCCCs,
boolean useTCP,
boolean maximize,
int sign )

Constructor.

Parameters
schemeClassThe class of the CryptoScheme
domClassThe class used for variable values
classOfEThe class used for encrypted values
mergeBackWhether to enable the merging of back-edges
minNCCCsWhether to minimize the NCCC
useTCPWhether to use TCP pipes
maximizeWhether to test on a maximization or a minimization problem
signThe sign of the costs/utilities in the test problem instance

References classOfE, domClass, maximize, mergeBack, minNCCCs, schemeClass, sign, and useTCP.

Referenced by suite().

◆ P2_DPOPagentTest() [2/2]

frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.P2_DPOPagentTest ( Class< V > domClass,
Class< ? extends CryptoScheme< AddableInteger, E, ?> > schemeClass,
Class< E > classOfE,
boolean mergeBack,
boolean minNCCCs,
boolean useTCP )

Constructor.

Parameters
schemeClassThe class of the CryptoScheme
domClassThe class used for variable values
classOfEThe class used for encrypted values
mergeBackWhether to enable the merging of back-edges
minNCCCsWhether to minimize the NCCC
useTCPWhether to use TCP pipes

References classOfE, domClass, mergeBack, minNCCCs, schemeClass, and useTCP.

Member Function Documentation

◆ suite()

TestSuite frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.suite ( )
static
Returns
the test suite for this test

References P2_DPOPagentTest().

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

Here is the call graph for this function:

◆ test()

Member Data Documentation

◆ classOfE

Class<E> frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.classOfE
private

The class used for encrypted values.

Referenced by P2_DPOPagentTest(), and P2_DPOPagentTest().

◆ domClass

Class<V> frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.domClass
protected

The class used for variable values.

Referenced by P2_DPOPagentTest(), and P2_DPOPagentTest().

◆ maxAgent

int frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.maxAgent = 5
protected

The maximum number of agents in this problem.

Referenced by test().

◆ maxEdge

int frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.maxEdge = 10
protected

The maximum number of constraints in this problem.

Referenced by test().

◆ maximize

final boolean frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.maximize
private

Whether to test on a maximization or a minimization problem.

Referenced by P2_DPOPagentTest(), and test().

◆ maxVar

int frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.maxVar = 5
protected

The maximum number of variables in this problem.

Referenced by test().

◆ mergeBack

final boolean frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.mergeBack
protected

Whether to enable the merging of back-edges.

Referenced by P2_DPOPagentTest(), and P2_DPOPagentTest().

◆ minNCCCs

final boolean frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.minNCCCs
protected

Whether to minimize the NCCC.

Referenced by P2_DPOPagentTest(), and P2_DPOPagentTest().

◆ schemeClass

Class< ? extends CryptoScheme<AddableInteger, E, ?> > frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.schemeClass
protected

The class of the CryptoScheme.

Referenced by P2_DPOPagentTest(), and P2_DPOPagentTest().

◆ sign

final int frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.sign
private

The sign of the costs/utilities in the test problem instance.

Referenced by P2_DPOPagentTest(), and test().

◆ useTCP

final boolean frodo2.algorithms.dpop.privacy.test.P2_DPOPagentTest< V extends Addable< V >, E extends AddableLimited< AddableInteger, E >.useTCP
protected

Whether to use TCP pipes.

Referenced by P2_DPOPagentTest(), and P2_DPOPagentTest().


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