public class RunningState extends Object implements EngineState
| Modifier and Type | Field and Description |
|---|---|
protected static org.lsst.ccs.utilities.logging.Logger |
log |
ERROR, RUNNING, STOP| Constructor and Description |
|---|
RunningState() |
| Modifier and Type | Method and Description |
|---|---|
double |
computeDisplacement(Motor motor,
double period,
RunningWay runningWay)
Computes the displacement (rotation angle or position) for this engine state during a time period.
|
String |
error(Motor motor) |
String |
go(Motor motor,
double t,
RunningWay runningWay)
Engine stays in state running when it is running and it receives the command go.
|
String |
stop(Motor motor)
It goes to "stop" when asked.
|
String |
toString() |
public double computeDisplacement(Motor motor, double period, RunningWay runningWay)
computeDisplacement in interface EngineStatemotor - period - runninWay - public String error(Motor motor)
error in interface EngineStatepublic String go(Motor motor, double t, RunningWay runningWay)
go in interface EngineStatet - : in millisecondsrunningWay - rotation waypublic String stop(Motor motor)
stop in interface EngineStateCopyright © 2013 LSST. All Rights Reserved.