
public class SimuCanOpenSensor14bits extends CanOpenSensor14bits
| Modifier and Type | Field and Description |
|---|---|
protected FilterHolder |
autochanger |
protected CarouselClampModule |
clamp |
protected SimuCanOpenProxy |
tcpProxy |
adc, numOfAnalogInputvalue| Constructor and Description |
|---|
SimuCanOpenSensor14bits(String adcName,
int numOfAnalogInput)
Creates a new SimuCanOpenSensor14bits from arguments :
|
| Modifier and Type | Method and Description |
|---|---|
void |
initModule()
Initialize the clamp that this sensor monitors, the simulated tcpProxy with a
PDO storage.
|
protected boolean |
isAtStandby()
return true if this sensor is on the clamp which is at STANDBY.
|
int |
readNewValue()
The simulated sensor doesn't read its new value on a CANopen device but the new value is
generated by a random generator between a min and a max value.
|
protected void |
updateFakePDOStorage()
In the simulator, instead of reading a new PDO to read a new value for the sensor,
we set a value for the sensor and then we update the PDOStorage for this sensor.
|
toString, updateValuegetValue, printValue, updateValuegetNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, setNObserverThreads, setObservables, setTickMillis, shutdownNow, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, printConfigurableParameters, setBulkParameter, submitChange, submitChanges, validateBulkChangesetParameterBulkpostInit, postShutdown, postStart, startprotected SimuCanOpenProxy tcpProxy
protected CarouselClampModule clamp
protected FilterHolder autochanger
public SimuCanOpenSensor14bits(String adcName, int numOfAnalogInput)
adcName - numOfAnalogInput - public void initModule()
initModule in class CanOpenSensor14bitspublic int readNewValue()
readNewValue in interface SensorreadNewValue in class CanOpenSensor14bitsprotected void updateFakePDOStorage()
protected boolean isAtStandby()
Copyright © 2017 LSST. All rights reserved.