public abstract class SimulatedMotor extends org.lsst.ccs.framework.Module implements Motor
| Modifier and Type | Field and Description |
|---|---|
protected static org.lsst.ccs.utilities.logging.Logger |
fcslog |
| Constructor and Description |
|---|
SimulatedMotor()
This constructor is here only for unit tests.
|
| Modifier and Type | Method and Description |
|---|---|
EngineState |
getEngineState() |
double |
getMaximalPosition() |
double |
getMaximalVelocity() |
double |
getMinimalPosition() |
double |
getNominalVelocity() |
double |
getPeriod() |
double |
getPosition() |
double |
getRequiredPosition() |
String |
getSerialNumber() |
long |
getStateChangeTime() |
void |
incrementPosition(double inc)
To be overrided in each subclasses.
|
void |
initModule() |
void |
move(double displacement) |
void |
move(double displacement,
FcsEnumerations.RunningWay theRunningWay)
This method sends a command go to the simulated motor.
|
void |
setEngineState(EngineState engineState) |
void |
setMaximalPosition(double p) |
void |
setMaximalVelocity(double maximalVelocity) |
void |
setMinimalPosition(double p) |
void |
setNominalVelocity(double nominalVelocity) |
void |
setPeriod(double d) |
void |
setPosition(double position) |
void |
setRequiredPosition(double requiredPosition) |
void |
setSerialNumber(String serialNumber) |
void |
setStateChangeTime(long currentTimeMillis) |
void |
stop() |
void |
tick()
What has to be done for each tick of the timer.
|
alias, change, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getComponentByName, getComponentDictionariesTree, getComponentTree, getContext, getDictionary, getEnvironment, getMainDictionary, getModule, getName, getNObserverThreads, getObservables, getParent, getSubsystem, getTickMillis, init, injectResources, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, percolateSignal, processUpdate, publish, publish, publish, publish, publish, publish, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, sendSignal, sendSignal, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, signal, start, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic SimulatedMotor()
public EngineState getEngineState()
getEngineState in interface Motorpublic double getMaximalVelocity()
getMaximalVelocity in interface Motorpublic double getNominalVelocity()
getNominalVelocity in interface Motorpublic double getPosition()
getPosition in interface Motorpublic double getRequiredPosition()
getRequiredPosition in interface Motorpublic String getSerialNumber()
getSerialNumber in interface Motorpublic long getStateChangeTime()
getStateChangeTime in interface Motorpublic void setEngineState(EngineState engineState)
setEngineState in interface Motorpublic void setMaximalVelocity(double maximalVelocity)
setMaximalVelocity in interface Motorpublic void setNominalVelocity(double nominalVelocity)
setNominalVelocity in interface Motorpublic void setPosition(double position)
position - the position to setpublic void setRequiredPosition(double requiredPosition)
setRequiredPosition in interface Motorpublic void setSerialNumber(String serialNumber)
setSerialNumber in interface Motorpublic void setStateChangeTime(long currentTimeMillis)
setStateChangeTime in interface Motorpublic double getMaximalPosition()
getMaximalPosition in interface Motorpublic double getMinimalPosition()
getMinimalPosition in interface Motorpublic void setMaximalPosition(double p)
setMaximalPosition in interface Motorpublic void setMinimalPosition(double p)
setMinimalPosition in interface Motorpublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void move(double displacement,
FcsEnumerations.RunningWay theRunningWay)
public void tick()
tick in class org.lsst.ccs.framework.Modulepublic void incrementPosition(double inc)
incrementPosition in interface Motorinc - Copyright © 2014 LSST. All rights reserved.