|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.path.PathNode
public class PathNode
Class for implementing Djikstra's Spanning Tree algorithm.
Constructor Summary | |
---|---|
PathNode()
Creates a new instance of PathNode |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares two PathNodes. |
Actor |
getActor()
Returns the Actor associated with this PathNode. |
double |
getCost()
Return the total cost to the root of the spanning tree |
int |
getId()
Returns the id associated with this group of PathNodes |
PathNode |
getPrevious()
Return the previous PathNode in this implicit Path. |
Link |
getPreviousLink()
|
void |
setActor(Actor a)
Set the actor that this PathNode represents. |
void |
setCost(double c)
Set the cost to the spanning tree root |
void |
setId(int i)
Set the id for this node |
void |
setPrevious(PathNode p)
Set the previous PathNode in the spanning tree implicitly defined by this set of PathNodes. |
void |
setPreviousLink(Link l)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathNode()
Method Detail |
---|
public int compareTo(java.lang.Object o) throws java.lang.ClassCastException
o
- object to be compared against
java.lang.ClassCastException
public int getId()
public void setId(int i)
i
- new node IDpublic void setActor(Actor a)
a
- actor associated with this PathNodepublic Actor getActor()
public void setPrevious(PathNode p)
p
- previous PathNode in this implicit Pathpublic PathNode getPrevious()
public double getCost()
public void setCost(double c)
c
- new cost to the spanning tree rootpublic void setPreviousLink(Link l)
public Link getPreviousLink()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |