FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.dpop.stochastic.SamplesMsg1< V extends Addable< V > > Class Template Reference

Phase 1 LCA message containing proposed samples for the random variables. More...

Inheritance diagram for frodo2.algorithms.dpop.stochastic.SamplesMsg1< V extends Addable< V > >:

Public Member Functions

 SamplesMsg1 ()
 Empty constructor used for externalization.
void writeExternal (ObjectOutput out) throws IOException
void readExternal (ObjectInput in) throws IOException, ClassNotFoundException
 SamplesMsg1 (String sender, String dest, HashMap< String, Map< V, Double > > samples)
 Constructor.
HashMap< String, Map< V, Double > > getSamples ()
String toString ()
Public Member Functions inherited from frodo2.algorithms.dpop.stochastic.LCAmsg1
 LCAmsg1 ()
 Empty constructor used for externalization.
 LCAmsg1 (String sender, String dest, HashSet< String > flags)
 Constructor.
String getSender ()
String getDest ()
HashSet< String > getFlags ()
Public Member Functions inherited from frodo2.communication.MessageWith3Payloads< T1 extends Serializable, T2 extends Serializable, T3 extends Serializable >
 MessageWith3Payloads ()
 Empty constructor.
 MessageWith3Payloads (MessageType type, T1 payload1, T2 payload2, T3 payload3)
 Constructor.
MessageWith3Payloads< T1, T2, T3 > clone ()
T1 getPayload1 ()
void setPayload1 (T1 payload1)
T2 getPayload2 ()
void setPayload2 (T2 payload2)
T3 getPayload3 ()
void setPayload3 (T3 payload3)
Public Member Functions inherited from frodo2.communication.Message
 Message (MessageType type)
 Constructor.
 Message ()
 Empty constructor.
MessageType getType ()
void fakeSerialize ()
 Pretends to serialize the message.

Package Attributes

HashMap< String, Map< V, Double > > samples
 For each random variable, its proposed samples.

Additional Inherited Members

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

Detailed Description

Phase 1 LCA message containing proposed samples for the random variables.

Parameters
<V>the type used for variable values

Constructor & Destructor Documentation

◆ SamplesMsg1() [1/2]

Empty constructor used for externalization.

◆ SamplesMsg1() [2/2]

frodo2.algorithms.dpop.stochastic.SamplesMsg1< V extends Addable< V > >.SamplesMsg1 ( String sender,
String dest,
HashMap< String, Map< V, Double > > samples )

Constructor.

Parameters
senderthe sender of the message
destthe destination of the message
samplesfor each random variable, its proposed samples

References samples.

Member Function Documentation

◆ getSamples()

HashMap< String, Map< V, Double > > frodo2.algorithms.dpop.stochastic.SamplesMsg1< V extends Addable< V > >.getSamples ( )
Returns
for each random variable, its proposed samples

◆ readExternal()

void frodo2.algorithms.dpop.stochastic.SamplesMsg1< V extends Addable< V > >.readExternal ( ObjectInput in) throws IOException, ClassNotFoundException

◆ toString()

◆ writeExternal()

void frodo2.algorithms.dpop.stochastic.SamplesMsg1< V extends Addable< V > >.writeExternal ( ObjectOutput out) throws IOException

Member Data Documentation

◆ samples

HashMap< String, Map<V, Double> > frodo2.algorithms.dpop.stochastic.SamplesMsg1< V extends Addable< V > >.samples
package

For each random variable, its proposed samples.

Referenced by SamplesMsg1().


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