|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
The view of the DFS from one variable. More...

Public Member Functions | |
| DFSview (String id) | |
| Constructor. | |
| DFSview< V, U > | clone () |
| String | toString () |
| String | getID () |
| List< String > | getPseudoChildren (String child) |
| Returns the (immutable) list of pseudo-children below the input child. | |
| void | addChild (String child) |
| Adds a child. | |
| List< String > | removeChild (String child) |
| Removes a child. | |
| void | changeChild (String oldChild, String newChild) |
| Changes one child into another. | |
| void | addPseudoChild (String pseudo) |
| Adds a pseudo-child below the last child. | |
| void | addPseudoChild (String pseudo, List< String > partialPath) |
| Adds a pseudo child below the last child. | |
| void | addPseudoChild (String child, String pseudo) |
| Adds a pseudo-child. | |
| void | addPseudoChild (String child, String pseudo, List< String > partialPath) |
| Adds a pseudo child. | |
| void | removePseudoChild (String pseudo) |
| Removes a pseudo-child. | |
| void | setParent (String var, String agent) |
| Sets the parent. | |
| void | addPseudoParent (String var) |
| Adds a pseudo-parent. | |
| String | getParent () |
| String | getParentAgent () |
| List< String > | getChildren () |
| List< String > | getPseudoParents () |
| List< String > | getAllPseudoChildren () |
| void | removePseudoParent (String var) |
| Removes a pseudo-parent. | |
| List< String > | getPathToPseudoChild (String pseudo) |
| Returns the partial path to the input pseudo-child. | |
| List< ? extends UtilitySolutionSpace< V, U > > | getSpaces () |
| void | setSpaces (List< ? extends UtilitySolutionSpace< V, U > > spaces) |
| Sets the list of constraints this variable is responsible for enforcing. | |
Private Attributes | |
| final String | id |
| This cluster's ID. | |
| ArrayList< String > | pseudoParents = new ArrayList<String> () |
| The list of pseudo-parents. | |
| String | parent |
| The parent variable, if any. | |
| String | parentAgent |
| The parent agent, if any. | |
| ArrayList< String > | children = new ArrayList<String> () |
| The list of children. | |
| HashMap< String, List< String > > | pseudoChildren = new HashMap< String, List<String> > () |
| For each child, the list of pseudo-children below that child. | |
| HashMap< String, List< String > > | pathsToPseudoChildren = new HashMap< String, List<String> > () |
| For each pseudo-child, a partial path that leads to it. | |
| List< ? extends UtilitySolutionSpace< V, U > > | spaces |
| The list of constraints this variable is responsible for enforcing. | |
Static Private Attributes | |
| static final long | serialVersionUID = -4589293255218453960L |
| Used for serialization. | |
The view of the DFS from one variable.
| <V> | the type used for variable values |
| <U> | the type used for utility values |
| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.addChild | ( | String | child | ) |
Adds a child.
| child | the new child variable |
Referenced by changeChild(), frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.computeDFS(), and frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.sendDownCHILDtoken().
| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.addPseudoChild | ( | String | child, |
| String | pseudo ) |
Adds a pseudo-child.
| child | the child under which to add the new pseudo-child |
| pseudo | the new pseudo-child |
| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.addPseudoChild | ( | String | child, |
| String | pseudo, | ||
| List< String > | partialPath ) |
Adds a pseudo child.
| child | the child under which to add the new pseudo-child |
| pseudo | the new pseudo-child |
| partialPath | the partial path to that pseudo-child |
References addPseudoChild().

| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.addPseudoChild | ( | String | pseudo | ) |
Adds a pseudo-child below the last child.
| pseudo | the new pseudo-child |
References children.
Referenced by addPseudoChild(), addPseudoChild(), and frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.computeDFS().
| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.addPseudoChild | ( | String | pseudo, |
| List< String > | partialPath ) |
Adds a pseudo child below the last child.
| pseudo | the new pseudo-child |
| partialPath | the partial path to that pseudo-child |
References addPseudoChild().

| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.addPseudoParent | ( | String | var | ) |
Adds a pseudo-parent.
| var | the pseudo-parent variable |
Referenced by frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.computeDFS().
| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.changeChild | ( | String | oldChild, |
| String | newChild ) |
Changes one child into another.
| oldChild | the old child |
| newChild | the new child |
References addChild(), and removeChild().

| DFSview< V, U > frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.clone | ( | ) |
References DFSview(), pathsToPseudoChildren, and pseudoChildren.

