|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HyperEdge
An HyperEdge object models a HyperEdge of a HyperGraph. It does not connect the Nodes directly, but via Ports on their border. An HyperEdge may connect an arbitrary large number of Ports, which may be located also on the outer border of the HyperGraph itself. Multiple Ports on one Node are also allowed.
Method Summary | |
---|---|
boolean |
addPort(Port p)
Adds a new Port to this HyperEdge. |
int |
countPorts()
Returns the number of Ports incident to this HyperEdge. |
java.util.Iterator |
ports()
Delivers an Iterator over all Ports of this HyperEdge. |
boolean |
removePort(Port p)
Removes a Port from this HyperEdge and its host. |
Methods inherited from interface de.fhstralsund.vinets.structure.Link |
---|
incidentNodes, isDirected, isUndirected |
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 |
---|
int countPorts()
java.util.Iterator ports()
boolean addPort(Port p)
p
- the Port to add.
java.lang.IllegalArgumentException
- if the Port has a wrong host.boolean removePort(Port p)
p
- the Port to remove.
java.lang.IllegalArgumentException
- if the Port has a wrong host.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |