Package org.wildstang.framework.io
Class OutputManager
- java.lang.Object
-
- org.wildstang.framework.io.OutputManager
-
public class OutputManager extends java.lang.ObjectContains and updates all Outputs.
-
-
Constructor Summary
Constructors Constructor Description OutputManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOutput(Output p_output)Adds an Output to the manager.booleancontains(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.OutputgetOutput(java.lang.String p_name)Returns a named Output from the manager.OutputgetOutput(Outputs p_output)Returns an Output with a matching name from the manager.voidinit()Initializes logger.voidremoveAll()Removes all Outputs from the manager.voidremoveOutput(Output p_output)Removes an Output to the manager.intsize()Returns the total size of all managed outputs.voidupdate()Updates all managed outputs.
-
-
-
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.
-
-