public class StopState 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 |
|---|
StopState() |
| Modifier and Type | Method and Description |
|---|---|
double |
computeDisplacement(Motor engine,
double period,
RunningWay runningWay)
This method compute the displacement of the mobil mechanical item
the engine moves during a period and in a given rotation way.
|
String |
error(Motor motor) |
String |
go(Motor motor,
double period,
RunningWay runningWay)
Send the command go to engine e for t milliseconds in a given rotation way.
|
String |
stop(Motor motor) |
String |
toString() |
public double computeDisplacement(Motor engine, double period, RunningWay runningWay)
EngineStatecomputeDisplacement in interface EngineStateperiod - in millisecondspublic String error(Motor motor)
error in interface EngineStatepublic String go(Motor motor, double period, RunningWay runningWay)
EngineStatego in interface EngineStateperiod - : in millisecondsrunningWay - rotation waypublic String stop(Motor motor)
stop in interface EngineStateCopyright © 2014 LSST. All Rights Reserved.