FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.dpop.privacy.DeliveryMsg< M extends Message > Class Template Reference

A wrapper message containing a message to be delivered to a given variable by SecureCircularRouting. More...

Inheritance diagram for frodo2.algorithms.dpop.privacy.DeliveryMsg< M extends Message >:

Public Member Functions

 DeliveryMsg ()
 Empty constructor used for externalization.
 DeliveryMsg (String dest, M payloadMsg)
 Constructor.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
String getDest ()
getMessage ()
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

A wrapper message containing a message to be delivered to a given variable by SecureCircularRouting.

Parameters
<M>the Message class of the payload

Constructor & Destructor Documentation

◆ DeliveryMsg() [1/2]

◆ DeliveryMsg() [2/2]

frodo2.algorithms.dpop.privacy.DeliveryMsg< M extends Message >.DeliveryMsg ( String dest,
M payloadMsg )

Constructor.

Parameters
destdestination variable
payloadMsgpayload message

References frodo2.algorithms.dpop.privacy.SecureCircularRouting.DELIVERY_MSG_TYPE, and frodo2.communication.MessageType.newChild().

Here is the call graph for this function:

Member Function Documentation

◆ getDest()

String frodo2.algorithms.dpop.privacy.DeliveryMsg< M extends Message >.getDest ( )
Returns
the destination variable

Referenced by writeExternal().

◆ getMessage()

M frodo2.algorithms.dpop.privacy.DeliveryMsg< M extends Message >.getMessage ( )
Returns
the message being delivered

Referenced by writeExternal().

◆ readExternal()

void frodo2.algorithms.dpop.privacy.DeliveryMsg< M extends Message >.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.dpop.privacy.DeliveryMsg< M extends Message >.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 getDest(), getMessage(), and frodo2.communication.Message.writeExternal().

Here is the call graph for this function:

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