org.lsst.ccs.subsystems.fcs.simulation
Class StopState

java.lang.Object
  extended by org.lsst.ccs.subsystems.fcs.simulation.StopState
All Implemented Interfaces:
EngineState

public class StopState
extends java.lang.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
           
 
Fields inherited from interface org.lsst.ccs.subsystems.fcs.common.EngineState
ERROR, RUNNING, STOP
 
Constructor Summary
StopState()
           
 
Method Summary
 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.
 java.lang.String error(Motor motor)
           
 java.lang.String go(Motor motor, double period, RunningWay runningWay)
          Send the command go to engine e for t milliseconds in a given rotation way.
 java.lang.String stop(Motor motor)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

StopState

public StopState()
Method Detail

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 java.lang.String error(Motor motor)
Specified by:
error in interface EngineState

go

public java.lang.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 milliseconds
runningWay - rotation way

stop

public java.lang.String stop(Motor motor)
Specified by:
stop in interface EngineState

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 LSST. All Rights Reserved.