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

A message reporting the convergence for a given component. More...

Inheritance diagram for frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.ConvergenceMessage< V extends Addable< V > >:

Public Member Functions

 ConvergenceMessage ()
 Empty constructor used for externalization.
 ConvergenceMessage (Comparable<?> compID, TreeMap< Long, V[][]> history)
 Constructor.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
String toString ()
Public Member Functions inherited from frodo2.communication.Message
 Message (MessageType type)
 Constructor.
 Message ()
 Empty constructor.
MessageType getType ()
void fakeSerialize ()
 Pretends to serialize the message.

Private Attributes

Comparable<?> compID
 The ID of the component in the constraint graph.
TreeMap< Long, V[][]> history
 The history of assignments to variables.

Additional Inherited Members

Protected Attributes inherited from frodo2.communication.Message
MessageType type
 The type of this message.

Detailed Description

A message reporting the convergence for a given component.

Parameters
<V>the type used for variable values

Constructor & Destructor Documentation

◆ ConvergenceMessage() [1/2]

frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.ConvergenceMessage< V extends Addable< V > >.ConvergenceMessage ( )

◆ ConvergenceMessage() [2/2]

frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.ConvergenceMessage< V extends Addable< V > >.ConvergenceMessage ( Comparable<?> compID,
TreeMap< Long, V[][]> history )

Constructor.

Parameters
compIDThe ID of the component in the constraint graph
historyThe history of assignments to variables

References compID, frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.CONV_STATS_MSG_TYPE, and history.

Member Function Documentation

◆ readExternal()

void frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.ConvergenceMessage< V extends Addable< V > >.readExternal ( ObjectInput in) throws IOException, ClassNotFoundException
See also
java.io.Externalizable#readExternal(java.io.ObjectInput)

Reimplemented from frodo2.communication.Message.

References readExternal().

Referenced by readExternal().

Here is the call graph for this function:

◆ toString()

String frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.ConvergenceMessage< V extends Addable< V > >.toString ( )
See also
Message.toString()

Reimplemented from frodo2.communication.Message.

◆ writeExternal()

void frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.ConvergenceMessage< V extends Addable< V > >.writeExternal ( ObjectOutput out) throws IOException
See also
java.io.Externalizable#writeExternal(java.io.ObjectOutput)

Reimplemented from frodo2.communication.Message.

Member Data Documentation

◆ compID

Comparable<?> frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.ConvergenceMessage< V extends Addable< V > >.compID
private

The ID of the component in the constraint graph.

Referenced by ConvergenceMessage().

◆ history

TreeMap<Long, V[][]> frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.ConvergenceMessage< V extends Addable< V > >.history
private

The history of assignments to variables.

Referenced by ConvergenceMessage().


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