FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > > Class Template Reference

Class to hold an assignment of variables. More...

Public Member Functions

 Assignment (String[] variables, Val[] values)
 A constructor.
String[] getVariables ()
Val[] getValues ()
boolean equals (Object o)
boolean compatible (Assignment< Val > a)
 Checks whether this assignment is compatible with a.
String toString ()

Private Attributes

final String[] variables
 The variables in the assignment.
final Val[] values
 The values to the variables.

Detailed Description

Class to hold an assignment of variables.

This class is only used when sending goods. In between a more succinct representation is used.

Author
brammert
Parameters
<Val>type of the class used to store domain values

Constructor & Destructor Documentation

◆ Assignment()

frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.Assignment ( String[] variables,
Val[] values )

A constructor.

Parameters
variablesthe variables in the assignment
valuesthe values of the variables

References values, and variables.

Referenced by compatible(), and equals().

Member Function Documentation

◆ compatible()

boolean frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.compatible ( Assignment< Val > a)

Checks whether this assignment is compatible with a.

Two assignments are compatible if they agree on all variables

Parameters
aanother assignment
Returns
true if the two assignments are compatible

References Assignment(), values, and variables.

Here is the call graph for this function:

◆ equals()

boolean frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.equals ( Object o)
See also
java.lang.Object#equals(java.lang.Object)

References Assignment(), equals(), and values.

Referenced by equals().

Here is the call graph for this function:

◆ getValues()

Val[] frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.getValues ( )
Returns
the values of the variables in this assignment

References values.

◆ getVariables()

String[] frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.getVariables ( )
Returns
the variables in this assignment

References variables.

◆ toString()

String frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.toString ( )
See also
java.lang.Object#toString()

References values, and variables.

Member Data Documentation

◆ values

final Val [] frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.values
private

The values to the variables.

Referenced by Assignment(), compatible(), equals(), getValues(), and toString().

◆ variables

final String [] frodo2.algorithms.odpop.Assignment< Val extends Addable< Val > >.variables
private

The variables in the assignment.

Referenced by Assignment(), compatible(), getVariables(), and toString().


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