Class SendableBase

    • Constructor Detail

      • SendableBase

        public SendableBase()
        Creates an instance of the sensor base.
      • SendableBase

        public SendableBase​(boolean addLiveWindow)
        Creates an instance of the sensor base.
        Parameters:
        addLiveWindow - if true, add this Sendable to LiveWindow
    • Method Detail

      • getName

        public final String getName()
        Description copied from interface: Sendable
        Gets the name of this Sendable object.
        Specified by:
        getName in interface Sendable
        Returns:
        Name
      • setName

        public final void setName​(String name)
        Description copied from interface: Sendable
        Sets the name of this Sendable object.
        Specified by:
        setName in interface Sendable
        Parameters:
        name - name
      • setName

        protected final void setName​(String moduleType,
                                     int channel)
        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

        protected final void setName​(String moduleType,
                                     int moduleNumber,
                                     int channel)
        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

        public final String getSubsystem()
        Description copied from interface: Sendable
        Gets the subsystem name of this Sendable object.
        Specified by:
        getSubsystem in interface Sendable
        Returns:
        Subsystem name
      • setSubsystem

        public final void setSubsystem​(String subsystem)
        Description copied from interface: Sendable
        Sets the subsystem name of this Sendable object.
        Specified by:
        setSubsystem in interface Sendable
        Parameters:
        subsystem - subsystem name
      • addChild

        protected final void addChild​(Object child)
        Add a child component.
        Parameters:
        child - child component