|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.graph.containers.ListAsPath
public class ListAsPath
Implement a Path using a java.util.List
Constructor Summary | |
---|---|
ListAsPath()
Constructor. |
|
ListAsPath(List<Edge> edgeList)
Constructor. |
Method Summary | |
---|---|
void |
appendEdge(Edge e)
Add an edge to the end of the path. |
EdgeIterator |
getEdgeIterator()
|
Node |
getFirstNode()
|
Node |
getLastNode()
|
NodeIterator |
getNodeIterator()
|
int |
getNumNodes()
|
void |
init(NeighborhoodGraphProp g)
This method must be called before nodes and edges are added to the path. |
void |
prependEdge(Edge e)
Add an edge to the beginning of the path |
void |
setInitialNode(Node v)
Sets a single first node of the path. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ListAsPath()
public ListAsPath(List<Edge> edgeList)
edgeList
- the list to be used as representation of the pathMethod Detail |
---|
public void init(NeighborhoodGraphProp g)
Path
init
in interface Path
g
- the graph which contains the path to be constructedpublic void setInitialNode(Node v)
Path
setInitialNode
in interface Path
v
- the node which shall be added to the path.public int getNumNodes()
getNumNodes
in interface FixedPath
public void appendEdge(Edge e)
Path
appendEdge
in interface Path
e
- the edge to be addedpublic void prependEdge(Edge e)
Path
prependEdge
in interface Path
e
- the edge to be addedpublic Node getFirstNode()
getFirstNode
in interface FixedPath
public Node getLastNode()
getLastNode
in interface FixedPath
public NodeIterator getNodeIterator()
getNodeIterator
in interface FixedPath
public EdgeIterator getEdgeIterator()
getEdgeIterator
in interface FixedPath
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |