Package edu.wpi.first.wpilibj
Interface Sendable
-
- All Known Implementing Classes:
ADXL345_I2C,ADXL345_SPI,ADXL362,ADXRS450_Gyro,AnalogAccelerometer,AnalogEncoder,AnalogGyro,AnalogInput,AnalogOutput,AnalogPotentiometer,AnalogTrigger,AnalogTriggerOutput,BuiltInAccelerometer,Button,Command,CommandBase,CommandGroup,CommandGroupBase,CommandScheduler,Compressor,ConditionalCommand,ConditionalCommand,Counter,DifferentialDrive,DigitalGlitchFilter,DigitalInput,DigitalOutput,DMC60,DoubleSolenoid,DutyCycle,DutyCycleEncoder,Encoder,FunctionalCommand,GearTooth,GyroBase,InstantCommand,InstantCommand,InternalButton,Jaguar,JoystickButton,KilloughDrive,MecanumControllerCommand,MecanumDrive,NetworkButton,NidecBrushless,NotifierCommand,ParallelCommandGroup,ParallelDeadlineGroup,ParallelRaceGroup,PerpetualCommand,PIDBase,PIDCommand,PIDCommand,PIDController,PIDController,PIDSubsystem,PIDSubsystem,POVButton,PowerDistributionPanel,PrintCommand,PrintCommand,ProfiledPIDCommand,ProfiledPIDController,ProfiledPIDSubsystem,ProxyScheduleCommand,PWM,PWMSparkMax,PWMSpeedController,PWMTalonFX,PWMTalonSRX,PWMVenom,PWMVictorSPX,RamseteCommand,Relay,RunCommand,ScheduleCommand,Scheduler,SD540,SelectCommand,SendableBase,SendableCameraWrapper,SendableChooser,SequentialCommandGroup,Servo,Solenoid,Spark,SpeedControllerGroup,StartCommand,StartEndCommand,Subsystem,SubsystemBase,SwerveControllerCommand,Talon,TimedCommand,TrapezoidProfileCommand,TrapezoidProfileSubsystem,Trigger,Ultrasonic,Victor,VictorSP,WaitCommand,WaitCommand,WaitForChildren,WaitUntilCommand,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 Deprecated Methods Modifier and Type Method Description default voidaddChild(Object child)Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.addChild()default StringgetName()Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.getName()default StringgetSubsystem()Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.getSubsystem()voidinitSendable(SendableBuilder builder)Initializes thisSendableobject.default voidsetName(String name)Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.setName()default voidsetName(String moduleType, int channel)Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.setName()default voidsetName(String moduleType, int moduleNumber, int channel)Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.setName()default voidsetName(String subsystem, String name)Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.setName()default voidsetSubsystem(String subsystem)Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.setSubsystem()
-
-
-
Method Detail
-
getName
@Deprecated(since="2020", forRemoval=true) default String getName()
Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.getName()Gets the name of thisSendableobject.- Returns:
- Name
-
setName
@Deprecated(since="2020", forRemoval=true) default void setName(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.setName()Sets the name of thisSendableobject.- Parameters:
name- name
-
setName
@Deprecated(since="2020", forRemoval=true) default void setName(String subsystem, String name)
Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.setName()Sets both the subsystem name and device name of thisSendableobject.- Parameters:
subsystem- subsystem namename- device name
-
setName
@Deprecated(since="2020", forRemoval=true) default void setName(String moduleType, int channel)
Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.setName()Sets the name of the sensor with a channel number.- Parameters:
moduleType- A string that defines the module name in the label for the valuechannel- The channel number the device is plugged into
-
setName
@Deprecated(since="2020", forRemoval=true) default void setName(String moduleType, int moduleNumber, int channel)
Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.setName()Sets the name of the sensor with a module and channel number.- Parameters:
moduleType- A string that defines the module name in the label for the valuemoduleNumber- The number of the particular module typechannel- The channel number the device is plugged into (usually PWM)
-
getSubsystem
@Deprecated(since="2020", forRemoval=true) default String getSubsystem()
Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.getSubsystem()Gets the subsystem name of thisSendableobject.- Returns:
- Subsystem name
-
setSubsystem
@Deprecated(since="2020", forRemoval=true) default void setSubsystem(String subsystem)
Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.setSubsystem()Sets the subsystem name of thisSendableobject.- Parameters:
subsystem- subsystem name
-
addChild
@Deprecated(since="2020", forRemoval=true) default void addChild(Object child)
Deprecated, for removal: This API element is subject to removal in a future version.Use SendableRegistry.addChild()Add a child component.- Parameters:
child- child component
-
initSendable
void initSendable(SendableBuilder builder)
Initializes thisSendableobject.- Parameters:
builder- sendable builder
-
-