FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.asodpop.VALUEmsgChild< Val extends Addable< Val > > Class Template Reference

A VALUE message, which contains the value assignment of a variable. More...

Inheritance diagram for frodo2.algorithms.asodpop.VALUEmsgChild< Val extends Addable< Val > >:

Public Member Functions

 VALUEmsgChild ()
 Empty constructor.
 VALUEmsgChild (String dest, HashMap< String, Val > values, boolean isConfirmed)
 A constructor.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
boolean isConfirmed ()
Public Member Functions inherited from frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >
 VALUEmsgWithVars ()
 Empty constructor.
 VALUEmsgWithVars (String dest, HashMap< String, Val > values)
 Constructor.
String getDest ()
HashMap< String, Val > getValues ()
String toString ()
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)
Public Member Functions inherited from frodo2.communication.Message
 Message (MessageType type)
 Constructor.
 Message ()
 Empty constructor.
MessageType getType ()
void fakeSerialize ()
 Pretends to serialize the message.

Protected Attributes

boolean isConfirmed
 If this message is confirmed, it also functions as a termination message.
Protected Attributes inherited from frodo2.communication.Message
MessageType type
 The type of this message.

Additional Inherited Members

Protected Member Functions inherited from frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >
 VALUEmsgWithVars (MessageType type, String dest, HashMap< String, Val > values)
 Constructor.

Detailed Description

A VALUE message, which contains the value assignment of a variable.

Author
Brammert Ottens, Thomas Leaute
Parameters
<Val>type used for variable values

Constructor & Destructor Documentation

◆ VALUEmsgChild() [1/2]

◆ VALUEmsgChild() [2/2]

frodo2.algorithms.asodpop.VALUEmsgChild< Val extends Addable< Val > >.VALUEmsgChild ( String dest,
HashMap< String, Val > values,
boolean isConfirmed )

A constructor.

Parameters
destThe recipient of the message
valuesAn array of value assignments
isConfirmedtrue when this message is a confirmed message

References isConfirmed, and frodo2.algorithms.asodpop.ASODPOP< Val extends Addable< Val >, U extends Addable< U > >.VALUE_MSG_TYPE_CHILD.

Member Function Documentation

◆ isConfirmed()

boolean frodo2.algorithms.asodpop.VALUEmsgChild< Val extends Addable< Val > >.isConfirmed ( )
Returns
Returns true if this message is confirmed, and false otherwise

References isConfirmed.

◆ readExternal()

void frodo2.algorithms.asodpop.VALUEmsgChild< Val extends Addable< Val > >.readExternal ( ObjectInput in) throws IOException, ClassNotFoundException
See also
java.io.Externalizable#readExternal(java.io.ObjectInput)

Reimplemented from frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >.

References readExternal().

Referenced by readExternal().

Here is the call graph for this function:

◆ writeExternal()

void frodo2.algorithms.asodpop.VALUEmsgChild< Val extends Addable< Val > >.writeExternal ( ObjectOutput out) throws IOException
See also
java.io.Externalizable#writeExternal(java.io.ObjectOutput)

Reimplemented from frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >.

Member Data Documentation

◆ isConfirmed

boolean frodo2.algorithms.asodpop.VALUEmsgChild< Val extends Addable< Val > >.isConfirmed
protected

If this message is confirmed, it also functions as a termination message.

Referenced by isConfirmed(), and VALUEmsgChild().


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