|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Block
A Block object models a hierarchical HyperGraph. The interface combines the inner view on a Block as a Graph and the outer view on it as a Node in its host Graph. The Links between Blocks may contain an arbitrary large number of Blocks, i.e. they are HyperEdges. The connection between a Link and a Block is mediated by a Port.
Method Summary | |
---|---|
Block |
createBlock()
Constructs and returns a new hierarchical Block contained in this. |
Block |
createBlock(boolean atomar)
Constructs and returns a new Block contained in this one. |
Block |
createBlock(java.lang.String name,
boolean atomar)
Constructs and returns a new Block contained in this one. |
Block |
createBlock(java.lang.String name,
java.lang.Object data,
boolean atomar)
Constructs and returns a new Block contained in this one. |
HyperEdge |
createHyperEdge(java.util.Collection ends)
Constructs and returns a new HyperEdge. |
HyperEdge |
createHyperEdge(java.util.Collection ends,
java.lang.Object data)
Constructs and returns a new HyperEdge. |
HyperEdge |
createHyperEdge(Port[] ends)
Constructs and returns a new HyperEdge. |
HyperEdge |
createHyperEdge(Port[] ends,
java.lang.Object data)
Constructs and returns a new HyperEdge. |
Port |
createPort()
Constructs and returns a new Port on the boundary of this Block. |
Port |
createPort(PortType type)
Constructs and returns a new Port on the boundary of this Block. |
Port |
createPort(java.lang.String name,
java.lang.Object data,
PortType type)
Constructs and returns a new Port on the boundary of this Block. |
Port |
createPort(java.lang.String name,
PortType type)
Constructs and returns a new Port on the boundary of this Block. |
java.util.Iterator |
ports()
|
Methods inherited from interface de.fhstralsund.vinets.structure.Node |
---|
degree, getNodeType, inArcs, incidentEdges, indegree, isAtomar, outArcs, outdegree, undirectedEdges |
Methods inherited from interface de.fhstralsund.vinets.structure.NetElement |
---|
clearLabels, containsLabel, getBooleanLabel, getData, getDoubleLabel, getGeometry, getHost, getID, getIntLabel, getLabel, getLabelKeySet, getName, getOriginal, getRepresentation, removeLabel, setBooleanLabel, setData, setDoubleLabel, setGeometry, setIntLabel, setLabel, setName, setRepresentation |
Methods inherited from interface de.fhstralsund.vinets.structure.Graph |
---|
clone, countEdges, countNodes, createEdge, createEdge, createEdge, createNode, createNode, createNode, edges, edgeSet, getGraphType, isDirected, isHyperGraph, isMixed, isUndirected, nodes, nodeSet, remove |
Methods inherited from interface de.fhstralsund.vinets.structure.NetElement |
---|
clearLabels, containsLabel, getBooleanLabel, getData, getDoubleLabel, getGeometry, getHost, getID, getIntLabel, getLabel, getLabelKeySet, getName, getOriginal, getRepresentation, removeLabel, setBooleanLabel, setData, setDoubleLabel, setGeometry, setIntLabel, setLabel, setName, setRepresentation |
Method Detail |
---|
Block createBlock(java.lang.String name, java.lang.Object data, boolean atomar)
name
- a name used to identify the new Block for the user.data
- external data of any kind that an application may need.atomar
- true if the new Block cannot contain an
inner Graph.
Block createBlock(java.lang.String name, boolean atomar)
name
- a name used to identify the new Block for the user.atomar
- true if the new Block cannot contain an
inner Graph.
Block createBlock(boolean atomar)
Graph.createNode()
.
atomar
- true if the new Block cannot contain an
inner Graph.
Block createBlock()
Graph.createNode()
instead of this method.
Port createPort(java.lang.String name, java.lang.Object data, PortType type)
type
- INPUT, OUTPUT or NEUTRAL Port type.name
- a name used to identify this Port for the user.data
- external data of any kind that an application may need.
Port createPort(java.lang.String name, PortType type)
type
- INPUT, OUTPUT or NEUTRAL Port type.name
- a name used to identify this Port for the user.
Port createPort(PortType type)
type
- INPUT, OUTPUT or NEUTRAL PortType.
Port createPort()
HyperEdge createHyperEdge(java.util.Collection ends, java.lang.Object data)
ends
- the Port set of the new HyperEdgedata
- external data of any kind that an application may need
java.lang.IllegalArgumentException
- if one of the ports has a wrong hostHyperEdge createHyperEdge(java.util.Collection ends)
ends
- the Port set of the new HyperEdge
java.lang.IllegalArgumentException
- if one of the ports has a wrong hostHyperEdge createHyperEdge(Port[] ends, java.lang.Object data)
ends
- the Port set of the new HyperEdgedata
- external data of any kind that an application may need
java.lang.IllegalArgumentException
- if one of the ports has a wrong hostHyperEdge createHyperEdge(Port[] ends)
ends
- the Port set of the new HyperEdge
java.lang.IllegalArgumentException
- if one of the ports has a wrong hostjava.util.Iterator ports()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |