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

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

public class SimuCompactIOModule
extends CompactIOModule

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.CompactIOModule
hexaValue
 
Fields inherited from class org.lsst.ccs.framework.Module
configMethods, log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
SimuCompactIOModule()
           
 
Method Summary
 void initModule()
           
 String readNewHexaValue()
           
 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.
 void setHexaValue(String hex)
           
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.CompactIOModule
BinaryToHex, getHexaValue, getValue, HexToBinary, updateValue
 
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, processUpdate, 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

SimuCompactIOModule

public SimuCompactIOModule()
Method Detail

setHexaValue

public void setHexaValue(String hex)

initModule

public void initModule()
Overrides:
initModule in class CompactIOModule

readNewHexaValue

public String readNewHexaValue()
Specified by:
readNewHexaValue in class CompactIOModule
Returns:
a String which is the value in hexa sent by the device.

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:
the current value provided by the real or simulated sensor.


Copyright © 2012 LSST. All Rights Reserved.