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, Field2d, 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 Sendable
The base interface for objects that can be sent over the network through network tables.
  • Method Summary

    Modifier and Type Method Description
    default void addChild​(Object child)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use SendableRegistry.addChild()
    default String getName()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use SendableRegistry.getName()
    default String getSubsystem()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use SendableRegistry.getSubsystem()
    void initSendable​(SendableBuilder builder)
    Initializes this Sendable object.
    default void setName​(String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use SendableRegistry.setName()
    default void setName​(String moduleType, int channel)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use SendableRegistry.setName()
    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()
    default void setName​(String subsystem, String name)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use SendableRegistry.setName()
    default void setSubsystem​(String subsystem)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use SendableRegistry.setSubsystem()
  • Method Details

    • 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 this Sendable object.
      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 this Sendable object.
      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 this Sendable object.
      Parameters:
      subsystem - subsystem name
      name - 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 value
      channel - 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 value
      moduleNumber - The number of the particular module type
      channel - 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 this Sendable object.
      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 this Sendable object.
      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 this Sendable object.
      Parameters:
      builder - sendable builder