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

All AFB messages containing a CPA subclass this class. More...

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

Public Member Functions

 AFBBaseMsg ()
 Empty constructor used for externalization.
String toString ()
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
Public Member Functions inherited from frodo2.communication.Message
 Message (MessageType type)
 Constructor.
 Message ()
 Empty constructor.
MessageType getType ()
void fakeSerialize ()
 Pretends to serialize the message.

Public Attributes

String dest
 The destination variable.

Protected Member Functions

 AFBBaseMsg (MessageType type, String dest, PA< V, U > pa, Timestamp timestamp)
 Constructor.

Protected Attributes

PA< V, U > pa
 The partial assignment that is passed over to dest.
Timestamp timestamp
 Timestamp for the PA the message carries.
Protected Attributes inherited from frodo2.communication.Message
MessageType type
 The type of this message.

Detailed Description

All AFB messages containing a CPA subclass this class.

Author
Alexandra Olteanu, Thomas Leaute
Parameters
<V>the type used for variable values
<U>the type used for utility values

Constructor & Destructor Documentation

◆ AFBBaseMsg() [1/2]

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

Empty constructor used for externalization.

◆ AFBBaseMsg() [2/2]

frodo2.algorithms.afb.AFBBaseMsg< V extends Addable< V >, U extends Addable< U > >.AFBBaseMsg ( MessageType type,
String dest,
PA< V, U > pa,
Timestamp timestamp )
protected

Constructor.

Parameters
typeThe type of the message
destThe destination variable
paThe current PA
timestampTimestamp for this PA

References dest, pa, timestamp, and frodo2.communication.Message.type.

Member Function Documentation

◆ readExternal()

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

Reimplemented from frodo2.communication.Message.

References frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >.readExternal(), and frodo2.algorithms.afb.Timestamp.readExternal().

Here is the call graph for this function:

◆ toString()

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

Reimplemented from frodo2.communication.Message.

References dest, and pa.

◆ writeExternal()

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

Reimplemented from frodo2.communication.Message.

References frodo2.algorithms.afb.PA< V extends Addable< V >, U extends Addable< U > >.writeExternal(), and frodo2.algorithms.afb.Timestamp.writeExternal().

Here is the call graph for this function:

Member Data Documentation

◆ dest

◆ pa

◆ timestamp

Timestamp frodo2.algorithms.afb.AFBBaseMsg< V extends Addable< V >, U extends Addable< U > >.timestamp
protected

Timestamp for the PA the message carries.

Todo
Backtrack messages don't need to contain the CPA.

Referenced by AFBBaseMsg().


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