Class SubsystemManager


  • public class SubsystemManager
    extends java.lang.Object
    This class in the manager for all outputs.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addSubsystem​(Subsystem p_subsystem)
      Registers a given subsystem with the manager.
      Subsystem getSubsystem​(java.lang.String p_name)
      Gets a given subsystem by name from the manager.
      Subsystem getSubsystem​(Subsystems desiredSubsystem)
      Gets a given subsystem from the manager.
      java.util.List<Subsystem> getSubsystems()
      Gets the liset of registered subsystems.
      void init()
      Initialize all subsystems registered with the manager.
      void removeAll()
      Deregisters all subsystems from the manager.
      void removeSubsystem​(Subsystem p_subsystem)
      Deregisters a given subsystem from the manager.
      void resetState()
      Resets states of all subsystems registered with the manager.
      void selfTestAll()
      Tests all subsystems registered with the manager.
      int size()
      Gets the size of all subsystems registered with the manager.
      void update()
      Updates all subsystems registered with the manager.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubsystemManager

        public SubsystemManager()
    • Method Detail

      • init

        public void init()
        Initialize all subsystems registered with the manager.
      • update

        public void update()
        Updates all subsystems registered with the manager.
      • resetState

        public void resetState()
        Resets states of all subsystems registered with the manager.
      • addSubsystem

        public void addSubsystem​(Subsystem p_subsystem)
        Registers a given subsystem with the manager.
        Parameters:
        p_subsystem - Subsystem to register.
      • removeSubsystem

        public void removeSubsystem​(Subsystem p_subsystem)
        Deregisters a given subsystem from the manager.
        Parameters:
        p_subsystem - Subsystem to deregister.
      • getSubsystem

        public Subsystem getSubsystem​(java.lang.String p_name)
        Gets a given subsystem by name from the manager.
        Parameters:
        p_name - Name of subsystem to get.
        Returns:
        The registered system requested.
      • getSubsystem

        public Subsystem getSubsystem​(Subsystems desiredSubsystem)
        Gets a given subsystem from the manager.
        Parameters:
        desiredSubsystem - Subsystem to get.
        Returns:
        The registered system requested.
      • getSubsystems

        public java.util.List<Subsystem> getSubsystems()
        Gets the liset of registered subsystems.
        Returns:
        List of registered subsystems.
      • selfTestAll

        public void selfTestAll()
        Tests all subsystems registered with the manager.
      • removeAll

        public void removeAll()
        Deregisters all subsystems from the manager.
      • size

        public int size()
        Gets the size of all subsystems registered with the manager.
        Returns:
        Size of subsystems array.