Package repast.simphony.parameter.xml
Class ListSetterCreator
- java.lang.Object
-
- repast.simphony.parameter.xml.AbstractParameterSetterCreator
-
- repast.simphony.parameter.xml.ListSetterCreator
-
- All Implemented Interfaces:
ParameterSetterCreator
public class ListSetterCreator extends AbstractParameterSetterCreator
Creator for ListParameterSteppers.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class repast.simphony.parameter.xml.AbstractParameterSetterCreator
AbstractParameterSetterCreator.AttributesValueGetter, AbstractParameterSetterCreator.MapValueGetter, AbstractParameterSetterCreator.ValueGetter
-
-
Field Summary
-
Fields inherited from class repast.simphony.parameter.xml.AbstractParameterSetterCreator
attributes, name
-
-
Constructor Summary
Constructors Constructor Description ListSetterCreator()
-
Method Summary
All Methods Static 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.static void
main(String[] args)
-
-
-
Method Detail
-
addParameter
public void addParameter(ParametersCreator creator)
Adds the parameter to the specified creator based on the attributes added in init.- Parameters:
creator
-
-
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
-
createSetter
public ParameterSetter createSetter()
Creates a parameter setter from the specified attributes- Returns:
- a parameter setter created from the specified attributes
-
main
public static void main(String[] args)
-
-