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

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

Inheritance diagram for frodo2.algorithms.synchbb.PathMsg< V extends Addable< V >, U extends Addable< U > >:

Public Member Functions

 PathMsg ()
 Empty constructor used for externalization.
 PathMsg (String dest, V[][] assignments, int offset, int nbrAssignments, U cost)
 Constructor.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
String toString ()
Public Member Functions inherited from frodo2.algorithms.synchbb.BTmsg
 BTmsg ()
 Empty constructor used for externalization.
 BTmsg (String dest)
 Constructor.
Public Member Functions inherited from frodo2.communication.Message
 Message (MessageType type)
 Constructor.
 Message ()
 Empty constructor.
MessageType getType ()
void fakeSerialize ()
 Pretends to serialize the message.

Package Attributes

V[][] assignments
 The current assignments to variables.
int offset
 The first "offset" values of the solution are not sent because they have not changed since the last PATH message.
int nbrAssignments
 The number of assignments to send (ignoring the offset).
cost
 The cost of the current partial assignment.

Additional Inherited Members

Protected Member Functions inherited from frodo2.algorithms.synchbb.BTmsg
 BTmsg (MessageType type, String dest)
 Constructor.
Protected Attributes inherited from frodo2.algorithms.synchbb.BTmsg
String dest
 The destination variable.
Protected Attributes inherited from frodo2.communication.Message
MessageType type
 The type of this message.

Detailed Description

The message containing the current partial assignment in SynchBB.

Parameters
<V>the type used for variable values
<U>the type used for utility values

Constructor & Destructor Documentation

◆ PathMsg() [1/2]

◆ PathMsg() [2/2]

frodo2.algorithms.synchbb.PathMsg< V extends Addable< V >, U extends Addable< U > >.PathMsg ( String dest,
V assignments[][],
int offset,
int nbrAssignments,
U cost )

Constructor.

Parameters
destThe destination variable
assignmentsThe current assignments to variables
offsetThe first "offset" values of the solution are not sent because they have not changed since the last PATH message
nbrAssignmentsThe number of assignments to send
costThe cost of the current partial assignment

References assignments, cost, frodo2.algorithms.synchbb.BTmsg.dest, nbrAssignments, offset, and frodo2.algorithms.synchbb.SynchBB< V extends Addable< V >, U extends Addable< U > >.PATH_MSG_TYPE.

Member Function Documentation

◆ readExternal()

void frodo2.algorithms.synchbb.PathMsg< V extends Addable< V >, U extends Addable< U > >.readExternal ( ObjectInput in) throws IOException, ClassNotFoundException
See also
BTmsg.readExternal(java.io.ObjectInput)

Reimplemented from frodo2.algorithms.synchbb.BTmsg.

References nbrAssignments.

◆ toString()

String frodo2.algorithms.synchbb.PathMsg< V extends Addable< V >, U extends Addable< U > >.toString ( )

◆ writeExternal()

void frodo2.algorithms.synchbb.PathMsg< V extends Addable< V >, U extends Addable< U > >.writeExternal ( ObjectOutput out) throws IOException
See also
BTmsg.writeExternal(java.io.ObjectOutput)

Reimplemented from frodo2.algorithms.synchbb.BTmsg.

Member Data Documentation

◆ assignments

V [][] frodo2.algorithms.synchbb.PathMsg< V extends Addable< V >, U extends Addable< U > >.assignments
package

The current assignments to variables.

Referenced by PathMsg().

◆ cost

U frodo2.algorithms.synchbb.PathMsg< V extends Addable< V >, U extends Addable< U > >.cost
package

The cost of the current partial assignment.

Referenced by PathMsg().

◆ nbrAssignments

int frodo2.algorithms.synchbb.PathMsg< V extends Addable< V >, U extends Addable< U > >.nbrAssignments
package

The number of assignments to send (ignoring the offset).

Referenced by PathMsg(), and readExternal().

◆ offset

int frodo2.algorithms.synchbb.PathMsg< V extends Addable< V >, U extends Addable< U > >.offset
package

The first "offset" values of the solution are not sent because they have not changed since the last PATH message.

Referenced by PathMsg().


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