Class DefaultGraph
- java.lang.Object
-
- de.iip_ecosphere.platform.configuration.ivml.DefaultGraphElement
-
- de.iip_ecosphere.platform.configuration.ivml.DefaultGraph
-
- All Implemented Interfaces:
IvmlGraphMapper.IvmlGraph,IvmlGraphMapper.IvmlGraphElement
- Direct Known Subclasses:
ConfigurationAas.IipGraph
public class DefaultGraph extends DefaultGraphElement implements IvmlGraphMapper.IvmlGraph
Default graph edge implementation.DefaultGraphElement.getName()is bound against the nested variableDefaultGraphElement.getNameVarName(). Shall serve for a more generic mapping, to be part of EASY-Producer, thus, customizable.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IvmlGraphMapper.IvmlGraphNode>nodes-
Fields inherited from class de.iip_ecosphere.platform.configuration.ivml.DefaultGraphElement
INVALID_POSITION, INVALID_SIZE
-
-
Constructor Summary
Constructors Constructor Description DefaultGraph(net.ssehub.easy.varModel.confModel.IDecisionVariable var)Creates a graph instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNode(IvmlGraphMapper.IvmlGraphNode node)Adds a node to this graph.intgetNodeCount()Returns the number of nodes of this graph.java.lang.Iterable<IvmlGraphMapper.IvmlGraphNode>nodes()Returns the nodes in the graph.-
Methods inherited from class de.iip_ecosphere.platform.configuration.ivml.DefaultGraphElement
getIntValue, getName, getNameVarName, getStringValue, getVariable, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.iip_ecosphere.platform.configuration.ivml.IvmlGraphMapper.IvmlGraphElement
getName, getVariable, setName
-
-
-
-
Field Detail
-
nodes
private java.util.List<IvmlGraphMapper.IvmlGraphNode> nodes
-
-
Method Detail
-
nodes
public java.lang.Iterable<IvmlGraphMapper.IvmlGraphNode> nodes()
Description copied from interface:IvmlGraphMapper.IvmlGraphReturns the nodes in the graph.- Specified by:
nodesin interfaceIvmlGraphMapper.IvmlGraph- Returns:
- the nodes
-
addNode
public void addNode(IvmlGraphMapper.IvmlGraphNode node)
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
-
-