|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.lsst.ccs.framework.Module
org.lsst.ccs.subsystems.fcs.CompactIOModule
public abstract class CompactIOModule
This represents a device we use in FCS to connect our numeric sensors(CAN-CBX-DIO8). It has 8 channels. Each channel can be configured to be inputs or output channel. So we can plug up to 8 sensors on one CampactIOModule. We read all the inputs channels in the same commands. This class should be extended for the real hardware and for the simulated hardware.
| 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 | |
|---|---|
String |
hexaValue
|
| Fields inherited from class org.lsst.ccs.framework.Module |
|---|
environment, log, name, nObserverThreads, registry, tickMillis |
| Constructor Summary | |
|---|---|
CompactIOModule()
|
|
| Method Summary | |
|---|---|
static String |
BinaryToHex(String bin)
|
String |
getHexaValue()
|
int |
getValue()
|
static String |
HexToBinary(String Hex)
The String argument represents an integer in hexa. |
void |
initModule()
|
abstract String |
readNewHexaValue()
|
void |
updateValue()
This method reads the current value, controls if this current value is correct depending on the type of the sensor (this value could be between a minimum and a maximum) and if the value is correct, updates the Sensor.value field. |
| 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, toString, wait, wait, wait |
| Methods inherited from interface org.lsst.ccs.subsystems.fcs.common.Sensor |
|---|
readNewValue |
| Field Detail |
|---|
public String hexaValue
| Constructor Detail |
|---|
public CompactIOModule()
| Method Detail |
|---|
public void initModule()
initModule in class org.lsst.ccs.framework.Modulepublic abstract String readNewHexaValue()
public String getHexaValue()
public int getValue()
getValue in interface Sensorpublic void updateValue()
Sensor
updateValue in interface Sensorpublic static String HexToBinary(String Hex)
Hex -
public static String BinaryToHex(String bin)
bin -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||