Package repast.simphony.parameter
Class ParameterTypeFactory
java.lang.Object
repast.simphony.parameter.ParameterTypeFactory
Factory for ParameterTypes.
- Author:
- Nick Collier
-
Method Summary
Modifier and TypeMethodDescription<T> void
addParameterType
(Class<T> clazz, ParameterType<T> type) Adds a ParameterType for the specified class.<T> ParameterType<T>
getParameterType
(Class<T> clazz) Gets a ParameterType for the specified class.static ParameterTypeFactory
instance()
-
Method Details
-
instance
-
getParameterType
Gets a ParameterType for the specified class.- Type Parameters:
T
- the type of the class- Parameters:
clazz
- the class to get the type for- Returns:
- the ParameterType.
-
addParameterType
Adds a ParameterType for the specified class.- Type Parameters:
T
- the class type- Parameters:
clazz
- the class to add the type fortype
- the type to add
-