|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
Information about a node in the DFS. More...
Public Member Functions | |
| NodeInfo (Collection< String > flags) | |
| Constructor. | |
| void | addFlags (Collection< String > flags) |
| Adds flags to myFlags and lcas. | |
Public Attributes | |
| HashSet< String > | myFlags = new HashSet<String> () |
| The set of flags for this node. | |
| HashSet< String > | lcas = new HashSet<String> () |
| The set of all flags for which this node might be the lca. | |
| String | parent |
| The parent node. | |
| HashMap< String, HashSet< String > > | childFlags |
| For each child node, the set of flags received from that node during phase 1. | |
| HashSet< String > | allFlags |
| The set of all flags received from all children. | |
| int | nbrMsgsRemaining = 0 |
| A counter for the number of messages to be received from children. | |
| ArrayList< LCAmsg1 > | phase1msgs = new ArrayList<LCAmsg1> () |
| Used to store phase 1 messages received for this node until we receive the DFSoutput message for this node. | |
Information about a node in the DFS.
| frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.NodeInfo | ( | Collection< String > | flags | ) |
Constructor.
| flags | a set of flags |
| void frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.addFlags | ( | Collection< String > | flags | ) |
Adds flags to myFlags and lcas.
| flags | the flags |
| HashSet<String> frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.allFlags |
The set of all flags received from all children.
Referenced by frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.newPhase1msg(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtLCAs< V extends Addable< V >, U extends Addable< U > >.newPhase1msg(), frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.notifyIn(), and frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtRoots< V extends Addable< V >, U extends Addable< U > >.notifyIn().
| HashMap< String, HashSet<String> > frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.childFlags |
For each child node, the set of flags received from that node during phase 1.
Referenced by frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.notifyIn(), and frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.terminatePhase2().
| HashSet<String> frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.lcas = new HashSet<String> () |
The set of all flags for which this node might be the lca.
Referenced by frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtLCAs< V extends Addable< V >, U extends Addable< U > >.chooseSamples(), frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.notifyIn(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtRoots< V extends Addable< V >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.sendOutput(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtLCAs< V extends Addable< V >, U extends Addable< U > >.sendOutput(), and frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.terminatePhase2().
| HashSet<String> frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.myFlags = new HashSet<String> () |
The set of flags for this node.
Referenced by frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.notifyIn(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtRoots< V extends Addable< V >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtLCAs< V extends Addable< V >, U extends Addable< U > >.proposeSamples(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtRoots< V extends Addable< V >, U extends Addable< U > >.proposeSamples(), and frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtLCAs< V extends Addable< V >, U extends Addable< U > >.sendOutput().
| int frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.nbrMsgsRemaining = 0 |
A counter for the number of messages to be received from children.
Referenced by frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.notifyIn().
| String frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.parent |
The parent node.
Referenced by frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.newPhase1msg(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtLCAs< V extends Addable< V >, U extends Addable< U > >.newPhase1msg(), frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.notifyIn(), and frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtRoots< V extends Addable< V >, U extends Addable< U > >.notifyIn().
| ArrayList<LCAmsg1> frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.phase1msgs = new ArrayList<LCAmsg1> () |
Used to store phase 1 messages received for this node until we receive the DFSoutput message for this node.
Referenced by frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.notifyIn(), and frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.AtRoots< V extends Addable< V >, U extends Addable< U > >.notifyIn().