|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.deepthought.sidious.planner.graph.AStarEdge
public final class AStarEdge
This class represent an edge in an A*-graph.
Field Summary | |
---|---|
private double |
cost
The cost of this edge. |
private Vertex |
endVertex
The end vertex. |
private Vertex |
startVertex
The start vertex. |
private Step |
step
The step of to this edge. |
Constructor Summary | |
---|---|
AStarEdge(Vertex startVertex,
Vertex endVertex,
Step step,
double cost)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
double |
getCost()
Gets the weight of this Edge |
Vertex |
getEndVertex()
Gets the endpoint of this Edge |
Vertex |
getStartVertex()
Gets the startpoint of this Edge |
Step |
getStep()
Gets the Step this Edge represents |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final Vertex startVertex
private final Vertex endVertex
private final double cost
private final Step step
Constructor Detail |
---|
public AStarEdge(Vertex startVertex, Vertex endVertex, Step step, double cost)
startVertex
- a vertex defining the startpoint of this edgeendVertex
- a vertex defining the endpoint of this edgestep
- the origin of this edgecost
- the weight of this edgeMethod Detail |
---|
public double getCost()
Edge
Edge
getCost
in interface Edge
public Vertex getEndVertex()
Edge
Edge
getEndVertex
in interface Edge
public Vertex getStartVertex()
Edge
Edge
getStartVertex
in interface Edge
public Step getStep()
Edge
Step
this Edge
represents
getStep
in interface Edge
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |