|
||||||||||
| 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.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(mascoptLib.abstractGraph.AbstractEdgeSet abstractEdgeSet)
Default Constuctor on a path. |
|
AbstractPath(mascoptLib.abstractGraph.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(mascoptLib.abstractGraph.AbstractEdge abstractEdge)
Add an edge to a path. |
boolean |
concatAbstractPath(mascoptLib.abstractGraph.AbstractPath abstractPath)
Concat two paths in one path. |
static long |
countAllAbstractPaths()
Returns number of instances |
void |
free()
Free memory when this object is linked. |
mascoptLib.abstractGraph.AbstractVertex |
getAbstractEnd()
Returns the ending vertex of the path. |
mascoptLib.abstractGraph.AbstractVertex |
getAbstractStart()
Returns the starting vertex of the path. |
boolean |
isClosed()
Detects if a path is closed (is a cycle). |
boolean |
isEnd(mascoptLib.abstractGraph.AbstractVertex aVertex)
Says if this vertex is the ending vertex. |
boolean |
isMulti()
Says if a path is a multi path. |
boolean |
isStart(mascoptLib.abstractGraph.AbstractVertex aVertex)
Says if this vertex is the starting vertex. |
boolean |
mergeAbstractPath(mascoptLib.abstractGraph.AbstractPath abstractPath)
Merge two paths with the same start and end vertex. |
mascoptLib.abstractGraph.AbstractEdge |
nextAbstractEdge(mascoptLib.abstractGraph.AbstractVertex vertex)
Given a vertex in the path, returns the next edge when covering the path. |
mascoptLib.abstractGraph.MascoptFixedSet |
nextAbstractEdgeSet(mascoptLib.abstractGraph.AbstractVertex vertex)
Given a vertex in the path, returns the next edges when covering the path. |
mascoptLib.abstractGraph.AbstractVertex |
nextAbstractVertex(mascoptLib.abstractGraph.AbstractVertex vertex)
Given a vertex in the path, returns the next vertex when covering the path. |
mascoptLib.abstractGraph.AbstractEdge |
predAbstractEdge(mascoptLib.abstractGraph.AbstractVertex vertex)
Given a vertex in the path, returns the previous edge when covering the path. |
mascoptLib.abstractGraph.MascoptFixedSet |
predAbstractEdgeSet(mascoptLib.abstractGraph.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(mascoptLib.abstractGraph.AbstractEdgeSet abstractEdgeSet)
abstractEdgeSet - the set of edge on which is based the path.public AbstractPath(mascoptLib.abstractGraph.AbstractPath path)
setValue is lost.
| Method Detail |
public String toString()
toString in class AbstractGraph
public boolean removeLastEdge()
throws MascoptImpossibleOperationPathException
MascoptImpossibleOperationPathExceptionpublic boolean concatAbstractEdge(mascoptLib.abstractGraph.AbstractEdge abstractEdge)
abstractEdge - the edge to add to the path.
public boolean concatAbstractPath(mascoptLib.abstractGraph.AbstractPath abstractPath)
abstractPath - the path to concat.
public boolean mergeAbstractPath(mascoptLib.abstractGraph.AbstractPath abstractPath)
abstractPath - the path to merge.
public mascoptLib.abstractGraph.AbstractVertex getAbstractStart()
public mascoptLib.abstractGraph.AbstractVertex getAbstractEnd()
public boolean isStart(mascoptLib.abstractGraph.AbstractVertex aVertex)
aVertex - the vertex to test.
public boolean isEnd(mascoptLib.abstractGraph.AbstractVertex aVertex)
aVertex - the vertex to test.
public boolean isClosed()
public boolean isMulti()
public mascoptLib.abstractGraph.MascoptFixedSet nextAbstractEdgeSet(mascoptLib.abstractGraph.AbstractVertex vertex)
vertex - the vertex of the path to consider.
public mascoptLib.abstractGraph.MascoptFixedSet predAbstractEdgeSet(mascoptLib.abstractGraph.AbstractVertex vertex)
vertex - the vertex of the path to consider.
public static long countAllAbstractPaths()
public mascoptLib.abstractGraph.AbstractEdge nextAbstractEdge(mascoptLib.abstractGraph.AbstractVertex vertex)
vertex - the vertex of the path to consider.
public mascoptLib.abstractGraph.AbstractEdge predAbstractEdge(mascoptLib.abstractGraph.AbstractVertex vertex)
vertex - the vertex of the path to consider.
public mascoptLib.abstractGraph.AbstractVertex nextAbstractVertex(mascoptLib.abstractGraph.AbstractVertex vertex)
vertex - the vertex of the path to consider.
public boolean checkIntegrity()
checkIntegrity in class AbstractGraph
public void update(Observable o,
Object arg)
MascoptObjectupdate method here.
update in interface Observerupdate in class MascoptObjecto - 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 | |||||||||