|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
In MPC-DisCSP4, a message containing a vector of shares. More...

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. | |
In MPC-DisCSP4, a message containing a vector of shares.
| frodo2.algorithms.mpc_discsp.SharesMsg.SharesMsg | ( | ) |
Empty constructor used for serialization.
References SHARES_MSG_TYPE.
| frodo2.algorithms.mpc_discsp.SharesMsg.SharesMsg | ( | int | agent, |
| BigInteger[] | shares, | ||
| boolean | step ) |
Constructor.
| agent | The sender agent |
| shares | the shares |
| step | Boolean used to identify received messages that belong to the next phase and should be postponed |
References agent, shares, SHARES_MSG_TYPE, and step.
| int frodo2.algorithms.mpc_discsp.SharesMsg.getAgent | ( | ) |
Referenced by frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.notifyIn(), and frodo2.algorithms.mpc_discsp.MPC_DisWCSP4< V extends Addable< V > >.notifyIn().
| BigInteger[] frodo2.algorithms.mpc_discsp.SharesMsg.getShares | ( | ) |
Referenced by frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.notifyIn(), and frodo2.algorithms.mpc_discsp.MPC_DisWCSP4< V extends Addable< V > >.notifyIn().
| void frodo2.algorithms.mpc_discsp.SharesMsg.readExternal | ( | ObjectInput | in | ) | throws IOException, ClassNotFoundException |
Reimplemented from frodo2.communication.Message.
| boolean frodo2.algorithms.mpc_discsp.SharesMsg.step | ( | ) |
| String frodo2.algorithms.mpc_discsp.SharesMsg.toString | ( | ) |
Reimplemented from frodo2.communication.Message.
| void frodo2.algorithms.mpc_discsp.SharesMsg.writeExternal | ( | ObjectOutput | out | ) | throws IOException |
Reimplemented from frodo2.communication.Message.
References shares.
|
private |
The sender agent.
Referenced by SharesMsg().
|
private |
The shares.
Referenced by SharesMsg(), and writeExternal().
|
static |
The type of this message.
Referenced by frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.getMsgTypes(), frodo2.algorithms.mpc_discsp.MPC_DisWCSP4< V extends Addable< V > >.getMsgTypes(), frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.notifyIn(), frodo2.algorithms.mpc_discsp.MPC_DisWCSP4< V extends Addable< V > >.notifyIn(), SharesMsg(), and SharesMsg().
|
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().