Class AutoParallelStepGroup
- java.lang.Object
-
- org.wildstang.framework.auto.AutoStep
-
- org.wildstang.framework.auto.steps.AutoParallelStepGroup
-
- Direct Known Subclasses:
AutoParallelFinishedOnAnyStepGroup
public class AutoParallelStepGroup extends AutoStep
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
Constructors Constructor Description AutoParallelStepGroup()
Allow empty constructors since groups contain steps anyway.AutoParallelStepGroup(java.lang.String name)
Constructor takes a name since there may be multiple groups.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStep(AutoStep step)
Add a step to the group if it is not initialized.void
initialize()
Initializes each step in the group.java.lang.String
toString()
Group name is used in conjuction with "Parrallel step group: "void
update()
Updates all steps in the group until each is finished.-
Methods inherited from class org.wildstang.framework.auto.AutoStep
isFinished, setFinished, setFinished
-
-
-
-
Constructor Detail
-
AutoParallelStepGroup
public AutoParallelStepGroup()
Allow empty constructors since groups contain steps anyway.
-
AutoParallelStepGroup
public AutoParallelStepGroup(java.lang.String name)
Constructor takes a name since there may be multiple groups.- Parameters:
name
- Name for the step group.
-
-
Method Detail
-
initialize
public void initialize()
Initializes each step in the group.- Specified by:
initialize
in classAutoStep
-
update
public void update()
Updates all steps in the group until each is finished. Removes each step as it completes.
-
addStep
public void addStep(AutoStep step)
Add a step to the group if it is not initialized.- Parameters:
step
- Step to add to the group.
-
-