|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--mascoptLib.util.ObservableObject
|
+--mascoptLib.abstractGraph.MascoptObject
|
+--mascoptLib.abstractGraph.AbstractEdge
|
+--mascoptLib.graphs.Edge
An Edge object is built using two Node objects. Given one node, the Edge object provides facilities to walk trough this edge when covering a Graph. Edge is derivated from MascoptObject. The Arc class is derivated from Edge and implements directed edges.
| Constructor Summary | |
Edge(mascoptLib.abstractGraph.AbstractVertex n1,
mascoptLib.abstractGraph.AbstractVertex n2)
Constructs a new Edge object betwenn n1 and n2. |
|
| Method Summary | |
mascoptLib.abstractGraph.AbstractVertex |
getConnected(mascoptLib.abstractGraph.AbstractVertex n)
Returns the node connected by current edge from node n. |
mascoptLib.abstractGraph.AbstractVertex |
getOppositeNode(mascoptLib.abstractGraph.AbstractVertex node)
Returns the opposite node of an edge |
mascoptLib.graphs.Vertex[] |
getVertices()
Returns the vertices linked by this edge. |
boolean |
leadsTo(mascoptLib.abstractGraph.AbstractVertex n)
Specifies if the current edge leads to node n. |
boolean |
leaves(mascoptLib.abstractGraph.AbstractVertex n)
Specifies if the current edge comes from node n. |
String |
toString()
Returns a String object representing this AbstractNode.
|
| Methods inherited from class mascoptLib.abstractGraph.AbstractEdge |
getAbstractVertices, getOppositeAbstractVertex, isLoop, size |
| Methods inherited from class mascoptLib.abstractGraph.MascoptObject |
copyValues, countAllObjects, deleteValue, deleteValue, existValue, existValue, free, getDoubleValue, getDoubleValue, getDouValue, getDouValue, getId, getIntegerValue, getIntegerValue, getIntValue, getIntValue, getName, getValue, getValue, getValueContexts, getValueDataType, getValueDataType, getValueEntries, notifyOnValueChange, removeAllValues, setDoubleValue, setDoubleValue, setDouValue, setDouValue, setIntegerValue, setIntegerValue, setIntValue, setIntValue, setName, setValue, setValue, setValue, setValue, setValue, setValue, update |
| Methods inherited from class mascoptLib.util.ObservableObject |
addAddObserver, addRemoveObserver, addValueObserver, countAddObservers, countRemoveObservers, countValueObservers, deleteAddObserver, deleteAddObserver, deleteRemoveObserver, deleteRemoveObserver, deleteValueObserver, deleteValueObserver |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Edge(mascoptLib.abstractGraph.AbstractVertex n1,
mascoptLib.abstractGraph.AbstractVertex n2)
n1 - one of the vertices.n2 - the other node| Method Detail |
public String toString()
String object representing this AbstractNode.
With the format [N0-N1] where N0 and N1 are the two vertices of the edge.
toString in class Objectpublic mascoptLib.abstractGraph.AbstractVertex getOppositeNode(mascoptLib.abstractGraph.AbstractVertex node)
node - the node to use the opposite one.
public boolean leadsTo(mascoptLib.abstractGraph.AbstractVertex n)
leadsTo in class AbstractEdgen - the AbstractNode to test
public boolean leaves(mascoptLib.abstractGraph.AbstractVertex n)
leaves in class AbstractEdgen - the AbstractNode to test
public mascoptLib.abstractGraph.AbstractVertex getConnected(mascoptLib.abstractGraph.AbstractVertex n)
getConnected in class AbstractEdgen - the AbstractNode to test
public mascoptLib.graphs.Vertex[] getVertices()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||