java.lang.Object | +--com.dalsemi.onewire.application.tag.TaggedDevice | +--com.dalsemi.onewire.application.tag.Switch
This class provides a default object for the Switch type of a tagged 1-Wire device.
Fields inherited from class com.dalsemi.onewire.application.tag.TaggedDevice |
branchVector, channel, clusterName, DeviceContainer, DeviceType, init, label, max, min, state |
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. |
Method Summary | |
Vector |
getSelections()
Get the possible selection states of this actuator |
void |
initActuator()
Initializes the actuator |
void |
setSelection(String selection)
Set the selection of this actuator |
Methods 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 |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Switch()
public Switch(DSPortAdapter adapter, String netAddress)
adapter
- The adapter serving the actuator.netAddress
- The 1-Wire network address of the actuator.Method Detail |
public Vector getSelections()
getSelections
in interface TaggedActuator
public void setSelection(String selection) throws OneWireException
setSelection
in interface TaggedActuator
The
- selection string.OneWireException
- public void initActuator() throws OneWireException
initActuator
in interface TaggedActuator
Init
- The initialization string.OneWireException
-