public class ErrorState extends Object implements EngineState
ERROR, RUNNING, STOP| Constructor and Description |
|---|
ErrorState() |
| Modifier and Type | Method and Description |
|---|---|
double |
computeDisplacement(Motor motor,
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 m) |
String |
go(Motor m,
double t,
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 motor, double period, RunningWay runningWay)
EngineStatecomputeDisplacement in interface EngineStateperiod - in millisecondspublic String error(Motor m)
error in interface EngineStatepublic String go(Motor m, double t, RunningWay runningWay)
EngineStatego in interface EngineStatet - : in millisecondsrunningWay - rotation waypublic String stop(Motor motor)
stop in interface EngineStateCopyright © 2013 LSST. All Rights Reserved.