Class SubsystemBase

    • Constructor Detail

      • SubsystemBase

        public SubsystemBase()
        Constructor.
    • Method Detail

      • getName

        public String getName()
        Gets the name of this Subsystem.
        Specified by:
        getName in interface Sendable
        Returns:
        Name
      • setName

        public void setName​(String name)
        Sets the name of this Subsystem.
        Specified by:
        setName in interface Sendable
        Parameters:
        name - name
      • getSubsystem

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

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

        public void addChild​(String name,
                             Sendable child)
        Associates a Sendable with this Subsystem. Also update the child's name.
        Parameters:
        name - name to give child
        child - sendable