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

Value message with variables. More...

Inheritance diagram for frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >:

Public Member Functions

 VALUEmsgWithVars ()
 Empty constructor.
 VALUEmsgWithVars (String dest, HashMap< String, Val > values)
 Constructor.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
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 Member Functions

 VALUEmsgWithVars (MessageType type, String dest, HashMap< String, Val > values)
 Constructor.

Additional Inherited Members

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

Detailed Description

Value message with variables.

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

Constructor & Destructor Documentation

◆ VALUEmsgWithVars() [1/3]

◆ VALUEmsgWithVars() [2/3]

frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >.VALUEmsgWithVars ( String dest,
HashMap< String, Val > values )

Constructor.

Parameters
destdestination variable
valuesarray of values for the variables in variables, in the same order

References frodo2.algorithms.odpop.VALUEpropagation< Val extends Addable< Val >, U extends Addable< U > >.VALUE_MSG_TYPE.

◆ VALUEmsgWithVars() [3/3]

frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >.VALUEmsgWithVars ( MessageType type,
String dest,
HashMap< String, Val > values )
protected

Constructor.

Parameters
typethe type of the message
destdestination variable
valuesarray of values for the variables in variables, in the same order

References frodo2.communication.Message.type.

Member Function Documentation

◆ getDest()

String frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >.getDest ( )
Returns
the destination variable

◆ getValues()

HashMap< String, Val > frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >.getValues ( )
Returns
the values for the variables in the separator

Referenced by writeExternal().

◆ readExternal()

void frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >.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 >.

Reimplemented in frodo2.algorithms.asodpop.VALUEmsgChild< Val extends Addable< Val > >.

References readExternal().

Referenced by readExternal().

Here is the call graph for this function:

◆ toString()

◆ writeExternal()

void frodo2.algorithms.odpop.VALUEmsgWithVars< Val extends Addable< Val > >.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 >.

Reimplemented in frodo2.algorithms.asodpop.VALUEmsgChild< Val extends Addable< Val > >.

References getValues().

Here is the call graph for this function:

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