Package edu.wpi.first.wpilibj
Interface Sendable
-
- All Known Subinterfaces:
LiveWindowSendable,NamedSendable
- All Known Implementing Classes:
ADXL345_I2C,ADXL345_SPI,ADXL362,ADXRS450_Gyro,AnalogAccelerometer,AnalogGyro,AnalogInput,AnalogOutput,AnalogPotentiometer,AnalogTrigger,AnalogTriggerOutput,BuiltInAccelerometer,Button,Command,CommandGroup,Compressor,ConditionalCommand,Counter,DifferentialDrive,DigitalGlitchFilter,DigitalInput,DigitalOutput,DigitalSource,DMC60,DoubleSolenoid,Encoder,GearTooth,GyroBase,InstantCommand,InternalButton,InterruptableSensorBase,Jaguar,JoystickButton,KilloughDrive,MecanumDrive,NetworkButton,NidecBrushless,PIDBase,PIDCommand,PIDController,PIDSubsystem,POVButton,PowerDistributionPanel,PrintCommand,PWM,PWMSpeedController,PWMTalonSRX,PWMVictorSPX,Relay,RobotDriveBase,Scheduler,SD540,SendableBase,SendableCameraWrapper,SendableChooser,SendableImpl,Servo,Solenoid,SolenoidBase,Spark,SpeedControllerGroup,StartCommand,Subsystem,Talon,TimedCommand,Trigger,Ultrasonic,Victor,VictorSP,WaitCommand,WaitForChildren,WaitUntilCommand
public interface SendableThe base interface for objects that can be sent over the network through network tables.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetName()Gets the name of thisSendableobject.StringgetSubsystem()Gets the subsystem name of thisSendableobject.voidinitSendable(SendableBuilder builder)Initializes thisSendableobject.voidsetName(String name)Sets the name of thisSendableobject.default voidsetName(String subsystem, String name)Sets both the subsystem name and device name of thisSendableobject.voidsetSubsystem(String subsystem)Sets the subsystem name of thisSendableobject.
-
-
-
Method Detail
-
setName
default void setName(String subsystem, String name)
Sets both the subsystem name and device name of thisSendableobject.- Parameters:
subsystem- subsystem namename- device name
-
getSubsystem
String getSubsystem()
Gets the subsystem name of thisSendableobject.- Returns:
- Subsystem name
-
setSubsystem
void setSubsystem(String subsystem)
Sets the subsystem name of thisSendableobject.- Parameters:
subsystem- subsystem name
-
initSendable
void initSendable(SendableBuilder builder)
Initializes thisSendableobject.- Parameters:
builder- sendable builder
-
-