org.lsst.ccs.subsystems.fcs.simulation
Class StopState
java.lang.Object
org.lsst.ccs.subsystems.fcs.simulation.StopState
- All Implemented Interfaces:
- EngineState
public class StopState
- extends Object
- implements EngineState
This is the concrete state where we know what to be done when the engine is
in the state "Stop".
- Author:
- virieux
|
Field Summary |
protected static org.apache.log4j.Logger |
log
|
log
protected static org.apache.log4j.Logger log
StopState
public StopState()
computeDisplacement
public double computeDisplacement(Motor engine,
double period,
RunningWay runningWay)
- Description copied from interface:
EngineState
- This method compute the displacement of the mobil mechanical item
the engine moves during a period and in a given rotation way.
- Specified by:
computeDisplacement in interface EngineState
period - in milliseconds
- Returns:
error
public String error(Motor motor)
- Specified by:
error in interface EngineState
go
public String go(Motor motor,
double period,
RunningWay runningWay)
- Description copied from interface:
EngineState
- Send the command go to engine e for t milliseconds in a given rotation way.
- Specified by:
go in interface EngineState
period - : in millisecondsrunningWay - rotation way
stop
public String stop(Motor motor)
- Specified by:
stop in interface EngineState
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012 LSST. All Rights Reserved.