All Implemented Interfaces:
TaggedActuator

public class D2A extends TaggedDevice implements TaggedActuator
This class provides a default object for the D2A type of a tagged 1-Wire device.
  • Constructor Details

    • D2A

      public D2A()
      Creates an object for the device.
    • D2A

      public D2A(DSPortAdapter adapter, String netAddress)
      Creates an object for the device with the supplied address connected to the supplied port adapter.
      Parameters:
      adapter - The adapter serving the actuator.
      netAddress - The 1-Wire network address of the actuator.
  • Method Details

    • getSelections

      public Vector<String> getSelections()
      Get the possible selection states of this actuator
      Specified by:
      getSelections in interface TaggedActuator
      Returns:
      Vector of Strings representing selection states.
    • setSelection

      public void setSelection(String selection) throws OneWireException
      Set the selection of this actuator
      Specified by:
      setSelection in interface TaggedActuator
      Parameters:
      selection - The selection string.
      Throws:
      OneWireException
      OneWireIOException - on a 1-Wire communication error such as reading an incorrect CRC from a 1-Wire device. This could be caused by a physical interruption in the 1-Wire Network due to shorts or a newly arriving 1-Wire device issuing a 'presence pulse'.
    • initActuator

      public void initActuator() throws OneWireException
      Initializes the actuator
      Specified by:
      initActuator in interface TaggedActuator
      Throws:
      OneWireException
      OneWireIOException - on a 1-Wire communication error such as reading an incorrect CRC from a 1-Wire device. This could be caused by a physical interruption in the 1-Wire Network due to shorts or a newly arriving 1-Wire device issuing a 'presence pulse'.