| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectps3.graph.WeightedNodePath
public class WeightedNodePath
A WeightedNodePath characterizes a path of WeightedNodes. The cost for a path is the sum of the costs of the WeightedNodes it contains.
A WeightedNodePath is immutable. A new WeightedNodePath is returned through the extend path operation.
Specfields inherited from Path:
cost -  :     double       // cost of traversing this path.
  elements -  : sequence     // sequence of nodes in this path.
 | Constructor Summary | |
|---|---|
WeightedNodePath(WeightedNode node)
Constructs a WeightedNodePath containing one node.  | 
|
| Method Summary | |
|---|---|
 int | 
compareTo(Path<?,?> p)
Compares the cost of this path to the given path.  | 
 double | 
cost()
 | 
 WeightedNode | 
end()
Return the end of this path  | 
 boolean | 
equals(Object o)
 | 
 boolean | 
equals(WeightedNodePath wnp)
 | 
 WeightedNodePath | 
extend(WeightedNode node)
Creates an extended path by adding a new node to its end.  | 
 int | 
hashCode()
 | 
 Iterator<WeightedNode> | 
iterator()
 | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public WeightedNodePath(WeightedNode node)
node.| Method Detail | 
|---|
public WeightedNodePath extend(WeightedNode node)
Path
extend in interface Path<WeightedNode,WeightedNodePath>public double cost()
cost in interface Path<WeightedNode,WeightedNodePath>public Iterator<WeightedNode> iterator()
iterator in interface Iterable<WeightedNode>iterator in interface Path<WeightedNode,WeightedNodePath>public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic boolean equals(WeightedNodePath wnp)
public int hashCode()
hashCode in class Objectpublic int compareTo(Path<?,?> p)
compareTo in interface Comparable<Path<?,?>>Comparable.compareTo(T)public WeightedNode end()
end in interface Path<WeightedNode,WeightedNodePath>
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||