Class D2A
java.lang.Object
com.dalsemi.onewire.application.tag.TaggedDevice
com.dalsemi.onewire.application.tag.D2A
- All Implemented Interfaces:
TaggedActuator
This class provides a default object for the D2A type of a tagged 1-Wire
device.
-
Field Summary
Fields inherited from class com.dalsemi.onewire.application.tag.TaggedDevice
branchVector, channel, clusterName, DeviceContainer, DeviceType, init, label, max, min, state
-
Constructor Summary
ConstructorsConstructorDescriptionD2A()
Creates an object for the device.D2A
(DSPortAdapter adapter, String netAddress) Creates an object for the device with the supplied address connected to the supplied port adapter. -
Method Summary
Modifier and TypeMethodDescriptionGet the possible selection states of this actuatorvoid
Initializes the actuatorvoid
setSelection
(String selection) Set the selection of this actuatorMethods inherited from class com.dalsemi.onewire.application.tag.TaggedDevice
equals, getBranches, getChannel, getChannelAsString, getClusterName, getDeviceContainer, getDeviceType, getInit, getLabel, getMax, getMin, getOWPath, hashCode, setBranches, setChannel, setChannelFromString, setClusterName, setDeviceContainer, setDeviceType, setInit, setLabel, setOWPath, setOWPath, toString
-
Constructor Details
-
D2A
public D2A()Creates an object for the device. -
D2A
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
Get the possible selection states of this actuator- Specified by:
getSelections
in interfaceTaggedActuator
- Returns:
- Vector of Strings representing selection states.
-
setSelection
Set the selection of this actuator- Specified by:
setSelection
in interfaceTaggedActuator
- 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
Initializes the actuator- Specified by:
initActuator
in interfaceTaggedActuator
- 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'.
-