Package org.hyperonline.hyperlib.auto
Class AutonomousStrategy.Builder
- java.lang.Object
-
- org.hyperonline.hyperlib.auto.AutonomousStrategy.Builder
-
- Enclosing class:
- AutonomousStrategy
public static class AutonomousStrategy.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutonomousStrategy.Builder
addDefault(AutonomousRoutine rtn)
AutonomousStrategy.Builder
addScenario(java.lang.String input, AutonomousRoutine rtn)
AutonomousStrategy
build()
-
-
-
Method Detail
-
addScenario
public AutonomousStrategy.Builder addScenario(java.lang.String input, AutonomousRoutine rtn)
- Parameters:
input
- value of the scenario to matchrtn
- routine to be run in this scenario- Returns:
- {Builder}
-
addDefault
public AutonomousStrategy.Builder addDefault(AutonomousRoutine rtn)
- Parameters:
rtn
- routine to set as the default for this AutonomousStrategy- Returns:
- {Builder}
-
build
public AutonomousStrategy build()
- Returns:
- {AutonomousStrategy}
-
-