|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--routing.BorderHeap
A heap for border elements.
| Field Summary | |
static CPUTimer |
changeTimer
Change timer. |
static CPUTimer |
fetchTimer
Fetch timer. |
static CPUTimer |
insertTimer
Insert timer. |
| Constructor Summary | |
BorderHeap()
Creates a new heap. |
|
| Method Summary | |
void |
adaptToDecreasedDistance(Node node,
int way)
Adapts an element in the heap according to its decreased distances. |
boolean |
fetchFirst()
Gets and removes the first element of the heap. |
void |
insert(Node node,
int way,
double distance)
Inserts a new border element into the heap. |
void |
reset()
Removes all elements from the heap. |
double |
returnDistance()
Returns the return distance. |
Node |
returnNode()
Returns the return node. |
int |
returnWay()
Returns the return direction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static CPUTimer fetchTimer
public static CPUTimer insertTimer
public static CPUTimer changeTimer
| Constructor Detail |
public BorderHeap()
| Method Detail |
public void adaptToDecreasedDistance(Node node,
int way)
node - the modified node in the borderway - the direction of the distancepublic boolean fetchFirst()
public void insert(Node node,
int way,
double distance)
public void reset()
public double returnDistance()
public Node returnNode()
public int returnWay()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||