FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.varOrdering.election.MaxIDmsg< T extends Comparable< T > &Serializable > Class Template Reference

Leader election message containing two payloads: the sender agent, and its current maxID. More...

Inheritance diagram for frodo2.algorithms.varOrdering.election.MaxIDmsg< T extends Comparable< T > &Serializable >:

Public Member Functions

 MaxIDmsg ()
 Empty constructor.
 MaxIDmsg (String sender, T maxID)
 Constructor.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
String getSender ()
getMaxID ()
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.

Static Private Attributes

static final long serialVersionUID = -3182721919850385243L
 Used for serialization.

Additional Inherited Members

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

Detailed Description

Leader election message containing two payloads: the sender agent, and its current maxID.

Parameters
<T>the type used for agent IDs

Constructor & Destructor Documentation

◆ MaxIDmsg() [1/2]

frodo2.algorithms.varOrdering.election.MaxIDmsg< T extends Comparable< T > &Serializable >.MaxIDmsg ( )

Empty constructor.

◆ MaxIDmsg() [2/2]

frodo2.algorithms.varOrdering.election.MaxIDmsg< T extends Comparable< T > &Serializable >.MaxIDmsg ( String sender,
T maxID )

Constructor.

Parameters
senderthe ID of the sender agent
maxIDthe current maxID

References frodo2.algorithms.varOrdering.election.LeaderElectionMaxID< T extends Comparable< T > &Serializable >.LE_MSG_TYPE.

Member Function Documentation

◆ getMaxID()

T frodo2.algorithms.varOrdering.election.MaxIDmsg< T extends Comparable< T > &Serializable >.getMaxID ( )
Returns
the current maxID

References frodo2.communication.MessageWith2Payloads< T1 extends Serializable, T2 extends Serializable >.getPayload2().

Referenced by toString(), and writeExternal().

Here is the call graph for this function:

◆ getSender()

String frodo2.algorithms.varOrdering.election.MaxIDmsg< T extends Comparable< T > &Serializable >.getSender ( )
Returns
the ID of the sender agent

References frodo2.communication.MessageWith2Payloads< T1 extends Serializable, T2 extends Serializable >.getPayload1().

Referenced by toString(), and writeExternal().

Here is the call graph for this function:

◆ readExternal()

◆ toString()

◆ writeExternal()

void frodo2.algorithms.varOrdering.election.MaxIDmsg< T extends Comparable< T > &Serializable >.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 getMaxID(), and getSender().

Here is the call graph for this function:

Member Data Documentation

◆ serialVersionUID

final long frodo2.algorithms.varOrdering.election.MaxIDmsg< T extends Comparable< T > &Serializable >.serialVersionUID = -3182721919850385243L
staticprivate

Used for serialization.


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