|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.biocomfort.SDK.actions.SequenceAction
public class SequenceAction
Defines a sequence 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.
This action can be used to combine multiple SDKAction
s.
SDK.setBindingAction(SDKAction)
,
SDK.setBindingAction(SDKAction, int)
,
SDK.setUnbindingAction(SDKAction)
,
SDK.setUnbindingAction(SDKAction, int)
,
SequenceAction
,
SDK.getDeviceConfigurations(MedicalDeviceTO, int)
Constructor Summary | |
---|---|
SequenceAction()
Creates a new SequenceAction instance and
initialize it with a empty actions list. |
|
SequenceAction(SDKAction action)
Creates a new SequenceAction instance and
adds the given action to the execution list. |
|
SequenceAction(SDKAction action1,
SDKAction action2)
Creates a new SequenceAction instance and
adds the two given actions to the execution list. |
|
SequenceAction(SDKAction action1,
SDKAction action2,
SDKAction action3)
Creates a new SequenceAction instance and
adds the three given actions to the execution list. |
|
SequenceAction(SDKAction action1,
SDKAction action2,
SDKAction action3,
SDKAction action4)
Creates a new SequenceAction instance and
adds the four given actions to the list. |
Method Summary | |
---|---|
void |
addAction(SDKAction action)
Appends the specified action to the end of the execution list. |
void |
clearActions()
Removes all of the action from the execution list. |
void |
removeAction(SDKAction action)
Removes the first occurrence of the specified action from this list, if it is present. |
boolean |
runForDeviceAndWait(MedicalDeviceTO medicalDevice)
Executes all actions of the execution list in the order they were added. |
java.lang.String |
toString()
Converts this SequenceAction object to a
String of the form:
SequenceAction (action1,action2,...). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SequenceAction()
SequenceAction
instance and
initialize it with a empty actions list.
public SequenceAction(SDKAction action)
SequenceAction
instance and
adds the given action to the execution list.
action
- the sdk action to be appended to the execution listpublic SequenceAction(SDKAction action1, SDKAction action2)
SequenceAction
instance and
adds the two given actions to the execution list.
action1
- the first sdk action to be appended to the execution listaction2
- the second sdk action to be appended to the execution
listpublic SequenceAction(SDKAction action1, SDKAction action2, SDKAction action3)
SequenceAction
instance and
adds the three given actions to the execution list.
action1
- the first sdk action to be appended to the execution listaction2
- the second sdk action to be appended to the execution
listaction3
- the third sdk action to be appended to the execution listpublic SequenceAction(SDKAction action1, SDKAction action2, SDKAction action3, SDKAction action4)
SequenceAction
instance and
adds the four given actions to the list.
action1
- the first sdk action to be appended to the execution listaction2
- the second sdk action to be appended to the execution
listaction3
- the third sdk action to be appended to the execution listaction4
- the fourth sdk action to be appended to the execution listMethod Detail |
---|
public void addAction(SDKAction action)
action
- action to be appended to the execution listpublic void removeAction(SDKAction action)
action
- element to be removed from this list, if presentpublic void clearActions()
public boolean runForDeviceAndWait(MedicalDeviceTO medicalDevice)
runForDeviceAndWait
for all these
actions.
runForDeviceAndWait
in interface SDKAction
medicalDevice
- the medical device with which this actions has to
be executed
true, only if all actions are executed successfully
public java.lang.String toString()
SequenceAction
object to a
String
of the form:
SequenceAction (action1,action2,...).
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |