Interface IvmlGraphMapper.IvmlGraphNode
- All Superinterfaces:
IvmlGraphMapper.IvmlGraphElement
- All Known Implementing Classes:
DefaultNode,ServiceMeshNode
- Enclosing interface:
IvmlGraphMapper
Represents a graph node.
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an incoming/outgoing edge to this node.intReturns the height of the node.getImpl()Returns the configured name the implementing service.intReturns the number of edges ending at this node.intReturns the number of edges starting at this node.intgetWidth()Returns the width of the node.intgetXPos()Returns the left position of the node.intgetYPos()Returns the top position of the node.Iterable<? extends IvmlGraphMapper.IvmlGraphEdge> inEdges()Returns the edges ending at this node.Iterable<? extends IvmlGraphMapper.IvmlGraphEdge> outEdges()Returns the edges starting at this node.voidsetHeight(int height) Changes the height of the node.voidChanges the IVML variable name of the implementing service.voidsetWidth(int width) Changes the width of the node.voidsetXPos(int xPos) Changes the left position of the node.voidsetYPos(int yPos) Changes the top position of the node.Methods inherited from interface de.iip_ecosphere.platform.configuration.easyProducer.ivml.IvmlGraphMapper.IvmlGraphElement
getName, getVariable, setName
-
Method Details
-
getXPos
int getXPos()Returns the left position of the node. May be ignored by the graph reader/writer.- Returns:
- the left position, invalid if negative
-
getYPos
int getYPos()Returns the top position of the node. May be ignored by the graph reader/writer.- Returns:
- the top position, invalid if negative
-
getWidth
int getWidth()Returns the width of the node. May be ignored by the graph reader/writer.- Returns:
- the width, invalid if negative
-
getHeight
int getHeight()Returns the height of the node. May be ignored by the graph reader/writer.- Returns:
- the height, invalid if negative
-
getImpl
String getImpl()Returns the configured name the implementing service. Fallback if not given isIvmlGraphMapper.IvmlGraphElement.getName().- Returns:
- the variable name
-
setXPos
void setXPos(int xPos) Changes the left position of the node. May be ignored by the graph reader/writer.- Parameters:
xPos- the left position, invalid if negative
-
setYPos
void setYPos(int yPos) Changes the top position of the node. May be ignored by the graph reader/writer.- Parameters:
yPos- the left position, invalid if negative
-
setWidth
void setWidth(int width) Changes the width of the node. May be ignored by the graph reader/writer.- Parameters:
width- the width of the node, invalid if negative
-
setHeight
void setHeight(int height) Changes the height of the node. May be ignored by the graph reader/writer.- Parameters:
height- the height of the node, invalid if negative
-
addEdge
Adds an incoming/outgoing edge to this node.- Parameters:
edge- the edge
-
setImpl
Changes the IVML variable name of the implementing service.- Parameters:
impl- changes the variable name
-
inEdges
Iterable<? extends IvmlGraphMapper.IvmlGraphEdge> inEdges()Returns the edges ending at this node.- Returns:
- the edges
-
getInEdgesCount
int getInEdgesCount()Returns the number of edges ending at this node.- Returns:
- the number of in-edges
-
outEdges
Iterable<? extends IvmlGraphMapper.IvmlGraphEdge> outEdges()Returns the edges starting at this node.- Returns:
- the edges
-
getOutEdgesCount
int getOutEdgesCount()Returns the number of edges starting at this node.- Returns:
- the number of out-edges
-