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

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