|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.lsst.ccs.framework.Module
org.lsst.ccs.subsystems.fcs.simulation.SimulatedMotor
public abstract class SimulatedMotor
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module |
|---|
org.lsst.ccs.framework.Module.ValueUpdate |
| Nested classes/interfaces inherited from interface org.lsst.ccs.framework.Configurable |
|---|
org.lsst.ccs.framework.Configurable.Environment |
| Field Summary |
|---|
| Fields inherited from class org.lsst.ccs.framework.Module |
|---|
environment, log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
SimulatedMotor()
This constructor is here only for unit tests. |
|
| Method Summary | |
|---|---|
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,
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. |
| Methods inherited from class org.lsst.ccs.framework.Module |
|---|
alias, change, checkHardware, dropConfigurationContext, getAvailableCommands, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, publishData, publishData, publishData, register, register, removeLogPanicState, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, setHandlerLevel, setLogLevel, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownCommand, shutdownNow, start, startTicking, update |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.lsst.ccs.subsystems.fcs.common.Motor |
|---|
getName |
| Constructor Detail |
|---|
public SimulatedMotor()
| Method Detail |
|---|
public EngineState getEngineState()
getEngineState in interface Motorpublic double getMaximalVelocity()
getMaximalVelocity in interface Motorpublic double getNominalVelocity()
getNominalVelocity in interface Motorpublic double getPeriod()
getPeriod 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 setPeriod(double d)
setPeriod 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 stop()
stop in interface Motorpublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void move(double displacement)
move in interface Motor
public void move(double displacement,
RunningWay theRunningWay)
move in interface Motorpublic void tick()
tick in class org.lsst.ccs.framework.Modulepublic void incrementPosition(double inc)
incrementPosition in interface Motorinc -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||