|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectmascoptLib.util.ObservableObject
mascoptLib.abstractGraph.MascoptObject
mascoptLib.abstractGraph.AbstractEdge
mascoptLib.graphs.Arc
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 (ordered pairs of vertices).
Constructor Summary | |
Arc(AbstractVertex tail,
AbstractVertex head)
Constructs a new Arc object between n1 and n2. |
Method Summary | |
AbstractVertex |
getConnected(AbstractVertex n)
Returns the node connected by current arc from node n. |
AbstractVertex |
getHead()
Returns the destination of the arc. |
AbstractVertex |
getOppositeEnd(AbstractVertex vertex)
Returns the opposite node of an arc There is no check about the arc orientation. |
AbstractVertex |
getTail()
Returns the tail of the arc. |
boolean |
leadsTo(AbstractVertex n)
Specifies if the current arc leads to node n. |
boolean |
leaves(AbstractVertex n)
Specifies if the current arc comes from node n. |
void |
reverse()
Reverse the arc orientation. |
String |
toString()
Converts the Arc in string to be printed. |
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 Arc(AbstractVertex tail, AbstractVertex head)
Method Detail |
public String toString()
public AbstractVertex getTail()
public AbstractVertex getHead()
public AbstractVertex getOppositeEnd(AbstractVertex vertex)
public boolean leadsTo(AbstractVertex n)
leadsTo
in class AbstractEdge
n
- the node to test
public boolean leaves(AbstractVertex n)
leaves
in class AbstractEdge
n
- the node to test
public AbstractVertex getConnected(AbstractVertex n)
getConnected
in class AbstractEdge
n
- the node to test
public void reverse()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |