Package repast.simphony.parameter.xml
Class NumberSetterCreator
- java.lang.Object
-
- repast.simphony.parameter.xml.AbstractParameterSetterCreator
-
- repast.simphony.parameter.xml.AbstractNumberSetterCreator
-
- repast.simphony.parameter.xml.NumberSetterCreator
-
- All Implemented Interfaces:
ParameterSetterCreator
public class NumberSetterCreator extends AbstractNumberSetterCreator
Creator for numeric stepped parameter setters.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class repast.simphony.parameter.xml.AbstractNumberSetterCreator
AbstractNumberSetterCreator.Type
-
Nested classes/interfaces inherited from class repast.simphony.parameter.xml.AbstractParameterSetterCreator
AbstractParameterSetterCreator.AttributesValueGetter, AbstractParameterSetterCreator.MapValueGetter, AbstractParameterSetterCreator.ValueGetter
-
-
Field Summary
Fields Modifier and Type Field Description static String
END
static String
NUMBERTYPE
static String
START
static String
STEP
-
Fields inherited from class repast.simphony.parameter.xml.AbstractNumberSetterCreator
type
-
Fields inherited from class repast.simphony.parameter.xml.AbstractParameterSetterCreator
attributes, name
-
-
Constructor Summary
Constructors Constructor Description NumberSetterCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(ParametersCreator creator)
Adds the parameter to the specified creator based on the attributes added in init.ParameterSetter
createSetter()
Creates a parameter setter from the specified attributesvoid
init(Map<String,String> attributes)
Initializes this ParameterSetterCreator with the specified attributes.void
init(Attributes attributes)
Initializes this ParameterSetterCreator with the specified attributes.
-
-
-
Field Detail
-
START
public static final String START
- See Also:
- Constant Field Values
-
END
public static final String END
- See Also:
- Constant Field Values
-
STEP
public static final String STEP
- See Also:
- Constant Field Values
-
NUMBERTYPE
public static final String NUMBERTYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(Attributes attributes) throws ParameterFormatException
Initializes this ParameterSetterCreator with the specified attributes. Any following calls to addParameter or createSetter will use this attributes.- Specified by:
init
in interfaceParameterSetterCreator
- Overrides:
init
in classAbstractParameterSetterCreator
- Parameters:
attributes
-- Throws:
ParameterFormatException
-
init
public void init(Map<String,String> attributes) throws ParameterFormatException
Initializes this ParameterSetterCreator with the specified attributes. Any following calls to addParameter or createSetter will use this attributes.- Overrides:
init
in classAbstractParameterSetterCreator
- Parameters:
attributes
-- Throws:
ParameterFormatException
-
addParameter
public void addParameter(ParametersCreator creator)
Adds the parameter to the specified creator based on the attributes added in init.- Parameters:
creator
-
-
createSetter
public ParameterSetter createSetter()
Creates a parameter setter from the specified attributes- Returns:
- a parameter setter created from the specified attributes
-
-