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.FilterClampModule
              extended by org.lsst.ccs.subsystems.fcs.simulation.SimuFilterClampModule
All Implemented Interfaces:
Serializable, Observer
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
 
Field Summary
protected  CarouselModule carousel
           
protected  Filter dummyFilter
           
 
Fields inherited from class org.lsst.ccs.subsystems.fcs.FilterClampModule
clampState, filterPresenceStatus, publishedByClampOutputName, temperature, updatingState
 
Fields inherited from class org.lsst.ccs.framework.Module
configMethods, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
SimuFilterClampModule()
           
 
Method Summary
 Filter getDummyFilter()
           
 void initModule()
           
abstract  boolean isLocked()
          This methods returns true if the clamp is locked.
 void processUpdate(Observable source, org.lsst.ccs.framework.Module.ValueUpdate v)
          What to do when the Modules we observe send there new values.
 double readTemperature()
           
 void setDummyFilter(Filter dummyFilter)
           
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.FilterClampModule
computeClampState, getActuator, getClampState, getFilterPositionMaxValue, getFilterPositionMinValue, getFilterPositionValueA, getFilterPositionValueB, getFilterPositionValueC, getFilterPresenceSensor, getFilterPresenceStatus, getLockSensor, getLockSensorMaxValue, getLockSensorMinValue, getLockSensorValueA, getLockSensorValueB, getLockSensorValueC, getLockStatus, getStatusData, getTemperature, isFilterEngaged, release, setActuator, setFilterPositionMaxValue, setFilterPositionMinValue, setFilterPositionValueA, setFilterPositionValueB, setFilterPositionValueC, setFilterPresenceSensor, setLockSensor, setLockSensorMaxValue, setLockSensorMinValue, setLockSensorValueA, setLockSensorValueB, setLockSensorValueC, setLockStatus, tick, unlock, updateStateWithSensors
 
Methods inherited from class org.lsst.ccs.framework.Module
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, publishData, publishData, publishData, publishData, register, register, sendToReply, sendToStatus, setBeanName, setContext, 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
 

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)

isLocked

public abstract boolean isLocked()
Description copied from class: FilterClampModule
This methods returns true if the clamp is locked. In the simulator, it is overriden.

Overrides:
isLocked in class FilterClampModule
Returns:

readTemperature

public double readTemperature()
Specified by:
readTemperature in class FilterClampModule

initModule

public void initModule()
Overrides:
initModule in class FilterClampModule

processUpdate

public void processUpdate(Observable source,
                          org.lsst.ccs.framework.Module.ValueUpdate v)
What to do when the Modules we observe send there new values. A Simulated clamp Module observes the autochanger truks.

Overrides:
processUpdate in class org.lsst.ccs.framework.Module


Copyright © 2012 LSST. All Rights Reserved.