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

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.Sensor14bits
              extended by org.lsst.ccs.subsystems.fcs.simulation.SimuSensor14bits
All Implemented Interfaces:
Serializable, Observer, org.lsst.ccs.framework.Configurable, Sensor
Direct Known Subclasses:
SimuClampFilterPresenceSensor, SimuClampLockSensor

public class SimuSensor14bits
extends Sensor14bits

This class is to simulate a sensor which returns a value coded on 12bits. It returns a random value between value1 and value2.

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
 
Fields inherited from class org.lsst.ccs.subsystems.fcs.Sensor14bits
value
 
Fields inherited from class org.lsst.ccs.framework.Module
environment, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
SimuSensor14bits()
           
 
Method Summary
 int readNewValue()
          This method reads the current value in decimal measured by the hardware or compute a random value for the simulated sensor, and returns this current value.
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.Sensor14bits
getMaxValue, getMinValue, getValue, initModule, setMinValue, setValue, toString, updateValue
 
Methods inherited from class org.lsst.ccs.framework.Module
change, checkHardware, dropConfigurationContext, getCheckedValueFromConfiguration, getChildren, getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, newConfigurationContext, notifyChange, notifyChangeWithoutPreliminaryChecks, processUpdate, publishData, publishData, publishData, publishData, register, register, sendToReply, sendToStatus, setBeanName, setContext, setEnvironment, 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, wait, wait, wait
 

Constructor Detail

SimuSensor14bits

public SimuSensor14bits()
Method Detail

readNewValue

public int readNewValue()
Description copied from interface: Sensor
This method reads the current value in decimal measured by the hardware or compute a random value for the simulated sensor, and returns this current value.

Returns:
a random between value1 and value2


Copyright © 2013 LSST. All Rights Reserved.