Class OutputManager

java.lang.Object
org.wildstang.framework.io.OutputManager

public class OutputManager extends Object
Contains and updates all Outputs.
  • Constructor Details

    • OutputManager

      public OutputManager()
  • Method Details

    • 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(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(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 HashMap<String,Output> getHashMap()
      Produces a HashMap of all managed Outputs.
      Returns:
      HashMap of all managed Outputs mapped to their names.