|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.rollerjm.graph.Path
Title: graphs
Description: generalization of the route concept. It is a list of Objects ( i.e. O1--O2--O3--04). Cloneable.
Copyright: Copyright (c) 2002
Company:
Field Summary | |
private java.util.ArrayList |
verticesList
List which contains the vertices |
Constructor Summary | |
Path()
|
|
Path(java.util.List list)
|
Method Summary | |
Path |
addPath(Path path)
|
Path |
addVertex(java.lang.Object vertex)
|
java.lang.Object |
clone()
clone the path, all the objects in the path should be cloneables |
java.lang.Object |
get(int index)
|
java.lang.Object |
getLast()
|
int |
getLength()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.util.ArrayList verticesList
Constructor Detail |
public Path()
public Path(java.util.List list)
list
- Method Detail |
public int getLength()
public Path addVertex(java.lang.Object vertex)
vertex
- should be cloneable
public Path addPath(Path path)
path
-
public java.lang.Object get(int index)
index
-
public java.lang.Object getLast()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |