Class NodeToHemisson
java.lang.Object
NodeToHemisson
- public class NodeToHemisson
- extends java.lang.Object
Method Summary |
static boolean |
moveHemisson(java.lang.String sMove)
moveHemisson send the String commands to the class Hemisson and waits. |
static int |
run(Node nStart,
Node nGoal,
int iOrientation)
Actually moves the Hemisson from one node to another |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TURN_RIGHT
public static java.lang.String TURN_RIGHT
TURN_LEFT
public static java.lang.String TURN_LEFT
RESET
public static java.lang.String RESET
MOVE_FORWARD
public static java.lang.String MOVE_FORWARD
MOVE_BACKWARD
public static java.lang.String MOVE_BACKWARD
LINE_TRESHOLD
public static java.lang.String LINE_TRESHOLD
MOVE_HALF_BACKWARD
public static java.lang.String MOVE_HALF_BACKWARD
MOVE_HALF_BACKWARD_OFFSET
public static java.lang.String MOVE_HALF_BACKWARD_OFFSET
NodeToHemisson
public NodeToHemisson()
run
public static int run(Node nStart,
Node nGoal,
int iOrientation)
- Actually moves the Hemisson from one node to another
- Parameters:
nStart
- The start NodenGoal
- The Goal Node
- Returns:
- the orientation after the move
moveHemisson
public static boolean moveHemisson(java.lang.String sMove)
- moveHemisson send the String commands to the class Hemisson and waits.
- Parameters:
sMove
- a string with a move
- Returns:
- true if a white line was encountered by the Hemisson Robot