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

In MPC-DisCSP4, a message containing a vector of shares. More...

Inheritance diagram for frodo2.algorithms.mpc_discsp.SharesMsg:

Public Member Functions

 SharesMsg ()
 Empty constructor used for serialization.
 SharesMsg (int agent, BigInteger[] shares, boolean step)
 Constructor.
int getAgent ()
BigInteger[] getShares ()
boolean step ()
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
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 SHARES_MSG_TYPE = new MessageType ("MPC", "Shares")
 The type of this message.

Private Attributes

int agent
 The sender agent.
BigInteger[] shares
 The shares.
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 vector of shares.

Author
Thomas Leaute

Constructor & Destructor Documentation

◆ SharesMsg() [1/2]

frodo2.algorithms.mpc_discsp.SharesMsg.SharesMsg ( )

Empty constructor used for serialization.

References SHARES_MSG_TYPE.

◆ SharesMsg() [2/2]

frodo2.algorithms.mpc_discsp.SharesMsg.SharesMsg ( int agent,
BigInteger[] shares,
boolean step )

Constructor.

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

References agent, shares, SHARES_MSG_TYPE, and step.

Member Function Documentation

◆ getAgent()

◆ getShares()

BigInteger[] frodo2.algorithms.mpc_discsp.SharesMsg.getShares ( )

◆ readExternal()

void frodo2.algorithms.mpc_discsp.SharesMsg.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.SharesMsg.step ( )
Returns
Boolean used to identify received messages that belong to the next phase and should be postponed

◆ toString()

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

Reimplemented from frodo2.communication.Message.

◆ writeExternal()

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

Reimplemented from frodo2.communication.Message.

References shares.

Member Data Documentation

◆ agent

int frodo2.algorithms.mpc_discsp.SharesMsg.agent
private

The sender agent.

Referenced by SharesMsg().

◆ shares

BigInteger [] frodo2.algorithms.mpc_discsp.SharesMsg.shares
private

The shares.

Referenced by SharesMsg(), and writeExternal().

◆ SHARES_MSG_TYPE

◆ step

boolean frodo2.algorithms.mpc_discsp.SharesMsg.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(), frodo2.algorithms.mpc_discsp.MPC_DisWCSP4< V extends Addable< V > >.notifyIn(), and SharesMsg().


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