Class ModuleFactory
- java.lang.Object
-
- bio.singa.simulation.model.modules.concentration.ModuleFactory
-
public class ModuleFactory extends Object
Handles module creation with certainUpdateScopeandUpdateSpecificity.- Author:
- cl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classModuleFactory.ScopeThe type ofUpdateScope.static classModuleFactory.SpecificityThe type ofUpdateSpecificity.
-
Constructor Summary
Constructors Constructor Description ModuleFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <ModuleImplementation extends ConcentrationBasedModule>
ModuleImplementationsetupModule(Class<ModuleImplementation> moduleCLass, ModuleFactory.Scope scope, ModuleFactory.Specificity specificity)Creates a new module with the specified setup.
-
-
-
Method Detail
-
setupModule
public static <ModuleImplementation extends ConcentrationBasedModule> ModuleImplementation setupModule(Class<ModuleImplementation> moduleCLass, ModuleFactory.Scope scope, ModuleFactory.Specificity specificity)
Creates a new module with the specified setup.- Type Parameters:
ModuleImplementation- The type of the implementation.- Parameters:
moduleCLass- The implementation of the module.scope- The scope of the module.specificity- The specificity of the module.- Returns:
- The instantiated module.
-
-