Package HAL.Tools.Modularity
Class ModuleSetManager<baseModule>
- java.lang.Object
- 
- HAL.Tools.Modularity.ModuleSetManager<baseModule>
 
- 
 public class ModuleSetManager<baseModule> extends java.lang.Objectthe ModuleSetManager class is used to store and use module objects. the type argument is the baseclass module type that the ModuleSetManager will manage
- 
- 
Field SummaryFields Modifier and Type Field Description java.lang.Class<baseModule>baseClassjava.util.ArrayList<java.lang.String>methodNamesjava.util.HashMap<java.lang.String,java.util.ArrayList<baseModule>>moduleListsjava.util.ArrayList<baseModule>modules
 - 
Constructor SummaryConstructors Constructor Description ModuleSetManager(java.lang.Class<baseModule> baseClass)the module base class object should define all of the method hooks that modules can use, the behavior of the base class object will be ignored
 - 
Method SummaryModifier and Type Method Description voidAddModule(baseModule newMod)adds a module to the ModuleSetManager.intCountModsWithMethod(java.lang.String methodName)java.lang.Iterable<baseModule>Iter(java.lang.String methodName)use with foreach loop to iterate over modules that override a given method.
 
- 
- 
- 
Field Detail- 
baseClasspublic java.lang.Class<baseModule> baseClass 
 - 
moduleListspublic java.util.HashMap<java.lang.String,java.util.ArrayList<baseModule>> moduleLists 
 - 
methodNamespublic java.util.ArrayList<java.lang.String> methodNames 
 - 
modulespublic java.util.ArrayList<baseModule> modules 
 
- 
 - 
Constructor Detail- 
ModuleSetManagerpublic ModuleSetManager(java.lang.Class<baseModule> baseClass) the module base class object should define all of the method hooks that modules can use, the behavior of the base class object will be ignored
 
- 
 - 
Method Detail- 
AddModulepublic void AddModule(baseModule newMod) adds a module to the ModuleSetManager. the module should override any functions in the baseClass that the will be used with the model
 - 
Iterpublic java.lang.Iterable<baseModule> Iter(java.lang.String methodName) use with foreach loop to iterate over modules that override a given method. used to run the module functions when appropriate
 - 
CountModsWithMethodpublic int CountModsWithMethod(java.lang.String methodName) 
 
- 
 
-