|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--auc.algo.GridPlanner
Route algorithm for grid layout.
| Field Summary | |
protected CostEvaluator |
evaluator
Default CostEvaluator is a GridEvaluator. |
protected Vector2D[][] |
M
|
protected Vector2D[] |
R
|
protected int |
visitPointNumber
|
| Constructor Summary | |
GridPlanner()
|
|
| Method Summary | |
Route |
planRoute(Job job)
Searches for the optimal route and orders the points array to be in the optimal order. |
void |
setCostEvaluator(CostEvaluator ce)
Sets the cost evaluator object to evaluate the basic route cost travelling between two points. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected CostEvaluator evaluator
protected int visitPointNumber
protected Vector2D[][] M
protected Vector2D[] R
| Constructor Detail |
public GridPlanner()
| Method Detail |
public Route planRoute(Job job)
planRoute in interface RouteAlgorithmfield - The field structure.points - The array of points to be visited.public void setCostEvaluator(CostEvaluator ce)
setCostEvaluator in interface RouteAlgorithmce - The cost evaluator. If not set the distance is assumed to be the cost.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||