com.dalsemi.onewire.application.tag
Class Switch
java.lang.Object
|
+--com.dalsemi.onewire.application.tag.TaggedDevice
|
+--com.dalsemi.onewire.application.tag.Switch
- All Implemented Interfaces:
- TaggedActuator
- public class Switch
- extends TaggedDevice
- implements TaggedActuator
This class provides a default object for the Switch type of a tagged 1-Wire device.
|
Constructor Summary |
Switch()
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. |
| Methods inherited from class com.dalsemi.onewire.application.tag.TaggedDevice |
getBranches, getChannel, getChannelAsString, getClusterName, getDeviceContainer, getDeviceType, getInit, getLabel, getMax, getMin, getOWPath, setBranches, setChannel, setChannelFromString, setClusterName, setDeviceContainer, setDeviceType, setInit, setLabel, setOWPath, setOWPath |
Switch
public Switch()
- Creates an object for the device.
Switch
public Switch(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.
getSelections
public Vector 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:
The - selection string.- Throws:
OneWireException -
initActuator
public void initActuator()
throws OneWireException
- Initializes the actuator
- Specified by:
initActuator in interface TaggedActuator
- Parameters:
Init - The initialization string.- Throws:
OneWireException -