FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.varOrdering.dfs.ParallelDFSmsg< S extends Comparable< S > &Serializable > Class Template Reference

A message containing a DFS message for a particular candidate root, used by DFSgenerationParallel. More...

Inheritance diagram for frodo2.algorithms.varOrdering.dfs.ParallelDFSmsg< S extends Comparable< S > &Serializable >:

Public Member Functions

 ParallelDFSmsg ()
 Used for externalization.
 ParallelDFSmsg (S rootScore, Message msg)
 Constructor.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
getRoot ()
Message getMessage ()
Public Member Functions inherited from frodo2.communication.MessageWith2Payloads< T1 extends Serializable, T2 extends Serializable >
 MessageWith2Payloads (MessageType type, T1 payload1, T2 payload2)
 Constructor.
 MessageWith2Payloads ()
 Empty constructor.
MessageWith2Payloads< T1, T2 > clone ()
T1 getPayload1 ()
void setPayload1 (T1 payload1)
T2 getPayload2 ()
void setPayload2 (T2 payload2)
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.

Additional Inherited Members

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

Detailed Description

A message containing a DFS message for a particular candidate root, used by DFSgenerationParallel.

Parameters
<S>the type used for the root election scores

Constructor & Destructor Documentation

◆ ParallelDFSmsg() [1/2]

◆ ParallelDFSmsg() [2/2]

frodo2.algorithms.varOrdering.dfs.ParallelDFSmsg< S extends Comparable< S > &Serializable >.ParallelDFSmsg ( S rootScore,
Message msg )

Constructor.

Parameters
rootScorethe score of the candidate root
msgthe message

References frodo2.communication.Message.getType(), frodo2.communication.MessageType.newChild(), and frodo2.algorithms.varOrdering.dfs.DFSgenerationParallel< S extends Comparable< S > &Serializable >.PARALLEL_DFS_MSG_TYPE.

Here is the call graph for this function:

Member Function Documentation

◆ getMessage()

Message frodo2.algorithms.varOrdering.dfs.ParallelDFSmsg< S extends Comparable< S > &Serializable >.getMessage ( )
Returns
the message contained in this wrapper

Referenced by writeExternal().

◆ getRoot()

S frodo2.algorithms.varOrdering.dfs.ParallelDFSmsg< S extends Comparable< S > &Serializable >.getRoot ( )
Returns
the score of the candidate root

Referenced by writeExternal().

◆ readExternal()

void frodo2.algorithms.varOrdering.dfs.ParallelDFSmsg< S extends Comparable< S > &Serializable >.readExternal ( ObjectInput in) throws IOException, ClassNotFoundException
See also
java.io.Externalizable#readExternal(java.io.ObjectInput)

Reimplemented from frodo2.communication.MessageWith2Payloads< T1 extends Serializable, T2 extends Serializable >.

References readExternal(), and frodo2.communication.Message.readExternal().

Referenced by readExternal().

Here is the call graph for this function:

◆ writeExternal()

void frodo2.algorithms.varOrdering.dfs.ParallelDFSmsg< S extends Comparable< S > &Serializable >.writeExternal ( ObjectOutput out) throws IOException
See also
java.io.Externalizable#writeExternal(java.io.ObjectOutput)

Reimplemented from frodo2.communication.MessageWith2Payloads< T1 extends Serializable, T2 extends Serializable >.

References getMessage(), getRoot(), and frodo2.communication.Message.writeExternal().

Here is the call graph for this function:

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