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:
java.io.Serializable, java.util.Observer, FilterClamp

public class SimuFilterClampModule
extends FilterClampModule

A simulated filter clamp module. It has no sensor to know if the clamp is locked or not.

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
 
Fields inherited from class org.lsst.ccs.subsystems.fcs.FilterClampModule
filterPresenceSensor, publishedByClamp, publishedByClampOutputName, state
 
Fields inherited from class org.lsst.ccs.framework.Module
log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
SimuFilterClampModule()
           
 
Method Summary
 void initModule()
           
 boolean isAtStandby()
           
 boolean isLocked()
           
 void processUpdate(java.util.Observable source, org.lsst.ccs.framework.Module.ValueUpdate v)
          What to do when the Modules we observe send there new values.
 void setAtStandby(boolean atStandby)
           
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.FilterClampModule
getFilterPresenceSensor, getState, getStatusData, initPublishedData, lock, release, setFilterPresenceSensor, setState, tick, unlock, updateStateWithSensors
 
Methods inherited from class org.lsst.ccs.framework.Module
getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, publishData, publishData, publishData, publishData, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, 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
 

Constructor Detail

SimuFilterClampModule

public SimuFilterClampModule()
Method Detail

isLocked

public boolean isLocked()
Specified by:
isLocked in interface FilterClamp
Specified by:
isLocked in class FilterClampModule

initModule

public void initModule()
Overrides:
initModule in class FilterClampModule

processUpdate

public void processUpdate(java.util.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. When the trucks are under a limit, the simulated presence sensor is set to 1, otherwise it's set to 0.

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

isAtStandby

public boolean isAtStandby()
Returns:
the atStandby

setAtStandby

public void setAtStandby(boolean atStandby)
Parameters:
atStandby - the atStandby to set


Copyright © 2011 LSST. All Rights Reserved.