FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.communication.MessageWithPayload< T extends Serializable > Class Template Reference

A message that has a single object of generic type as a payload. More...

Inheritance diagram for frodo2.communication.MessageWithPayload< T extends Serializable >:

Public Member Functions

 MessageWithPayload ()
 Empty constructor.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
 MessageWithPayload (MessageType type, T payload)
 Constructor.
MessageWithPayload< T > clone ()
getPayload ()
void setPayload (T payload)
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.

Private Attributes

payload
 The payload of this message.

Additional Inherited Members

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

Detailed Description

A message that has a single object of generic type as a payload.

Author
Thomas Leaute
Parameters
<T>the type of the payload

Constructor & Destructor Documentation

◆ MessageWithPayload() [1/2]

Empty constructor.

Referenced by clone().

◆ MessageWithPayload() [2/2]

frodo2.communication.MessageWithPayload< T extends Serializable >.MessageWithPayload ( MessageType type,
T payload )

Constructor.

Parameters
typethe type of this message
payloadthe payload of this message

References payload, and frodo2.communication.Message.type.

Member Function Documentation

◆ clone()

MessageWithPayload< T > frodo2.communication.MessageWithPayload< T extends Serializable >.clone ( )
Returns
a shallow clone of this message

References frodo2.communication.Message.getType(), MessageWithPayload(), and payload.

Here is the call graph for this function:

◆ getPayload()

◆ readExternal()

◆ setPayload()

◆ toString()

String frodo2.communication.MessageWithPayload< T extends Serializable >.toString ( )

◆ writeExternal()

Member Data Documentation

◆ payload

T frodo2.communication.MessageWithPayload< T extends Serializable >.payload
private

The payload of this message.

Referenced by clone(), getPayload(), MessageWithPayload(), setPayload(), toString(), and writeExternal().


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