|
SandMark version 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sandmark.util.graph.Path | +--sandmark.watermark.ct.trace.callforest.Path
Field Summary |
Fields inherited from class sandmark.util.graph.Path |
|
Constructor Summary | |
Path()
Construct an empty path. |
|
Path(Path P)
Construct a copy of the path P . |
Method Summary | |
int |
compareTo(java.lang.Object p2)
Return (-1,0,1), the result of comparing the weight of this path to that of p2 .
|
boolean |
equals(java.lang.Object path2)
Return true if path2 is equal to this path. |
static void |
main(java.lang.String[] args)
|
(package private) static Node |
mkNode(int number,
int weight)
|
int |
numberOfMarkNodes()
Return the number of sm$mark()/ENTER-nodes in the path. |
int |
pathWeight()
Return the weight of this path. |
(package private) static void |
test1()
|
java.lang.String |
toString()
Generate a string representation of this paths. |
Methods inherited from class sandmark.util.graph.Path |
add, addFirst, concatenate, elements, firstNode, get, getPath, hashCode, iterator, lastNode, onPath, segment, size |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Path()
public Path(Path P)
P
.
Method Detail |
public java.lang.String toString()
toString
in class Path
public int pathWeight()
public int numberOfMarkNodes()
public boolean equals(java.lang.Object path2)
path2
is equal to this path.
equals
in class Path
public int compareTo(java.lang.Object p2)
p2
.
Note: this class has a natural ordering that is inconsistent with equals.
Two paths are equal if they contain the same nodes in the same order.
p1.compareTo(p2)
will return 0, however, if the two paths
have the same weight.
compareTo
in interface java.lang.Comparable
static Node mkNode(int number, int weight)
static void test1()
public static void main(java.lang.String[] args)
|
SandMark version 3.0 Wed Jan 29 10:30:05 MST 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |