|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectAIILE.gridworld.util.hint.GridHint
This class provides hints about the agents direction, the direction of the goal and the distance to the goal.
| Constructor Summary | |
GridHint()
Creates a new instance of GridHint |
|
GridHint(java.lang.String dir)
|
|
GridHint(java.lang.String dir,
int cx,
int cy,
int gx,
int gy)
Creates a new instance of GridHint |
|
| Method Summary | |
float |
getDirectionOfGoal()
This provides the direction of the goal from the current node, in degrees, where North is 0 deg, East is 90 deg, South is 180 deg, and West is 270 degrees. |
float |
getDirectSightDistance()
This is the same as the above getDirectSightDistance but the assumed node weight is a constant 1. |
float |
getDirectSightDistance(int assumedNodeWeight)
This provides a very simple calculation of the distance from the current node to the goal. |
java.lang.String |
getNodeDirection()
This provides the name of the direction of the node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GridHint()
public GridHint(java.lang.String dir)
public GridHint(java.lang.String dir,
int cx,
int cy,
int gx,
int gy)
| Method Detail |
public java.lang.String getNodeDirection()
AIILE.gridworld.util.Directionpublic float getDirectSightDistance(int assumedNodeWeight)
assumedNodeWeight - this is the distance from one node to another, default is 1
public float getDirectSightDistance()
public float getDirectionOfGoal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||