Class SimulatedDeviceSupport

java.lang.Object
org.episteme.core.device.sim.SimulatedDeviceSupport

public class SimulatedDeviceSupport extends Object
Helper class to provide common logic for simulated devices. This avoids code duplication between SimulatedDevice, SimulatedSensor, and SimulatedActuator.
Since:
1.2
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • SimulatedDeviceSupport

      public SimulatedDeviceSupport(AbstractDevice owner)
  • Method Details

    • connect

      public void connect() throws IOException
      Throws:
      IOException
    • disconnect

      public void disconnect() throws IOException
      Throws:
      IOException
    • isConnected

      public boolean isConnected()
    • getDriverClass

      public String getDriverClass()
    • setDriverClass

      public void setDriverClass(String driverClass)
    • isPowerOn

      public boolean isPowerOn()
    • setPowerOn

      public void setPowerOn(boolean powerOn)
    • getErrorCode

      public int getErrorCode()
    • setErrorCode

      public void setErrorCode(int errorCode)
    • getUptimeSeconds

      public long getUptimeSeconds()
    • getCapabilities

      public Map<String,Boolean> getCapabilities()
    • setCapability

      public void setCapability(String name, boolean enabled)
    • getStatus

      public String getStatus()
    • getFormattedInfo

      public String getFormattedInfo()
    • getReadings

      public Map<String,String> getReadings()