Package repast.simphony.parameter
Class ParameterTypeFactory
- java.lang.Object
-
- repast.simphony.parameter.ParameterTypeFactory
-
public class ParameterTypeFactory extends Object
Factory for ParameterTypes.- Author:
- Nick Collier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <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 Detail
-
instance
public static ParameterTypeFactory instance()
-
getParameterType
public <T> ParameterType<T> getParameterType(Class<T> clazz)
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
public <T> void addParameterType(Class<T> clazz, ParameterType<T> type)
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
-
-