Class D2A

    • Constructor Detail

      • D2A

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

        public D2A​(DSPortAdapter adapter,
                   java.lang.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 Detail

      • getSelections

        public java.util.Vector<java.lang.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​(java.lang.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'.