org.lsst.ccs.subsystems.fcs.drivers
Class CanOpenSensor12bits

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.drivers.CanOpenSensor12bits
All Implemented Interfaces:
java.io.Serializable, java.util.Observer, Sensor

public class CanOpenSensor12bits
extends Sensor12bits

This is a Model for a sensor on a can open bus which communicates over Can Open protocol. The sensor is supposed to be connected to a ADC with analogics input. It will probably move to the package org.lsst.ccs.drivers.canopen

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
CanOpenSensor12bits(int aNodeID)
           
 
Method Summary
 int getNodeID()
           
 void initModule()
           
 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, 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

CanOpenSensor12bits

public CanOpenSensor12bits(int aNodeID)
Method Detail

getNodeID

public int getNodeID()

initModule

public void initModule()
Overrides:
initModule in class org.lsst.ccs.framework.Module

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


Copyright © 2012 LSST. All Rights Reserved.