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

Class that represents a good being send fom child to parent It contains. More...

Inheritance diagram for frodo2.algorithms.asodpop.Good< Val extends Addable< Val >, U extends Addable< U > >:

Public Member Functions

 Good (String[] variables, Val[] values, U utility, boolean confirmed)
 A constructor.
boolean isConfirmed ()
 Check whether this is a confirmed good or not.
boolean equals (Object o)
String toString ()
Public Member Functions inherited from frodo2.algorithms.odpop.Good< Val, U >
 Good (String[] variables, Val[] values, U utility)
 A constructor.
String[] getVariables ()
Val[] getValues ()
getUtility ()
 Getter method for the utility.
boolean equals (Object o)
String toString ()

Private Attributes

final boolean confirmed
 True if this is a confirmed good and false otherwise.

Additional Inherited Members

Protected Attributes inherited from frodo2.algorithms.odpop.Good< Val, U >
final U utility
 The utility corresponding to this assignment.
final String[] variables
 The variables for this assignment.
final Val[] values
 The value assignments of the variables in variables.

Detailed Description

Class that represents a good being send fom child to parent It contains.

  • an assignment
  • the corresponding utility the subtree rooted at the sender van obtain when the assignment is used
  • a boolean value that states whether the good is confirmed or not
    Author
    brammert
    Parameters
    <Val>type used for variable values
    <U>type used for utility values

Constructor & Destructor Documentation

◆ Good()

frodo2.algorithms.asodpop.Good< Val extends Addable< Val >, U extends Addable< U > >.Good ( String[] variables,
Val[] values,
U utility,
boolean confirmed )

A constructor.

Parameters
variablesthe variables in the assignment
valuesthe values of the variables
utilityThe utility belonging to the assignment
confirmedtrue when the utility is confirmed

References confirmed, frodo2.algorithms.odpop.Good< Val, U >.utility, frodo2.algorithms.odpop.Good< Val, U >.values, and frodo2.algorithms.odpop.Good< Val, U >.variables.

Referenced by equals().

Member Function Documentation

◆ equals()

◆ isConfirmed()

boolean frodo2.algorithms.asodpop.Good< Val extends Addable< Val >, U extends Addable< U > >.isConfirmed ( )

Check whether this is a confirmed good or not.

Returns
boolean

References confirmed.

Referenced by frodo2.algorithms.asodpop.goodsTree.innerNodeTree.InnerNodeTree< Val extends Addable< Val >, U extends Addable< U > >.add(), frodo2.algorithms.asodpop.goodsTree.innerNodeTreeBinaryDomains.InnerNodeTree< Val extends Addable< Val >, U extends Addable< U > >.add(), equals(), frodo2.algorithms.asodpop.goodsTree.innerNodeTree.InnerNodeTree< Val extends Addable< Val >, U extends Addable< U > >.ignoreGood(), frodo2.algorithms.asodpop.goodsTree.innerNodeTreeBinaryDomains.InnerNodeTree< Val extends Addable< Val >, U extends Addable< U > >.ignoreGood(), frodo2.algorithms.asodpop.ASODPOP< Val extends Addable< Val >, U extends Addable< U > >.processUTILMessage(), frodo2.algorithms.asodpop.ASODPOPBinaryDomains< Val extends Addable< Val >, U extends Addable< U > >.processUTILMessage(), frodo2.algorithms.asodpop.ASODPOP< Val extends Addable< Val >, U extends Addable< U > >.sendGood(), frodo2.algorithms.asodpop.ASODPOPBinaryDomains< Val extends Addable< Val >, U extends Addable< U > >.sendGood(), frodo2.algorithms.asodpop.goodsTree.innerNodeTree.LeafNode< U extends Addable< U > >.updateLeafNoUB(), frodo2.algorithms.asodpop.goodsTree.innerNodeTreeBinaryDomains.LeafNode< U extends Addable< U > >.updateLeafNoUB(), frodo2.algorithms.asodpop.goodsTree.innerNodeTree.LeafNode< U extends Addable< U > >.updateLeafWithUB(), frodo2.algorithms.asodpop.goodsTree.innerNodeTreeBinaryDomains.LeafNode< U extends Addable< U > >.updateLeafWithUB(), frodo2.algorithms.asodpop.UTILmsg< Val extends Addable< Val >, U extends Addable< U > >.UTILmsg(), frodo2.algorithms.asodpop.UTILmsg< Val extends Addable< Val >, U extends Addable< U > >.UTILmsg(), frodo2.algorithms.asodpop.UTILvarsDomsMsg< Val extends Addable< Val >, U extends Addable< U > >.UTILvarsDomsMsg(), frodo2.algorithms.asodpop.UTILvarsDomsMsg< Val extends Addable< Val >, U extends Addable< U > >.UTILvarsDomsMsg(), frodo2.algorithms.asodpop.UTILvarsMsg< Val extends Addable< Val >, U extends Addable< U > >.UTILvarsMsg(), and frodo2.algorithms.asodpop.UTILvarsMsg< Val extends Addable< Val >, U extends Addable< U > >.UTILvarsMsg().

◆ toString()

Member Data Documentation

◆ confirmed

final boolean frodo2.algorithms.asodpop.Good< Val extends Addable< Val >, U extends Addable< U > >.confirmed
private

True if this is a confirmed good and false otherwise.

Referenced by equals(), Good(), and isConfirmed().


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