|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhstralsund.vinets.structure.DefaultNetElement
de.fhstralsund.vinets.structure.SimpleGraph.SimpleEdge
protected class SimpleGraph.SimpleEdge
The standard implementation of the Edge interface.
Field Summary | |
---|---|
protected SimpleGraph.SimpleNode |
source
|
protected SimpleGraph.SimpleNode |
target
|
Fields inherited from class de.fhstralsund.vinets.structure.DefaultNetElement |
---|
host, labelMap, original |
Constructor Summary | |
---|---|
protected |
SimpleGraph.SimpleEdge(Node start,
Node end,
boolean directed,
java.lang.Object data)
Constructs a new SimpleEdge with this SimpleGraph as host. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Delivers only a copy of the NetElement. |
protected void |
connect()
Inserts the Edge into the incidence lists of its end nodes. |
boolean |
equals(java.lang.Object obj)
|
NodePair |
getEnds()
Delivers both end Nodes of this Edge. |
Node |
getOtherEnd(Node v)
Delivers the end Node of an Edge different from the given one. |
Node |
getSource()
Returns one of the two ends of this Edge. |
Node |
getTarget()
Returns one of the two ends of this Edge. |
int |
hashCode()
|
java.util.Iterator |
incidentNodes()
Returns an iterator over the Nodes to which this Link is incident. |
boolean |
isDirected()
Indicates whether this Link is a directed Edge. |
boolean |
isUndirected()
Indicates whether this Link is an undirected Edge. |
protected void |
setDirected(boolean dir)
|
java.lang.String |
toString()
Returns a string representation of this NetElement. |
Methods inherited from class de.fhstralsund.vinets.structure.DefaultNetElement |
---|
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 class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
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 |
Field Detail |
---|
protected SimpleGraph.SimpleNode source
protected SimpleGraph.SimpleNode target
Constructor Detail |
---|
protected SimpleGraph.SimpleEdge(Node start, Node end, boolean directed, java.lang.Object data)
start
- source Nodeend
- target Nodedirected
- true if the edge is directed, false otherwisedata
- external data of any kind
java.lang.IllegalArgumentException
- if source or target have a wrong
host or the edge type is not feasible for this SimpleGraphMethod Detail |
---|
public Node getSource()
getSource
in interface Edge
public Node getTarget()
getTarget
in interface Edge
public NodePair getEnds()
Edge
getEnds
in interface Edge
public Node getOtherEnd(Node v)
Edge
getOtherEnd
in interface Edge
v
- one of the end Nodes of this Edge
java.lang.IllegalArgumentException
- if v is not incident to this Edgepublic java.util.Iterator incidentNodes()
Link
incidentNodes
in interface Link
public boolean isDirected()
Link
isDirected
in interface Link
public boolean isUndirected()
Link
isUndirected
in interface Link
public java.lang.Object clone()
clone
in class DefaultNetElement
public java.lang.String toString()
DefaultNetElement
toString
in class DefaultNetElement
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
protected void setDirected(boolean dir)
protected void connect()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |