|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
A message containing shares of optimal values for some variables. More...

Public Member Functions | |
| SolShareMsg () | |
| Empty constructor used for externalization. | |
| SolShareMsg (int sender, HashMap< String, BigInteger > shares, boolean step) | |
| Constructor. | |
| void | writeExternal (ObjectOutput out) throws IOException |
| void | readExternal (ObjectInput in) throws IOException, ClassNotFoundException |
| int | getSender () |
| HashMap< String, BigInteger > | getShares () |
| 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 | SOL_SHARE_MSG_TYPE = new MessageType ("MPC", "SolutionShare") |
| The type of the messages containing shares of optimal values for some variables. | |
Private Attributes | |
| int | sender |
| The ID of the sender agent. | |
| HashMap< String, BigInteger > | shares |
| For each variable, a share of its optimal value. | |
| boolean | step |
| The step this message belongs to. | |
Additional Inherited Members | |
| Protected Attributes inherited from frodo2.communication.Message | |
| MessageType | type |
| The type of this message. | |
A message containing shares of optimal values for some variables.
| frodo2.algorithms.mpc_discsp.SolShareMsg.SolShareMsg | ( | ) |
Empty constructor used for externalization.
References SOL_SHARE_MSG_TYPE.
| frodo2.algorithms.mpc_discsp.SolShareMsg.SolShareMsg | ( | int | sender, |
| HashMap< String, BigInteger > | shares, | ||
| boolean | step ) |
Constructor.
| sender | The ID of the sender agent |
| shares | For each variable, a share of its optimal value |
| step | The step this message belongs to |
References sender, shares, SOL_SHARE_MSG_TYPE, and step.
| int frodo2.algorithms.mpc_discsp.SolShareMsg.getSender | ( | ) |
References sender.
Referenced by frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.notifyIn().
| HashMap< String, BigInteger > frodo2.algorithms.mpc_discsp.SolShareMsg.getShares | ( | ) |
References shares.
Referenced by frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.notifyIn().
| void frodo2.algorithms.mpc_discsp.SolShareMsg.readExternal | ( | ObjectInput | in | ) | throws IOException, ClassNotFoundException |
Reimplemented from frodo2.communication.Message.
| boolean frodo2.algorithms.mpc_discsp.SolShareMsg.step | ( | ) |
| String frodo2.algorithms.mpc_discsp.SolShareMsg.toString | ( | ) |
Reimplemented from frodo2.communication.Message.
| void frodo2.algorithms.mpc_discsp.SolShareMsg.writeExternal | ( | ObjectOutput | out | ) | throws IOException |
Reimplemented from frodo2.communication.Message.
|
private |
The ID of the sender agent.
Referenced by getSender(), and SolShareMsg().
|
private |
For each variable, a share of its optimal value.
Referenced by getShares(), and SolShareMsg().
|
static |
The type of the messages containing shares of optimal values for some variables.
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(), SolShareMsg(), and SolShareMsg().
|
private |
The step this message belongs to.
Referenced by frodo2.algorithms.mpc_discsp.MPC_DisCSP4< V extends Addable< V > >.notifyIn(), and SolShareMsg().