Class SendableChooserSim
java.lang.Object
org.wpilib.simulation.SendableChooserSim
- All Implemented Interfaces:
AutoCloseable
Class that facilitates control of a SendableChooser's selected option in simulation.
-
Constructor Summary
ConstructorsConstructorDescriptionSendableChooserSim(String path) Constructs a SendableChooserSim.SendableChooserSim(NetworkTableInstance inst, String path) Constructs a SendableChooserSim. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidsetSelected(String option) Set the selected option.
-
Constructor Details
-
SendableChooserSim
Constructs a SendableChooserSim.- Parameters:
path- The path where the SendableChooser is published.
-
SendableChooserSim
Constructs a SendableChooserSim.- Parameters:
inst- The NetworkTables instance.path- The path where the SendableChooser is published.
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable
-
setSelected
-