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

A message containing the optimal utility found for a given component. More...

Inheritance diagram for frodo2.algorithms.dpop.privacy.OptUtilMsg< U extends Addable< U > >:

Public Member Functions

 OptUtilMsg (String dest, U utility)
 Constructor.
 OptUtilMsg ()
 Used for externalization only.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
String getDest ()
getUtil ()
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.

Static Public Attributes

static final MessageType COMP_OPT_UTIL_MSG_TYPE = new MessageType ("P2-DPOP", "EncryptedUTIL", "CompOptUtil")
 The type of this message.

Additional Inherited Members

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

Detailed Description

A message containing the optimal utility found for a given component.

Author
Thomas Leaute
Parameters
<U>the type used for the utility

Constructor & Destructor Documentation

◆ OptUtilMsg() [1/2]

frodo2.algorithms.dpop.privacy.OptUtilMsg< U extends Addable< U > >.OptUtilMsg ( String dest,
U utility )

Constructor.

Parameters
destthe destination variable
utilitythe optimal utility

References COMP_OPT_UTIL_MSG_TYPE.

◆ OptUtilMsg() [2/2]

Used for externalization only.

References COMP_OPT_UTIL_MSG_TYPE.

Member Function Documentation

◆ getDest()

String frodo2.algorithms.dpop.privacy.OptUtilMsg< U extends Addable< U > >.getDest ( )
Returns
the destination variable

◆ getUtil()

U frodo2.algorithms.dpop.privacy.OptUtilMsg< U extends Addable< U > >.getUtil ( )
Returns
the utility

◆ readExternal()

void frodo2.algorithms.dpop.privacy.OptUtilMsg< U extends Addable< U > >.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:

◆ writeExternal()

void frodo2.algorithms.dpop.privacy.OptUtilMsg< U extends Addable< U > >.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 >.

Member Data Documentation

◆ COMP_OPT_UTIL_MSG_TYPE

final MessageType frodo2.algorithms.dpop.privacy.OptUtilMsg< U extends Addable< U > >.COMP_OPT_UTIL_MSG_TYPE = new MessageType ("P2-DPOP", "EncryptedUTIL", "CompOptUtil")
static

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