FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
Loading...
Searching...
No Matches
frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo Class Reference

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< LCAmsg1phase1msgs = new ArrayList<LCAmsg1> ()
 Used to store phase 1 messages received for this node until we receive the DFSoutput message for this node.

Detailed Description

Information about a node in the DFS.

Constructor & Destructor Documentation

◆ NodeInfo()

frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.NodeInfo ( Collection< String > flags)

Constructor.

Parameters
flagsa set of flags

Member Function Documentation

◆ addFlags()

void frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.addFlags ( Collection< String > flags)

Adds flags to myFlags and lcas.

Parameters
flagsthe flags

Member Data Documentation

◆ allFlags

◆ childFlags

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().

◆ lcas

◆ myFlags

◆ nbrMsgsRemaining

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().

◆ parent

◆ phase1msgs

ArrayList<LCAmsg1> frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.NodeInfo.phase1msgs = new ArrayList<LCAmsg1> ()

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