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
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
 CarouselModule carousel
           
 
Fields inherited from class org.lsst.ccs.subsystems.fcs.FilterClampModule
filterPresence, 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()
           
abstract  boolean isLocked()
          Method to be overrided in the concrete classes : It depends on the type of the clamp.
 void setAtStandby(boolean atStandby)
           
 void tick()
          What to do when the Modules we observe send there new values.
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.FilterClampModule
getFilterPresenceSensor, getState, getStatusData, getValueA, getValueB, getValueC, initPublishedData, isFilterEngaged, isUpdateCompleted, release, setFilterPresenceSensor, setState, setUpdateCompleted, setValueA, setValueB, setValueC, unlock, updateStateWithSensors
 
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

carousel

public CarouselModule carousel
Constructor Detail

SimuFilterClampModule

public SimuFilterClampModule()
Method Detail

isLocked

public abstract boolean isLocked()
Description copied from class: FilterClampModule
Method to be overrided in the concrete classes : It depends on the type of the clamp.

Specified by:
isLocked in interface FilterClamp
Specified by:
isLocked in class FilterClampModule

initModule

public void initModule()
Overrides:
initModule in class FilterClampModule

tick

public void tick()
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, we considere that the filter is at standby position, so the simulated presence filter sensor has to be configured to returns a value in the range of

Overrides:
tick in class FilterClampModule

isAtStandby

public boolean isAtStandby()
Returns:
the atStandby

setAtStandby

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


Copyright © 2012 LSST. All Rights Reserved.