Class OutputManager


  • public class OutputManager
    extends java.lang.Object
    Contains and updates all Outputs.
    • Constructor Summary

      Constructors 
      Constructor Description
      OutputManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addOutput​(Output p_output)
      Adds an Output to the manager.
      boolean contains​(java.lang.String p_name)
      Determines if the manager has an Output with a given name.
      java.util.HashMap<java.lang.String,​Output> getHashMap()
      Produces a HashMap of all managed Outputs.
      Output getOutput​(java.lang.String p_name)
      Returns a named Output from the manager.
      Output getOutput​(Outputs p_output)
      Returns an Output with a matching name from the manager.
      void init()
      Initializes logger.
      void removeAll()
      Removes all Outputs from the manager.
      void removeOutput​(Output p_output)
      Removes an Output to the manager.
      int size()
      Returns the total size of all managed outputs.
      void update()
      Updates all managed outputs.
      • Methods inherited from class java.lang.Object

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

      • OutputManager

        public OutputManager()
    • Method Detail

      • init

        public void init()
        Initializes logger.
      • update

        public void update()
        Updates all managed outputs.
      • addOutput

        public void addOutput​(Output p_output)
        Adds an Output to the manager.
        Parameters:
        p_output - Output object to add.
      • removeOutput

        public void removeOutput​(Output p_output)
        Removes an Output to the manager.
        Parameters:
        p_output - Output object to remove.
      • getOutput

        public Output getOutput​(Outputs p_output)
        Returns an Output with a matching name from the manager.
        Parameters:
        p_output - Output to fetch from the manager.
        Returns:
        Output belonging to the manager.
      • getOutput

        public Output getOutput​(java.lang.String p_name)
        Returns a named Output from the manager.
        Parameters:
        p_name - Name of the Output to fetch.
        Returns:
        Output belonging to the manager.
      • contains

        public boolean contains​(java.lang.String p_name)
        Determines if the manager has an Output with a given name.
        Parameters:
        p_name - Name of an Output to search for.
        Returns:
        True if an Output exists with p_name.
      • size

        public int size()
        Returns the total size of all managed outputs.
        Returns:
        Size of all managed outputs.
      • removeAll

        public void removeAll()
        Removes all Outputs from the manager.
      • getHashMap

        public java.util.HashMap<java.lang.String,​Output> getHashMap()
        Produces a HashMap of all managed Outputs.
        Returns:
        HashMap of all managed Outputs mapped to their names.