Class InputManager


  • public class InputManager
    extends java.lang.Object
    Contains and updates all Inputs.
    • Constructor Summary

      Constructors 
      Constructor Description
      InputManager()  
    • Method Summary

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

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

      • InputManager

        public InputManager()
    • Method Detail

      • init

        public void init()
        Initializes logger.
      • update

        public void update()
        Updates all managed inputs.
      • addInput

        public void addInput​(Input p_input)
        Adds an Input to the manager.
        Parameters:
        p_input - Input object to add.
      • removeInput

        public void removeInput​(Input p_input)
        Removes an Input to the manager.
        Parameters:
        p_input - Input object to remove.
      • getInput

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

        public Input getInput​(Inputs p_input)
        Returns an Input with a matching name from the manager.
        Parameters:
        p_input - Input to fetch from the manager.
        Returns:
        Input belonging to the manager.
      • contains

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

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

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

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