public interface OpModeManager
AnnotatedOpModeManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_OP_MODE_NAME
DEFAULT_OP_MODE_NAME is the (non-localized) name of the default opmode, the one that
automatically runs whenever no user opmode is running.
|
Modifier and Type | Method and Description |
---|---|
void |
register(OpModeMeta name,
java.lang.Class<? extends OpMode> opModeClass)
Registers a class for display on the driver station and availability for game play.
|
void |
register(OpModeMeta name,
OpMode opModeInstance)
Register an *instance* of a class for display on the driver station and availability
for game play.
|
void |
register(java.lang.String name,
java.lang.Class<? extends OpMode> opModeClass)
Registers a class for display on the driver station and availability for game play.
|
void |
register(java.lang.String name,
OpMode opModeInstance)
Register an *instance* of a class for display on the driver station and availability
for game play.
|
static final java.lang.String DEFAULT_OP_MODE_NAME
void register(java.lang.String name, java.lang.Class<? extends OpMode> opModeClass)
name
- the name to show on the driver station menuopModeClass
- the class of the OpMode to createvoid register(OpModeMeta name, java.lang.Class<? extends OpMode> opModeClass)
name
- metadata regarding the class, including the name to show on the DS menuopModeClass
- the class of the OpMode to createvoid register(java.lang.String name, OpMode opModeInstance)
name
- the name to show on the driver station menuopModeInstance
- the object instance to use for that menu itemvoid register(OpModeMeta name, OpMode opModeInstance)
name
- metadata regarding the opmode, including the name to show on the driver station menuopModeInstance
- the object instance to use for that menu item