|
||||||||||
| 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.FilterClampModule
public abstract class FilterClampModule
An abstract class which extends Module to model a clamp that holds a filter on the carousel. It implements pattern state. See the state machine diagram for a carousel clamp. Each clamp on the carousel is coupled with a sensor which detects the presence of a filter. This abstract class provides a method to lock, unlock or release the clamps, and to compute the state of the clamp. The state of the clamp is computed, updated and published on the status bus each tick of the timer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module |
|---|
org.lsst.ccs.framework.Module.ValueUpdate |
| Field Summary | |
|---|---|
protected FilterPresenceStateOnClamp |
filterPresence
|
StatusDataPublishedByClamp |
publishedByClamp
what the clamp publishes on the status bus. |
java.lang.String |
publishedByClampOutputName
|
protected FilterClampState |
state
|
| Fields inherited from class org.lsst.ccs.framework.Module |
|---|
log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
FilterClampModule()
|
|
| Method Summary | |
|---|---|
Sensor12bits |
getFilterPresenceSensor()
For encapsulation : we want to access to filterPresenceSensor in sub-packages. |
FilterClampState |
getState()
|
StatusDataPublishedByClamp |
getStatusData()
|
int |
getValueA()
|
int |
getValueB()
|
int |
getValueC()
|
void |
initModule()
|
void |
initPublishedData()
|
boolean |
isFilterEngaged()
|
abstract boolean |
isLocked()
Method to be overrided in the concrete classes : It depends on the type of the clamp. |
protected boolean |
isUpdateCompleted()
|
java.lang.String |
release(Actuator actuator)
The clamps on the carousel are locked automaticaly when the filter comes at the standby position. |
void |
setFilterPresenceSensor(Sensor12bits filterPresenceSensor)
for Spring |
void |
setState(FilterClampState state)
|
protected void |
setUpdateCompleted(boolean updateCompleted)
|
void |
setValueA(int valueA)
|
void |
setValueB(int valueB)
|
void |
setValueC(int valueC)
|
void |
tick()
|
java.lang.String |
unlock(Actuator actuator)
Unlock the clamp when a filter is locked by the clamp. |
void |
updateStateWithSensors()
This method updates the clamp state regarding the value returned by the filter presence sensor and the value returned by the method isLocked(). |
| Methods inherited from class org.lsst.ccs.framework.Module |
|---|
getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, processUpdate, publishData, publishData, publishData, publishData, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, start, 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.FilterClamp |
|---|
getName, getTickMillis |
| Field Detail |
|---|
protected FilterClampState state
protected FilterPresenceStateOnClamp filterPresence
public java.lang.String publishedByClampOutputName
public StatusDataPublishedByClamp publishedByClamp
| Constructor Detail |
|---|
public FilterClampModule()
| Method Detail |
|---|
public void setValueA(int valueA)
valueA - the valueA to setpublic void setValueB(int valueB)
valueB - the valueB to setpublic void setValueC(int valueC)
valueC - the valueC to setpublic FilterClampState getState()
getState in interface FilterClamppublic void setState(FilterClampState state)
setState in interface FilterClampstate - the state to setprotected boolean isUpdateCompleted()
protected void setUpdateCompleted(boolean updateCompleted)
updateCompleted - the updateCompleted to setpublic int getValueA()
public int getValueB()
public int getValueC()
public Sensor12bits getFilterPresenceSensor()
getFilterPresenceSensor in interface FilterClamppublic void setFilterPresenceSensor(Sensor12bits filterPresenceSensor)
filterPresenceSensor - the filterPresenceSensor to setpublic boolean isFilterEngaged()
isFilterEngaged in interface FilterClamppublic abstract boolean isLocked()
isLocked in interface FilterClamppublic void updateStateWithSensors()
updateStateWithSensors in interface FilterClamppublic void tick()
tick in class org.lsst.ccs.framework.Modulepublic void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic void initPublishedData()
public StatusDataPublishedByClamp getStatusData()
getStatusData in interface FilterClamp
public java.lang.String release(Actuator actuator)
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
release in interface FilterClamporg.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
public java.lang.String unlock(Actuator actuator)
throws org.lsst.ccs.bus.BadCommandException,
org.lsst.ccs.bus.ErrorInCommandExecutionException
unlock in interface FilterClamporg.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||