Class Switch
java.lang.Object
com.dalsemi.onewire.application.tag.TaggedDevice
com.dalsemi.onewire.application.tag.Switch
- All Implemented Interfaces:
TaggedActuator
This class provides a default object for the Switch 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
ConstructorDescriptionSwitch()
Creates an object for the device.Switch
(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
-
Switch
public Switch()Creates an object for the device. -
Switch
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
- Throws:
OneWireException
-
initActuator
Initializes the actuator- Specified by:
initActuator
in interfaceTaggedActuator
- Throws:
OneWireException
-