|
||||||||||
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
An AbstractEdge object is built using two AbstractVertex objects. Given one vertex, the AbstractEdge object provides facilities to walk trough this edge when covering an AbstractGraph. AbstractEdge is derivated from MascoptObject.
Constructor Summary | |
AbstractEdge(AbstractVertex n1,
AbstractVertex n2)
Constructs a new AbstractEdge object between n1 and n2. |
Method Summary | |
AbstractVertex[] |
getAbstractVertices()
Returns the vertices linked by this edge. |
abstract AbstractVertex |
getConnected(AbstractVertex n)
Returns the vertex connected by current edge from vertex n. |
AbstractVertex |
getOppositeAbstractVertex(AbstractVertex vertex)
Returns the opposite vertex of an edge There is no check about the edge orientation. |
boolean |
isLoop()
Gives the edge status concerning the loop state. |
abstract boolean |
leadsTo(AbstractVertex n)
Specifies if the current edge leads to vertex n. |
abstract boolean |
leaves(AbstractVertex n)
Specifies if the current edge comes from vertex n. |
static int |
size()
Counts all abstract vertices. |
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, toString, wait, wait, wait |
Constructor Detail |
public AbstractEdge(AbstractVertex n1, AbstractVertex n2)
n1
- one of the vertices.n2
- the other vertex.Method Detail |
public AbstractVertex[] getAbstractVertices()
public AbstractVertex getOppositeAbstractVertex(AbstractVertex vertex)
vertex
- the vertex to use the opposite one.
public abstract boolean leadsTo(AbstractVertex n)
n
- the AbstractVertex to test
public abstract boolean leaves(AbstractVertex n)
n
- the AbstractVertex to test
public abstract AbstractVertex getConnected(AbstractVertex n)
n
- the AbstractVertex to test
public boolean isLoop()
public static int size()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |