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 Details

    • AutoParallelStepGroup

      public AutoParallelStepGroup()
      Allow empty constructors since groups contain steps anyway.
    • AutoParallelStepGroup

      public AutoParallelStepGroup(String name)
      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:
      initialize in class AutoStep
    • update

      public void update()
      Updates all steps in the group until each is finished. Removes each step as it completes.
      Specified by:
      update in class AutoStep
    • 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.
    • toString

      public String toString()
      Group name is used in conjuction with "Parrallel step group: "
      Specified by:
      toString in class AutoStep
      Returns:
      Name of the group.