com.biocomfort.SDK.actions
Class SetClearMemAction
java.lang.Object
com.biocomfort.SDK.actions.SetClearMemAction
- All Implemented Interfaces:
- SDKAction
public class SetClearMemAction
- extends java.lang.Object
- implements SDKAction
Defines a clear memory action that can be used to customize the
devices binding or unbinding process. Use the SDK methods
setBindingAction(SDKAction)
,
setBindingAction(SDKAction,int)
,
setUnbindingAction(SDKAction)
,
setUnbindingAction(SDKAction,int)
to do this.
To execute multiple actions use the
SequenceAction
.
- See Also:
SDK.setBindingAction(SDKAction)
,
SDK.setBindingAction(SDKAction, int)
,
SDK.setUnbindingAction(SDKAction)
,
SDK.setUnbindingAction(SDKAction, int)
,
SequenceAction
,
SDK.setDeviceClearMem(MedicalDeviceTO)
Constructor Summary |
SetClearMemAction(SDK sdk)
Creates a new SetClearMemAction instance and
initialize it with the given SDK instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetClearMemAction
public SetClearMemAction(SDK sdk)
- Creates a new
SetClearMemAction
instance and
initialize it with the given SDK instance.
- Parameters:
sdk
- a started instance of the SDK
runForDeviceAndWait
public boolean runForDeviceAndWait(MedicalDeviceTO medicalDevice)
- Executes the SDK method
setDeviceClearMemAndWait(MedicalDeviceTO)
.
Note: This is a synchronous method that will block the executing
thread until it is succdessfully executed or an error occures.
- Specified by:
runForDeviceAndWait
in interface SDKAction
- Parameters:
medicalDevice
- the medical device with which this actions will
be executed
- Returns:
- returns
true
if the action was executed
successfully. - See Also:
SDK.setDeviceClearMemAndWait(MedicalDeviceTO)