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

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.NumericSensor
              extended by org.lsst.ccs.subsystems.fcs.simulation.SimuNumericSensor
All Implemented Interfaces:
Serializable, Observer

public class SimuNumericSensor
extends NumericSensor

This class is used in the single filter test to simulate the rail sensors of the autochanger and the filter presence sensor on the lachtes. The simulated rail sensors listen to the motors and update their digitalValue when the motor are set on or off (cf SimuActuatorModule)

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.NumericSensor
digitalValue
 
Fields inherited from class org.lsst.ccs.framework.Module
configMethods, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
SimuNumericSensor()
           
 
Method Summary
 Filter getDummyFilter()
           
 void initModule()
           
 void processUpdate(Observable source, org.lsst.ccs.framework.Module.ValueUpdate v)
          What to do when a Module we observe updates its digitalValue : we set a new digitalValue in the simulated sensor.
 int readNewValue()
           
 void setDummyFilter(Filter dummyFilter)
           
 void updateValue(String hexaValueReadOnDevice)
          update the digitalValue of this object with the
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.NumericSensor
getDigitalValue, setDigitalValue
 
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, 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, toString, wait, wait, wait
 

Constructor Detail

SimuNumericSensor

public SimuNumericSensor()
Method Detail

getDummyFilter

public Filter getDummyFilter()

setDummyFilter

public void setDummyFilter(Filter dummyFilter)

initModule

public void initModule()
Overrides:
initModule in class NumericSensor

readNewValue

public int readNewValue()

processUpdate

public void processUpdate(Observable source,
                          org.lsst.ccs.framework.Module.ValueUpdate v)
What to do when a Module we observe updates its digitalValue : we set a new digitalValue in the simulated sensor. In the autochanger, the rail sensors at standback listens to the standbackMotor and the rail sensors at standby listens to the standbyMotor (see description file) The filter presence sensors in the latches listen to the simulated trucks. TODO : the SimuCompactIOModule is going to listen to the standback and standby motors.

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

updateValue

public void updateValue(String hexaValueReadOnDevice)
Description copied from class: NumericSensor
update the digitalValue of this object with the

Specified by:
updateValue in class NumericSensor


Copyright © 2012 LSST. All Rights Reserved.