| List< String > frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.getAllPseudoChildren | ( | ) |
References getPseudoChildren().
Referenced by frodo2.algorithms.varOrdering.dfs.tests.DFSgenerationTest.checkDFS(), frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.computeDFS(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.dfsToString(), frodo2.algorithms.dpop.memory.LabelingPhase< V extends Addable< V > >.notifyIn(), frodo2.algorithms.dpop.privacy.SecureCircularRouting.notifyIn(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.duct.Normalize< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.NormalizeInf< V extends Addable< V > >.notifyIn(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.parseSpaces(), frodo2.algorithms.dpop.memory.LabelingPhase< V extends Addable< V > >.printDFS(), frodo2.algorithms.adopt.test.testADOPT.startADOPT(), and frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.startUTIL().

| List< String > frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.getChildren | ( | ) |
Referenced by frodo2.algorithms.varOrdering.dfs.tests.DFSgenerationTest.checkDFS(), frodo2.algorithms.dpop.stochastic.test.LowestCommonAncestorsTest.checkOutput(), frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.computeDFS(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.dfsToString(), frodo2.algorithms.dpop.memory.LabelingPhase< V extends Addable< V > >.notifyIn(), frodo2.algorithms.dpop.privacy.SecureCircularRouting.notifyIn(), frodo2.algorithms.dpop.stochastic.CompleteUTIL< Val extends Addable< Val >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.notifyIn(), frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.notifyIn(), frodo2.algorithms.duct.Normalize< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.NormalizeInf< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.Sampling< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.SamplingChild< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.SamplingChildSearch< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.SamplingPruning< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.SamplingPruningSearch< V extends Addable< V > >.notifyIn(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.parseSpaces(), frodo2.algorithms.dpop.memory.LabelingPhase< V extends Addable< V > >.printDFS(), frodo2.algorithms.adopt.test.testADOPT.startADOPT(), and frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.startUTIL().
| String frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.getID | ( | ) |
| String frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.getParent | ( | ) |
Referenced by frodo2.algorithms.varOrdering.dfs.tests.DFSgenerationTest.checkDFS(), frodo2.algorithms.dpop.stochastic.test.LowestCommonAncestorsTest.checkOutput(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.dfsToString(), frodo2.algorithms.dpop.privacy.SecureCircularRouting.notifyIn(), frodo2.algorithms.dpop.stochastic.LowestCommonAncestors.notifyIn(), frodo2.algorithms.duct.Normalize< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.NormalizeInf< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.Sampling< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.SamplingChild< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.SamplingChildSearch< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.SamplingPruning< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.SamplingPruningSearch< V extends Addable< V > >.notifyIn(), and frodo2.algorithms.dpop.memory.LabelingPhase< V extends Addable< V > >.printDFS().
| String frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.getParentAgent | ( | ) |
| List< String > frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.getPathToPseudoChild | ( | String | pseudo | ) |
Returns the partial path to the input pseudo-child.
| pseudo | the pseudo-child |
| List< String > frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.getPseudoChildren | ( | String | child | ) |
Returns the (immutable) list of pseudo-children below the input child.
| child | the child variable |
null if it is not a child Referenced by getAllPseudoChildren().
| List< String > frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.getPseudoParents | ( | ) |
Referenced by frodo2.algorithms.varOrdering.dfs.tests.DFSgenerationTest.checkDFS(), frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.dfsToString(), frodo2.algorithms.duct.Normalize< V extends Addable< V > >.notifyIn(), frodo2.algorithms.duct.NormalizeInf< V extends Addable< V > >.notifyIn(), and frodo2.algorithms.dpop.memory.LabelingPhase< V extends Addable< V > >.printDFS().
| List< ? extends UtilitySolutionSpace< V, U > > frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.getSpaces | ( | ) |
References spaces.
Referenced by frodo2.algorithms.dpop.stochastic.SamplingPhase< V extends Addable< V >, U extends Addable< U > >.notifyIn().
| List< String > frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.removeChild | ( | String | child | ) |
Removes a child.
| child | the new child variable |
Referenced by changeChild().
| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.removePseudoChild | ( | String | pseudo | ) |
Removes a pseudo-child.
| pseudo | a variable |
| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.removePseudoParent | ( | String | var | ) |
Removes a pseudo-parent.
| var | the old pseudo-parent variable |
| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.setParent | ( | String | var, |
| String | agent ) |
Sets the parent.
| var | the parent variable |
| agent | the parent agent |
Referenced by frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.computeDFS().
| void frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.setSpaces | ( | List< ? extends UtilitySolutionSpace< V, U > > | spaces | ) |
Sets the list of constraints this variable is responsible for enforcing.
| spaces | the spaces |
References spaces.
Referenced by frodo2.algorithms.dpop.test.UTILpropagationTest< U extends Addable< U > >.computeDFS(), and frodo2.algorithms.adopt.test.testADOPT.startADOPT().
| String frodo2.algorithms.varOrdering.dfs.DFSgeneration< V extends Addable< V >, U extends Addable< U > >.DFSview< V extends Addable< V >, U extends Addable< U > >.toString | ( | ) |
|
private |
The list of children.
Referenced by addPseudoChild().
|
private |
This cluster's ID.
Referenced by DFSview().
|
private |
The parent variable, if any.
|
private |
The parent agent, if any.
|
private |
For each pseudo-child, a partial path that leads to it.
Referenced by clone().
|
private |
For each child, the list of pseudo-children below that child.
Referenced by clone().
|
private |
The list of pseudo-parents.
|
staticprivate |
Used for serialization.
|
private |
The list of constraints this variable is responsible for enforcing.
Referenced by getSpaces(), and setSpaces().