Class ConfigurationAas.GraphWalker
java.lang.Object
de.iip_ecosphere.platform.configuration.ConfigurationAas.GraphWalker
- Enclosing class:
ConfigurationAas
Traverses a graph.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<net.ssehub.easy.varModel.confModel.IDecisionVariable, ConfigurationAas.IipNode> private ConfigurationAas.IipGraph -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGraphWalker(net.ssehub.easy.varModel.confModel.IDecisionVariable var) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprivate ConfigurationAas.IipNodecreateNode(net.ssehub.easy.varModel.confModel.IDecisionVariable elt) Creates a node and registers it in the resulting graph.private ConfigurationAas.IipGraphReturns the created graph.private voidtraverseConnectors(net.ssehub.easy.varModel.confModel.IDecisionVariable var, ConfigurationAas.IipNode from) Traverses the connectors stored as nested elements invar.private voidtraverseNodes(net.ssehub.easy.varModel.confModel.IDecisionVariable var) Traverses the nodes stored as nested elements invar.
-
Field Details
-
result
-
nodes
-
-
Constructor Details
-
GraphWalker
private GraphWalker(net.ssehub.easy.varModel.confModel.IDecisionVariable var) Creates a new instance.- Parameters:
var- the variable to start the traversal
-
-
Method Details
-
getResult
Returns the created graph.- Returns:
- the graph
-
traverseNodes
private void traverseNodes(net.ssehub.easy.varModel.confModel.IDecisionVariable var) Traverses the nodes stored as nested elements invar.- Parameters:
var- the variable representing the nodes
-
traverseConnectors
private void traverseConnectors(net.ssehub.easy.varModel.confModel.IDecisionVariable var, ConfigurationAas.IipNode from) Traverses the connectors stored as nested elements invar.- Parameters:
var- the variable representing the nodesfrom- the node where this call originates, the start node of edges to be created
-
createNode
private ConfigurationAas.IipNode createNode(net.ssehub.easy.varModel.confModel.IDecisionVariable elt) Creates a node and registers it in the resulting graph.- Parameters:
elt- the variable representing the node- Returns:
- the created node
-