Class AutoParallelStepGroup
java.lang.Object
org.wildstang.framework.auto.AutoStep
org.wildstang.framework.auto.steps.AutoParallelStepGroup
- Direct Known Subclasses:
AutoParallelFinishedOnAnyStepGroup
Parallel groups execute all contained steps in the same frame. Be careful!
Note: a finished step is immediately removed from the list. update() is
not called on any step that finishes.
-
Constructor Summary
ConstructorsConstructorDescriptionAllow empty constructors since groups contain steps anyway.AutoParallelStepGroup(String name) Constructor takes a name since there may be multiple groups. -
Method Summary
Methods inherited from class org.wildstang.framework.auto.AutoStep
isFinished, setFinished, setFinished
-
Constructor Details
-
AutoParallelStepGroup
public AutoParallelStepGroup()Allow empty constructors since groups contain steps anyway. -
AutoParallelStepGroup
Constructor takes a name since there may be multiple groups.- Parameters:
name- Name for the step group.
-
-
Method Details
-
initialize
public void initialize()Initializes each step in the group.- Specified by:
initializein classAutoStep
-
update
public void update()Updates all steps in the group until each is finished. Removes each step as it completes. -
addStep
Add a step to the group if it is not initialized.- Parameters:
step- Step to add to the group.
-
toString
Group name is used in conjuction with "Parrallel step group: "
-