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

In MPC-DisCSP4, a message containing a single share. More...

Inheritance diagram for frodo2.algorithms.mpc_discsp.OneShareMsg:

Public Member Functions

 OneShareMsg ()
 Empty constructor used for serialization.
 OneShareMsg (int agent, BigInteger share, boolean step)
 Constructor.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
int getAgent ()
BigInteger getShare ()
boolean step ()
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 ONE_SHARE_MSG = new MessageType ("MPC", "OneShare")
 The type of this message.

Private Attributes

int agent
 The sender agent.
BigInteger share
 The share.
boolean step
 Boolean used to identify received messages that belong to the next phase and should be postponed.

Additional Inherited Members

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

Detailed Description

In MPC-DisCSP4, a message containing a single share.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ OneShareMsg() [1/2]

frodo2.algorithms.mpc_discsp.OneShareMsg.OneShareMsg ( )

Empty constructor used for serialization.

References ONE_SHARE_MSG.

◆ OneShareMsg() [2/2]

frodo2.algorithms.mpc_discsp.OneShareMsg.OneShareMsg ( int agent,
BigInteger share,
boolean step )

Constructor.

Parameters
agentThe sender agent
sharethe share
stepBoolean used to identify received messages that belong to the next phase and should be postponed

References agent, ONE_SHARE_MSG, share, and step.

Member Function Documentation

◆ getAgent()

int frodo2.algorithms.mpc_discsp.OneShareMsg.getAgent ( )

◆ getShare()

BigInteger frodo2.algorithms.mpc_discsp.OneShareMsg.getShare ( )

◆ readExternal()

void frodo2.algorithms.mpc_discsp.OneShareMsg.readExternal ( ObjectInput in) throws IOException, ClassNotFoundException
See also
java.io.Externalizable#readExternal(java.io.ObjectInput)

Reimplemented from frodo2.communication.Message.

◆ step()

boolean frodo2.algorithms.mpc_discsp.OneShareMsg.step ( )
Returns
Boolean used to identify received messages that belong to the next phase and should be postponed

◆ toString()

String frodo2.algorithms.mpc_discsp.OneShareMsg.toString ( )
See also
Message.toString()

Reimplemented from frodo2.communication.Message.

◆ writeExternal()

void frodo2.algorithms.mpc_discsp.OneShareMsg.writeExternal ( ObjectOutput out) throws IOException
See also
java.io.Externalizable#writeExternal(java.io.ObjectOutput)

Reimplemented from frodo2.communication.Message.

Member Data Documentation

◆ agent

int frodo2.algorithms.mpc_discsp.OneShareMsg.agent
private

The sender agent.

Referenced by OneShareMsg().

◆ ONE_SHARE_MSG

◆ share

BigInteger frodo2.algorithms.mpc_discsp.OneShareMsg.share
private

The share.

Referenced by OneShareMsg().

◆ step

boolean frodo2.algorithms.mpc_discsp.OneShareMsg.step
private

Boolean used to identify received messages that belong to the next phase and should be postponed.

Referenced by frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.notifyIn(), and OneShareMsg().


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