FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.dpop.privacy.ToLastLeafMsg Class Reference

A wrapper message containing a payload message that must be forwarded to the last leaf in the sub-tree rooted at the destination variable. More...

Inheritance diagram for frodo2.algorithms.dpop.privacy.ToLastLeafMsg:

Public Member Functions

 ToLastLeafMsg ()
 Empty constructor used for externalization.
 ToLastLeafMsg (String dest, Message payloadMsg)
 Constructor.
String getVar ()
Message getPayload ()
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
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 wrapper message containing a payload message that must be forwarded to the last leaf in the sub-tree rooted at the destination variable.

Constructor & Destructor Documentation

◆ ToLastLeafMsg() [1/2]

frodo2.algorithms.dpop.privacy.ToLastLeafMsg.ToLastLeafMsg ( )

Empty constructor used for externalization.

References frodo2.algorithms.dpop.privacy.SecureCircularRouting.TO_LAST_LEAF_MSG_TYPE.

◆ ToLastLeafMsg() [2/2]

frodo2.algorithms.dpop.privacy.ToLastLeafMsg.ToLastLeafMsg ( String dest,
Message payloadMsg )

Constructor.

Parameters
destthe destination variable
payloadMsgthe payload message to be forwarded to the last leaf in the sub-tree rooted at dest

References frodo2.communication.Message.getType(), frodo2.communication.MessageType.newChild(), and frodo2.algorithms.dpop.privacy.SecureCircularRouting.TO_LAST_LEAF_MSG_TYPE.

Here is the call graph for this function:

Member Function Documentation

◆ getPayload()

Message frodo2.algorithms.dpop.privacy.ToLastLeafMsg.getPayload ( )
Returns
the payload message

Referenced by frodo2.algorithms.dpop.privacy.SecureCircularRouting.notifyIn().

◆ getVar()

String frodo2.algorithms.dpop.privacy.ToLastLeafMsg.getVar ( )
Returns
the destination variable

Referenced by frodo2.algorithms.dpop.privacy.SecureCircularRouting.notifyIn().

◆ readExternal()

void frodo2.algorithms.dpop.privacy.ToLastLeafMsg.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.dpop.privacy.ToLastLeafMsg.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 frodo2.communication.Message.writeExternal().

Here is the call graph for this function:

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