Class ServiceMeshGraphWalker
java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.serviceMesh.ServiceMeshGraphWalker
Traverses a graph.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<net.ssehub.easy.varModel.confModel.IDecisionVariable, ServiceMeshNode> private ServiceMeshGraph -
Constructor Summary
ConstructorsConstructorDescriptionServiceMeshGraphWalker(net.ssehub.easy.varModel.confModel.IDecisionVariable var) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprivate ServiceMeshNodecreateNode(net.ssehub.easy.varModel.confModel.IDecisionVariable elt) Creates a node and registers it in the resulting graph.Returns the created graph.private voidtraverseConnectors(net.ssehub.easy.varModel.confModel.IDecisionVariable var, ServiceMeshNode 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
-
ServiceMeshGraphWalker
public ServiceMeshGraphWalker(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, ServiceMeshNode 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
Creates a node and registers it in the resulting graph.- Parameters:
elt- the variable representing the node- Returns:
- the created node
-