Package gda.device.adc
Class DummyAdc
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.device.adc.DummyAdc
- All Implemented Interfaces:
Adc,Device,Configurable,Findable,gda.observable.IObservable
Dummy implementation of the Adc class
-
Field Summary
Fields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetRange(int channel) Get the current voltage Range for the specified channel.int[]Get the supported ranges for a particular ADC.doublegetVoltage(int channel) Get the current voltage for the specified channel.double[]Get the current voltage from all open channels.booleanGet the polarity capability of the ADC.voidsetRange(int channel, int range) Set the voltage Range for the specified channel.voidsetSampleCount(int count) Set the sample count for the ADC monitoring.voidsetUniPolar(int channel, boolean polarity) Set the unipolar or bipolar mode for a specified channel.voidSet the method used to generate an appropriate valueMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
DummyAdc
public DummyAdc()The Constructor.
-
-
Method Details
-
getVoltage
Description copied from interface:AdcGet the current voltage for the specified channel.- Specified by:
getVoltagein interfaceAdc- Parameters:
channel- the ADC channel to read- Returns:
- the current voltage (units are implementation specific)
- Throws:
DeviceException
-
getVoltages
Description copied from interface:AdcGet the current voltage from all open channels.- Specified by:
getVoltagesin interfaceAdc- Returns:
- the current voltages (units are implementation specific)
- Throws:
DeviceException
-
setRange
Description copied from interface:AdcSet the voltage Range for the specified channel.- Specified by:
setRangein interfaceAdc- Parameters:
channel- the ADC channel to setrange- the range to set (units are implementation specific)- Throws:
DeviceException- See Also:
-
getRange
Description copied from interface:AdcGet the current voltage Range for the specified channel.- Specified by:
getRangein interfaceAdc- Parameters:
channel- the ADC channel to get- Returns:
- the range (units are implementation specific)
- Throws:
DeviceException- See Also:
-
setUniPolar
Description copied from interface:AdcSet the unipolar or bipolar mode for a specified channel.- Specified by:
setUniPolarin interfaceAdc- Parameters:
channel- the ADC channel to setpolarity- unipolar mode either true or false- Throws:
DeviceException- See Also:
-
getRanges
Description copied from interface:AdcGet the supported ranges for a particular ADC.- Specified by:
getRangesin interfaceAdc- Returns:
- the supported voltage ranges (units are implementation specific)
- Throws:
DeviceException
-
isUniPolarSettable
Description copied from interface:AdcGet the polarity capability of the ADC.- Specified by:
isUniPolarSettablein interfaceAdc- Returns:
- true if UNIPOLAR is supported else assume BIPOLAR
- Throws:
DeviceException
-
setSampleCount
Description copied from interface:AdcSet the sample count for the ADC monitoring.- Specified by:
setSampleCountin interfaceAdc- Parameters:
count- the number of samples to read- Throws:
DeviceException
-
setValueSuggester
Set the method used to generate an appropriate value- Parameters:
vs- DummyValueSuggester to be used.
-