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

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.common.MobileItemModule
              extended by org.lsst.ccs.subsystems.fcs.FilterClampModule
                  extended by org.lsst.ccs.subsystems.fcs.simulation.SimuFilterClampModule
All Implemented Interfaces:
Serializable, Observer, org.lsst.ccs.framework.Configurable
Direct Known Subclasses:
SimuFilterClampXminusModule, SimuFilterClampXplusModule

public abstract class SimuFilterClampModule
extends FilterClampModule

A very basic simulated filter clamp module. It has no sensor to know if the clamp is locked or not. This clamp is locked when the clamps actuator of the carousel are off. And its filter presence sensor is configured to returns the value we expect!

Author:
virieux
See Also:
Serialized Form

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
protected  CarouselModule carousel
           
protected  Filter dummyFilter
           
 
Fields inherited from class org.lsst.ccs.subsystems.fcs.FilterClampModule
clampState, filterPresenceStatus, publishedByClampOutputName, temperature, timeoutRelease, timeoutUnlock, updatingState
 
Fields inherited from class org.lsst.ccs.subsystems.fcs.common.MobileItemModule
itemMoving, lock, motionCompleted
 
Fields inherited from class org.lsst.ccs.framework.Module
environment, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
SimuFilterClampModule()
           
 
Method Summary
 Filter getDummyFilter()
           
 void initModule()
           
 void setDummyFilter(Filter dummyFilter)
           
 void updateStateWithSensors()
          This method updates the clamp clampState regarding the value returned by the filter presence sensor and the value returned by the method isLocked().
 double updateTemperature()
          This methods read the thermometer, update the field temperature and returns the value sent by the thermometer;
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.FilterClampModule
computeClampState, getActuator, getClampState, getFilterPositionMaxValue, getFilterPositionMinValue, getFilterPositionOffset, getFilterPositionValueA, getFilterPositionValueB, getFilterPositionValueC, getFilterPresenceSensor, getFilterPresenceStatus, getLockSensor, getLockSensorMaxValue, getLockSensorMinValue, getLockSensorOffset, getLockSensorValueA, getLockSensorValueB, getLockSensorValueC, getLockStatus, getStatusData, getTemperature, getThermometer, getTimeoutRelease, getTimeoutUnlock, isActionCompleted, isFilterEngaged, isLocked, postAction, publishTrendingData, release, releaseWithThreadSleep, setActuator, setFilterPositionOffset, setFilterPositionValueA, setFilterPositionValueB, setFilterPositionValueC, setFilterPresenceSensor, setLockSensor, setLockSensorOffset, setLockSensorValueA, setLockSensorValueB, setLockSensorValueC, setLockStatus, setThermometer, setTimeoutRelease, setTimeoutUnlock, startAction, toString, unlock, unlockWithThreadSleep, updateFilterPresenceStatus, updateLockStatus, updateStateWithSensorsFromSDO, updateStateWithSensorsToCheckIfActionIsCompleted
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.common.MobileItemModule
cancelReadingSensors, executeAction, readSensorsUntilActionIsCompleted, shutdownNow, waitForEndOfAction
 
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, start, startTicking, tick, 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, wait, wait, wait
 

Field Detail

carousel

protected CarouselModule carousel

dummyFilter

protected Filter dummyFilter
Constructor Detail

SimuFilterClampModule

public SimuFilterClampModule()
Method Detail

getDummyFilter

public Filter getDummyFilter()

setDummyFilter

public void setDummyFilter(Filter dummyFilter)

updateTemperature

public double updateTemperature()
Description copied from class: FilterClampModule
This methods read the thermometer, update the field temperature and returns the value sent by the thermometer;

Overrides:
updateTemperature in class FilterClampModule
Returns:

initModule

public void initModule()
Overrides:
initModule in class FilterClampModule

updateStateWithSensors

public void updateStateWithSensors()
                            throws HardwareException
Description copied from class: FilterClampModule
This method updates the clamp clampState regarding the value returned by the filter presence sensor and the value returned by the method isLocked(). When the update is completed, it sends a signal to threads waiting to get the new value of clampState.

Overrides:
updateStateWithSensors in class FilterClampModule
Throws:
HardwareException


Copyright © 2013 LSST. All Rights Reserved.