|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectnet.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 path| Method Detail |
|---|
public void init(NeighborhoodGraphProp g)
Path
init in interface Pathg - the graph which contains the path to be constructedpublic void setInitialNode(Node v)
Path
setInitialNode in interface Pathv - the node which shall be added to the path.public int getNumNodes()
getNumNodes in interface FixedPathpublic void appendEdge(Edge e)
Path
appendEdge in interface Pathe - the edge to be addedpublic void prependEdge(Edge e)
Path
prependEdge in interface Pathe - the edge to be addedpublic Node getFirstNode()
getFirstNode in interface FixedPathpublic Node getLastNode()
getLastNode in interface FixedPathpublic NodeIterator getNodeIterator()
getNodeIterator in interface FixedPathpublic EdgeIterator getEdgeIterator()
getEdgeIterator in interface FixedPathpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||