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 Sendable
The 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 String
getName()
Gets the name of thisSendable
object.String
getSubsystem()
Gets the subsystem name of thisSendable
object.void
initSendable(SendableBuilder builder)
Initializes thisSendable
object.void
setName(String name)
Sets the name of thisSendable
object.default void
setName(String subsystem, String name)
Sets both the subsystem name and device name of thisSendable
object.void
setSubsystem(String subsystem)
Sets the subsystem name of thisSendable
object.
-
-
-
Method Detail
-
setName
default void setName(String subsystem, String name)
Sets both the subsystem name and device name of thisSendable
object.- Parameters:
subsystem
- subsystem namename
- device name
-
getSubsystem
String getSubsystem()
Gets the subsystem name of thisSendable
object.- Returns:
- Subsystem name
-
setSubsystem
void setSubsystem(String subsystem)
Sets the subsystem name of thisSendable
object.- Parameters:
subsystem
- subsystem name
-
initSendable
void initSendable(SendableBuilder builder)
Initializes thisSendable
object.- Parameters:
builder
- sendable builder
-
-