Class DefaultGraph
java.lang.Object
de.iip_ecosphere.platform.configuration.easyProducer.ivml.DefaultGraphElement
de.iip_ecosphere.platform.configuration.easyProducer.ivml.DefaultGraph
- All Implemented Interfaces:
IvmlGraphMapper.IvmlGraph,IvmlGraphMapper.IvmlGraphElement
- Direct Known Subclasses:
ServiceMeshGraph
Default graph edge implementation.
DefaultGraphElement.getName() is bound against the nested variable
DefaultGraphElement.getNameVarName(). Shall serve for a more generic mapping, to be part of EASY-Producer, thus, customizable.- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsFields inherited from class de.iip_ecosphere.platform.configuration.easyProducer.ivml.DefaultGraphElement
INVALID_POSITION, INVALID_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultGraph(net.ssehub.easy.varModel.confModel.IDecisionVariable var) Creates a graph instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a node to this graph.intReturns the number of nodes of this graph.nodes()Returns the nodes in the graph.Methods inherited from class de.iip_ecosphere.platform.configuration.easyProducer.ivml.DefaultGraphElement
getIntValue, getName, getNameVarName, getStringValue, getVariable, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraphElement
getName, getVariable, setName
-
Field Details
-
nodes
-
-
Constructor Details
-
DefaultGraph
public DefaultGraph(net.ssehub.easy.varModel.confModel.IDecisionVariable var) Creates a graph instance.- Parameters:
var- the underlying variable
-
-
Method Details
-
nodes
Description copied from interface:IvmlGraphMapper.IvmlGraphReturns the nodes in the graph.- Specified by:
nodesin interfaceIvmlGraphMapper.IvmlGraph- Returns:
- the nodes
-
addNode
Description copied from interface:IvmlGraphMapper.IvmlGraphAdds a node to this graph.- Specified by:
addNodein interfaceIvmlGraphMapper.IvmlGraph- Parameters:
node- the node
-
getNodeCount
public int getNodeCount()Description copied from interface:IvmlGraphMapper.IvmlGraphReturns the number of nodes of this graph.- Specified by:
getNodeCountin interfaceIvmlGraphMapper.IvmlGraph- Returns:
- the number of nodes
-