Class 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 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 java.lang.String toString()
        Group name is used in conjuction with "Parrallel step group: "
        Specified by:
        toString in class AutoStep
        Returns:
        Name of the group.