org.lsst.ccs.subsystems.fcs.simulation
Class ErrorState
java.lang.Object
org.lsst.ccs.subsystems.fcs.simulation.ErrorState
- All Implemented Interfaces:
- EngineState
public class ErrorState
- extends Object
- implements EngineState
This is the concrete state where we know what to be done when the engine is
in the state "error".
It can only go in state "stop" when asked. It can't move.
- Author:
- colley, virieux
ErrorState
public ErrorState()
computeDisplacement
public double computeDisplacement(Motor motor,
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 m)
- Specified by:
error in interface EngineState
go
public String go(Motor m,
double t,
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
t - : 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 © 2013 LSST. All Rights Reserved.