Class AutoSerialStepGroup
java.lang.Object
org.wildstang.framework.auto.AutoStep
org.wildstang.framework.auto.steps.AutoSerialStepGroup
Serial groups execute all contained steps sequentially.
-
Constructor Summary
ConstructorsConstructorDescriptionAllow empty constructors since groups contain steps anyway.AutoSerialStepGroup(String name) Constructor takes a name since there may be multiple groups. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a step to the group if it is not initialized.Gets the current executing AutoStep.Gets the next AutoStep to execute.voidInitializes each step in the group.toString()Group name is used in conjuction with "Serial step group: "voidupdate()Updates the current step in the group until it is finished.Methods inherited from class org.wildstang.framework.auto.AutoStep
isFinished, setFinished, setFinished
-
Constructor Details
-
AutoSerialStepGroup
public AutoSerialStepGroup()Allow empty constructors since groups contain steps anyway. -
AutoSerialStepGroup
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 the current step in the group until it is finished. Then moves on to the next step. Group is finished when last step is finished. -
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 "Serial step group: " -
getCurrentStep
Gets the current executing AutoStep.- Returns:
- The current AutoStep.
-
getNextStep
Gets the next AutoStep to execute.- Returns:
- The next AutoStep to execute of null if none left.
-