com.biocomfort.SDK.actions
Class SynchronizeDateTimeAction
java.lang.Object
com.biocomfort.SDK.actions.SynchronizeDateTimeAction
- All Implemented Interfaces:
- SDKAction
public class SynchronizeDateTimeAction
- extends java.lang.Object
- implements SDKAction
Defines a set date time 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.setDeviceConfigurations(MedicalDeviceTO, int)
Constructor Summary |
SynchronizeDateTimeAction(SDK sdk)
Creates a new SynchronizeDateTimeAction instance and
initialize it with the given SDK instance. |
Method Summary |
boolean |
runForDeviceAndWait(MedicalDeviceTO medicalDevice)
Executes the SDK method
setDeviceConfigurationsAndWait(MedicalDeviceTO,int) to set
the date time of a device. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SynchronizeDateTimeAction
public SynchronizeDateTimeAction(SDK sdk)
- Creates a new
SynchronizeDateTimeAction
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
setDeviceConfigurationsAndWait(MedicalDeviceTO,int)
to set
the date time of a device.
Note 1: This is a synchronous method that will block the
executing thread until it is succdessfully executed or an error occures.
Note 2: This action will send the current date time to the device
and will not consider the delay of the commit itself. Therefore actually
the date time of the device will be set a little bit too late.
- 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.setDeviceConfigurationsAndWait(MedicalDeviceTO,int)