|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lejon.DriveModel
This is an abstract description of a drive. Each concrete architecture should be inherited from this class and implemented.
Field Summary | |
static int |
IDLE
Constant for execution state IDLE |
static int |
MOVING
Constant for execution state MOVING |
static int |
PAUSE
Constant for execution state PAUSE |
static int |
SETUP
Constant for execution state SETUP |
Method Summary | |
void |
addMotionEventListener(MotionEventListener motionEventListener)
Sets a listener for handling callbacks from here. |
abstract void |
cancel()
Cancels the running action. |
abstract MotionReport |
getMotionReport()
Returns the motion report for the current action. |
abstract void |
move()
Executes the action that was set up previously. |
abstract void |
pause()
Pauses the running action. |
void |
removeMotionEventListener()
Removes the current MotionEventListener. |
abstract void |
resume()
Restarts the previously paused action. |
abstract void |
setMotionCommand(MotionCommand motionCommand)
Sets a motion command which defines the action to be excecuted by the drive. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int IDLE
public static final int SETUP
public static final int MOVING
public static final int PAUSE
Method Detail |
public abstract void setMotionCommand(MotionCommand motionCommand)
motionCommand
- the motion command.public abstract MotionReport getMotionReport()
public abstract void move()
public abstract void pause()
public abstract void resume()
public abstract void cancel()
public void addMotionEventListener(MotionEventListener motionEventListener)
motionEventListener
- the listener objectpublic void removeMotionEventListener()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |