|
||||||||||
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.AbstractGraph
mascoptLib.abstractGraph.AbstractPath
An AbstractPath object give the ability to build a path over an AbstractGraph. The path can be merged with another path with common start and end vertex, resulting in a multi-path. The path can be covered through the graph. The path is also considered as a graph, derived from AbstractGraph.
Constructor Summary | |
AbstractPath(AbstractEdgeSet abstractEdgeSet)
Default Constuctor on a path. |
|
AbstractPath(AbstractPath path)
Copy edge set and vertex set of a path, creating a new path (vertices and edges are not copied). |
Method Summary | |
boolean |
checkIntegrity()
Integrity of the path. |
boolean |
concatAbstractEdge(AbstractEdge abstractEdge)
Add an edge to a path. |
boolean |
concatAbstractPath(AbstractPath abstractPath)
Concat two paths in one path. |
static long |
countAllAbstractPaths()
Returns number of instances |
void |
free()
Free memory when this object is linked. |
AbstractVertex |
getAbstractEnd()
Returns the ending vertex of the path. |
AbstractVertex |
getAbstractStart()
Returns the starting vertex of the path. |
boolean |
isClosed()
Detects if a path is closed (is a cycle). |
boolean |
isEnd(AbstractVertex aVertex)
Says if this vertex is the ending vertex. |
boolean |
isMulti()
Says if a path is a multi path. |
boolean |
isStart(AbstractVertex aVertex)
Says if this vertex is the starting vertex. |
boolean |
mergeAbstractPath(AbstractPath abstractPath)
Merge two paths with the same start and end vertex. |
AbstractEdge |
nextAbstractEdge(AbstractVertex vertex)
Given a vertex in the path, returns the next edge when covering the path. |
MascoptFixedSet |
nextAbstractEdgeSet(AbstractVertex vertex)
Given a vertex in the path, returns the next edges when covering the path. |
AbstractVertex |
nextAbstractVertex(AbstractVertex vertex)
Given a vertex in the path, returns the next vertex when covering the path. |
AbstractEdge |
predAbstractEdge(AbstractVertex vertex)
Given a vertex in the path, returns the previous edge when covering the path. |
MascoptFixedSet |
predAbstractEdgeSet(AbstractVertex vertex)
Given a vertex in the path, returns the previous edges when covering the path. |
boolean |
removeLastEdge()
Remove the last edge of a mono path. |
String |
toString()
Converts the path in string to be printed. |
void |
update(Observable o,
Object arg)
Describe update method here. |
Methods inherited from class mascoptLib.abstractGraph.AbstractGraph |
breadthFirstIterator, copyAbstractGraph, countAllAbstractGraphs, depthFirstIterator, getAbstractEdgeSet, getAbstractVertexSet, getFactory, getSuperGraph, isSubGraph, replace, replace, setAbstractEdgeSet, setAbstractVertexSet, setSuperGraph |
Methods inherited from class mascoptLib.abstractGraph.MascoptObject |
copyValues, countAllObjects, deleteValue, deleteValue, existValue, existValue, 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 |
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 AbstractPath(AbstractEdgeSet abstractEdgeSet)
abstractEdgeSet
- the set of edge on which is based the path.public AbstractPath(AbstractPath path)
setValue
is lost.
Method Detail |
public String toString()
toString
in class AbstractGraph
public boolean removeLastEdge() throws MascoptImpossibleOperationPathException
MascoptImpossibleOperationPathException
public boolean concatAbstractEdge(AbstractEdge abstractEdge)
abstractEdge
- the edge to add to the path.
public boolean concatAbstractPath(AbstractPath abstractPath)
abstractPath
- the path to concat.
public boolean mergeAbstractPath(AbstractPath abstractPath)
abstractPath
- the path to merge.
public AbstractVertex getAbstractStart()
public AbstractVertex getAbstractEnd()
public boolean isStart(AbstractVertex aVertex)
aVertex
- the vertex to test.
public boolean isEnd(AbstractVertex aVertex)
aVertex
- the vertex to test.
public boolean isClosed()
public boolean isMulti()
public MascoptFixedSet nextAbstractEdgeSet(AbstractVertex vertex)
vertex
- the vertex of the path to consider.
public MascoptFixedSet predAbstractEdgeSet(AbstractVertex vertex)
vertex
- the vertex of the path to consider.
public static long countAllAbstractPaths()
public AbstractEdge nextAbstractEdge(AbstractVertex vertex)
vertex
- the vertex of the path to consider.
public AbstractEdge predAbstractEdge(AbstractVertex vertex)
vertex
- the vertex of the path to consider.
public AbstractVertex nextAbstractVertex(AbstractVertex vertex)
vertex
- the vertex of the path to consider.
public boolean checkIntegrity()
checkIntegrity
in class AbstractGraph
public void update(Observable o, Object arg)
MascoptObject
update
method here.
update
in interface Observer
update
in class MascoptObject
o
- an Observable
valuearg
- an Object
valuepublic void free()
AbstractGraph
free
in class AbstractGraph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |