Package org.wildstang.framework.io
Class InputManager
java.lang.Object
org.wildstang.framework.io.InputManager
Contains and updates all Inputs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an Input to the manager.booleanDetermines if the manager has an Input with a given name.Produces a HashMap of all managed Inputs.Returns a named Input from the manager.Returns an Input with a matching name from the manager.voidinit()Initializes logger.voidRemoves all Inputs from the manager.voidremoveInput(Input p_input) Removes an Input to the manager.intsize()Returns the total size of all managed inputs.voidupdate()Updates all managed inputs.
-
Constructor Details
-
InputManager
public InputManager()
-
-
Method Details
-
init
public void init()Initializes logger. -
update
public void update()Updates all managed inputs. -
addInput
Adds an Input to the manager.- Parameters:
p_input- Input object to add.
-
removeInput
Removes an Input to the manager.- Parameters:
p_input- Input object to remove.
-
getInput
Returns a named Input from the manager.- Parameters:
p_name- Name of the Input to fetch.- Returns:
- Input belonging to the manager.
-
getInput
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
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
Produces a HashMap of all managed Inputs.- Returns:
- HashMap of all managed Inputs mapped to their names.
-