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

The message containing the current partial assignment in AFB. More...

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

Public Member Functions

 CPAmsg ()
 Empty constructor used for externalization.
 CPAmsg (String dest, String sender, PA< V, U > pa, Timestamp timestamp)
 Constructor.
String toString ()
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
Public Member Functions inherited from frodo2.algorithms.afb.AFBBaseMsg< V, U >
 AFBBaseMsg ()
 Empty constructor used for externalization.
String toString ()
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException

Package Attributes

String sender
 The sender of the message.

Additional Inherited Members

Public Attributes inherited from frodo2.algorithms.afb.AFBBaseMsg< V, U >
String dest
 The destination variable.
Protected Attributes inherited from frodo2.algorithms.afb.AFBBaseMsg< V, U >
PA< V, U > pa
 The partial assignment that is passed over to dest.
Timestamp timestamp
 Timestamp for the PA the message carries.

Detailed Description

The message containing the current partial assignment in AFB.

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

Constructor & Destructor Documentation

◆ CPAmsg() [1/2]

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

Empty constructor used for externalization.

Todo
Instead of including the sender in the message, use different message classes for forward messages and for backtrack messages.

References frodo2.algorithms.afb.AFB< V extends Addable< V >, U extends Addable< U > >.CPA_MSG_TYPE.

◆ CPAmsg() [2/2]

frodo2.algorithms.afb.CPAmsg< V extends Addable< V >, U extends Addable< U > >.CPAmsg ( String dest,
String sender,
PA< V, U > pa,
Timestamp timestamp )

Member Function Documentation

◆ readExternal()

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

◆ toString()

String frodo2.algorithms.afb.CPAmsg< V extends Addable< V >, U extends Addable< U > >.toString ( )

◆ writeExternal()

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

Member Data Documentation

◆ sender

String frodo2.algorithms.afb.CPAmsg< V extends Addable< V >, U extends Addable< U > >.sender
package

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