org.lsst.ccs.subsystems.fcs.common
Interface EngineState

All Known Implementing Classes:
ErrorState, RunningState, StopState

public interface EngineState


Field Summary
static EngineState ERROR
           
static EngineState RUNNING
           
static EngineState STOP
           
 
Method Summary
 double computeDisplacement(Motor m, 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 m)
           
 java.lang.String go(Motor m, double t, RunningWay runningWay)
          Send the command go to engine e for t milliseconds in a given rotation way.
 java.lang.String stop(Motor m)
           
 

Field Detail

RUNNING

static final EngineState RUNNING

STOP

static final EngineState STOP

ERROR

static final EngineState ERROR
Method Detail

go

java.lang.String go(Motor m,
                    double t,
                    RunningWay runningWay)
Send the command go to engine e for t milliseconds in a given rotation way.

Parameters:
e - : engine
t - : in milliseconds
runningWay - rotation way

stop

java.lang.String stop(Motor m)

error

java.lang.String error(Motor m)

computeDisplacement

double computeDisplacement(Motor m,
                           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.

Parameters:
engine -
period - in milliseconds
runningWay -
Returns:


Copyright © 2012 LSST. All Rights Reserved.