|
||||||||||
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
mascoptLib.graphs.Path
A Chain object give the ability to build a chain over a Graph. The chain can be merged with another chain with same start and end node, giving a multi-chain. The chain can be covered through the graph. The chain is also considered as a graph and derives from Graph. The Path object is a directed Chain. It derives from DiGraph.
Constructor Summary | |
Path(EdgeSet edgeSet)
Default Constuctor on a set of edge. |
|
Path(Path chain)
Constructs a copy of a chain. |
Method Summary | |
boolean |
concat(Edge edge)
Add an edge to a chain. |
boolean |
concat(Path chain)
Concat two chain in one chain. |
EdgeSet |
getEdgeSet()
Returns the edge set of the chain. |
Vertex |
getEnd()
Returns the ending node of the chain. |
AbstractGraphFactory |
getFactory()
Give the factory creating objects not abstract. |
Vertex |
getStart()
Returns the starting node of the chain. |
VertexSet |
getVertexSet()
Returns the node set of the chain. |
boolean |
merge(Path chain)
Merge two chains with the same start and end node. |
Edge |
nextEdge(Vertex node)
Given a node in the chain, returns the next edge when covering the chain. |
MascoptFixedSet |
nextEdgeSet(Vertex node)
Given a node in the chain, returns the next edges when covering the chain. |
Vertex |
nextVertex(Vertex node)
Given a node in the chain, returns the next node when covering the chain. |
MascoptFixedSet |
predEdgeSet(Vertex node)
Given a node in the chain, returns the previous edges when covering the chain. |
String |
toString()
Converts the chain in string to be printed. |
Methods inherited from class mascoptLib.abstractGraph.AbstractPath |
checkIntegrity, concatAbstractEdge, concatAbstractPath, countAllAbstractPaths, free, getAbstractEnd, getAbstractStart, isClosed, isEnd, isMulti, isStart, mergeAbstractPath, nextAbstractEdge, nextAbstractEdgeSet, nextAbstractVertex, predAbstractEdge, predAbstractEdgeSet, removeLastEdge, update |
Methods inherited from class mascoptLib.abstractGraph.AbstractGraph |
breadthFirstIterator, copyAbstractGraph, countAllAbstractGraphs, depthFirstIterator, getAbstractEdgeSet, getAbstractVertexSet, 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 Path(EdgeSet edgeSet)
edgeSet
- the set of edge on which is based the chain.public Path(Path chain)
chain
- the chain to copy.Method Detail |
public String toString()
toString
in class AbstractPath
public AbstractGraphFactory getFactory()
AbstractGraph
getFactory
in class AbstractGraph
public boolean concat(Edge edge)
edge
- the edge to add to the chain.
public boolean concat(Path chain)
chain
- the chain to concat.
public boolean merge(Path chain)
chain
- the chain to merge.
public EdgeSet getEdgeSet()
public VertexSet getVertexSet()
public Vertex getStart()
public Vertex getEnd()
public Vertex nextVertex(Vertex node)
node
- the node of the chain to consider.
public Edge nextEdge(Vertex node)
node
- the node of the chain to consider.
public MascoptFixedSet nextEdgeSet(Vertex node)
node
- the node of the chain to consider.
public MascoptFixedSet predEdgeSet(Vertex node)
node
- the node of the chain to consider.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |