com.biocomfort.SDK.actions
Class GetConfigurationsAction
java.lang.Object
com.biocomfort.SDK.actions.GetConfigurationsAction
- All Implemented Interfaces:
- SDKAction
public class GetConfigurationsAction
- extends java.lang.Object
- implements SDKAction
Defines a get configuration 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.getDeviceConfigurations(MedicalDeviceTO, int)
Constructor Summary |
GetConfigurationsAction(SDK sdk,
int configurations)
Creates a new GetConfigurationsAction instance and
initialize it with the given SDK instance and configurations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetConfigurationsAction
public GetConfigurationsAction(SDK sdk,
int configurations)
- Creates a new
GetConfigurationsAction
instance and
initialize it with the given SDK instance and configurations.
- Parameters:
sdk
- a started instance of the SDKconfigurations
- the configurations to request. Use the constants
SDK.DATETIME
, SDK.SERIAL_NUMBER
,
SDK.FIRMWARE
, SDK.IEEE_MAC_ADDRESS
,
USER_SETTINGS
or combinations with bit-or (|
)
to specify the configurations- See Also:
SDK.getDeviceConfigurations(MedicalDeviceTO, int)
runForDeviceAndWait
public boolean runForDeviceAndWait(MedicalDeviceTO medicalDevice)
- Executes the SDK method
getDeviceConfigurationsAndWait(MedicalDeviceTO,int)
.
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.getDeviceConfigurationsAndWait(MedicalDeviceTO, int)