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

VALUE message. More...

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

Public Member Functions

 VALUEmsg ()
 Empty constructor.
 VALUEmsg (String dest, Val[] values)
 Constructor.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
String getDest ()
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.

Additional Inherited Members

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

Detailed Description

VALUE message.

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

Constructor & Destructor Documentation

◆ VALUEmsg() [1/2]

◆ VALUEmsg() [2/2]

frodo2.algorithms.odpop.VALUEmsg< Val extends Addable< Val > >.VALUEmsg ( String dest,
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.

Member Function Documentation

◆ getDest()

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

◆ getValues()

Val[] frodo2.algorithms.odpop.VALUEmsg< Val extends Addable< Val > >.getValues ( )
Returns
the values for the variables in the separator

Referenced by writeExternal().

◆ readExternal()

void frodo2.algorithms.odpop.VALUEmsg< 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 >.

References readExternal().

Referenced by readExternal().

Here is the call graph for this function:

◆ toString()

◆ writeExternal()

void frodo2.algorithms.odpop.VALUEmsg< 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 >.

References getValues().

Here is the call graph for this function:

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