Class SimulatedGPIBDevice
java.lang.Object
org.episteme.core.device.AbstractDevice
org.episteme.core.device.sim.AbstractSimulatedDevice
org.episteme.core.device.sim.SimulatedGPIBDevice
- All Implemented Interfaces:
Serializable, AutoCloseable, Device, Commented, ComprehensiveIdentification, Identified<Identification>, Named
Simulated GPIB device for testing without physical hardware.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDevice
AbstractDevice.RecordNested classes/interfaces inherited from interface Device
Device.Status -
Field Summary
Fields inherited from class AbstractSimulatedDevice
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 TypeMethodDescriptionprotected voidaddCustomReadings(Map<String, String> readings) Subclasses can override to add custom readings.intintWrites a command and reads the response.read()Simulates reading from the GPIB device.voidsetBoardIndex(int boardIndex) voidsetGpibAddress(int address) voidSimulates sending a GPIB command.Methods inherited from class AbstractSimulatedDevice
close, connect, disconnect, getCapabilities, getDriverClass, getErrorCode, getFormattedInfo, getReadings, getStatus, getUptimeSeconds, isConnected, isPowerOn, setCapability, setDriverClass, setErrorCode, setPowerOnMethods 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, getValue, 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 Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, setName, setTrait
-
Constructor Details
-
SimulatedGPIBDevice
public SimulatedGPIBDevice() -
SimulatedGPIBDevice
-
-
Method Details
-
getGpibAddress
public int getGpibAddress() -
setGpibAddress
public void setGpibAddress(int address) -
getBoardIndex
public int getBoardIndex() -
setBoardIndex
public void setBoardIndex(int boardIndex) -
write
Simulates sending a GPIB command.- Throws:
IOException
-
read
-
query
Writes a command and reads the response.- Throws:
IOException
-
addCustomReadings
Description copied from class:AbstractSimulatedDeviceSubclasses can override to add custom readings.- Overrides:
addCustomReadingsin classAbstractSimulatedDevice
-