Class SimulatedOscilloscope
java.lang.Object
org.episteme.core.device.AbstractDevice
org.episteme.core.device.AbstractSensor<ElectricPotential>
org.episteme.core.device.sim.AbstractSimulatedSensor<ElectricPotential>
org.episteme.natural.device.sim.SimulatedOscilloscope
- All Implemented Interfaces:
Serializable, AutoCloseable, Device, Sensor<ElectricPotential>, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Oscilloscope
public class SimulatedOscilloscope
extends AbstractSimulatedSensor<ElectricPotential>
implements Oscilloscope
Simulated oscilloscope.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDevice
AbstractDevice.RecordNested classes/interfaces inherited from interface Device
Device.Record, Device.StatusNested classes/interfaces inherited from interface Oscilloscope
Oscilloscope.TriggerMode -
Field Summary
Fields inherited from class AbstractSimulatedSensor
supportFields inherited from class AbstractDevice
accuracy, calibrationHistory, currentValue, displayUnit, firmware, history, identification, lastCalibration, locationDescription, manufacturer, maxRange, minRange, model, precisionDescription, resolution, sensitivity, status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]captureWaveform(int channel) intgetVoltageScale(int channel) Reads a value from the sensor.voidsetSampleRate(Quantity<Frequency> samplesPerSecond) voidsetTimeBase(Quantity<Time> secondsPerDivision) voidsetTriggerLevel(Quantity<ElectricPotential> volts) voidvoidsetVoltageScale(int channel, Quantity<ElectricPotential> voltsPerDivision) Methods inherited from class AbstractSimulatedSensor
addCustomReadings, close, connect, disconnect, getCapabilities, getFormattedInfo, getReadings, getStatus, isConnectedMethods inherited from class AbstractSensor
getValueMethods inherited from class AbstractDevice
calibrate, getAccuracy, getCalibrationHistory, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getResolution, getSensitivity, getTrait, getTraitOptional, getTraits, isEnabled, measure, needsCalibration, performCalibration, recordMeasurement, setAccuracy, setCurrentValue, setDisplayUnit, setEnabled, setFirmware, setLastCalibration, setLocationDescription, setManufacturer, setMaxRange, setMinRange, setModel, setPrecisionDescription, setResolution, setSensitivity, setStatusMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AutoCloseable
closeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, getTraits, setName, setTraitMethods inherited from interface Device
calibrate, calibrate, connect, disconnect, getAccuracy, getCalibrationHistory, getCapabilities, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getReadings, getResolution, getSensitivity, getStatus, getValue, isConnected, isEnabled, measure, needsCalibration, setDisplayUnit, setEnabled
-
Constructor Details
-
SimulatedOscilloscope
-
-
Method Details
-
getChannelCount
public int getChannelCount()- Specified by:
getChannelCountin interfaceOscilloscope
-
getSampleRate
- Specified by:
getSampleRatein interfaceOscilloscope
-
setSampleRate
- Specified by:
setSampleRatein interfaceOscilloscope
-
getTimeBase
- Specified by:
getTimeBasein interfaceOscilloscope
-
setTimeBase
- Specified by:
setTimeBasein interfaceOscilloscope
-
getVoltageScale
- Specified by:
getVoltageScalein interfaceOscilloscope
-
setVoltageScale
- Specified by:
setVoltageScalein interfaceOscilloscope
-
getTriggerMode
- Specified by:
getTriggerModein interfaceOscilloscope
-
setTriggerMode
- Specified by:
setTriggerModein interfaceOscilloscope
-
getTriggerLevel
- Specified by:
getTriggerLevelin interfaceOscilloscope
-
setTriggerLevel
- Specified by:
setTriggerLevelin interfaceOscilloscope
-
captureWaveform
public double[] captureWaveform(int channel) - Specified by:
captureWaveformin interfaceOscilloscope
-
getBandwidth
- Specified by:
getBandwidthin interfaceOscilloscope
-
readValue
Description copied from interface:SensorReads a value from the sensor.- Specified by:
readValuein interfaceSensor<ElectricPotential>- Returns:
- the measured value
- Throws:
IOException- if the read operation fails
-