Class ConfigurationAas.GraphWalker
- java.lang.Object
-
- de.iip_ecosphere.platform.configuration.ConfigurationAas.GraphWalker
-
- Enclosing class:
- ConfigurationAas
private static class ConfigurationAas.GraphWalker extends java.lang.ObjectTraverses a graph.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<net.ssehub.easy.varModel.confModel.IDecisionVariable,ConfigurationAas.IipNode>nodesprivate ConfigurationAas.IipGraphresult
-
Constructor Summary
Constructors Modifier Constructor Description privateGraphWalker(net.ssehub.easy.varModel.confModel.IDecisionVariable var)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private ConfigurationAas.IipNodecreateNode(net.ssehub.easy.varModel.confModel.IDecisionVariable elt)Creates a node and registers it in the resulting graph.private ConfigurationAas.IipGraphgetResult()Returns 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 Detail
-
result
private ConfigurationAas.IipGraph result
-
nodes
private java.util.Map<net.ssehub.easy.varModel.confModel.IDecisionVariable,ConfigurationAas.IipNode> nodes
-
-
Method Detail
-
getResult
private ConfigurationAas.IipGraph 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
-
-