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
ConstructorDescriptionD2A()
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
-
initActuator
Initializes the actuator- Specified by:
initActuator
in interfaceTaggedActuator
- Throws:
OneWireException
-