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

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.common.Sensor12bits
              extended by org.lsst.ccs.subsystems.fcs.simulation.SimuSensor12bits
All Implemented Interfaces:
java.io.Serializable, java.util.Observer, Sensor

public class SimuSensor12bits
extends Sensor12bits

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
 
Field Summary
 
Fields inherited from class org.lsst.ccs.framework.Module
log, nObserverThreads, registry, tickMillis
 
Constructor Summary
SimuSensor12bits()
           
 
Method Summary
 int readNewValue()
          This method reads the current value 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.common.Sensor12bits
getMaxValue, getValue, setValue, toString, updateValue
 
Methods inherited from class org.lsst.ccs.framework.Module
getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, initModule, listens, processUpdate, publishData, publishData, publishData, publishData, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, start, 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

SimuSensor12bits

public SimuSensor12bits()
Method Detail

readNewValue

public int readNewValue()
Description copied from interface: Sensor
This method reads the current value 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 © 2012 LSST. All Rights Reserved.