Package repast.simphony.parameter.xml
Class ConstantBooleanSetterCreator
- java.lang.Object
-
- repast.simphony.parameter.xml.AbstractParameterSetterCreator
-
- repast.simphony.parameter.xml.ConstantBooleanSetterCreator
-
- All Implemented Interfaces:
ParameterSetterCreator
public class ConstantBooleanSetterCreator extends AbstractParameterSetterCreator
Creates a constant setter for boolean values.- 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 ConstantBooleanSetterCreator()
-
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 attributes added in init.void
init(Attributes attributes)
Initializes this ParameterSetterCreator with the specified attributes.-
Methods inherited from class repast.simphony.parameter.xml.AbstractParameterSetterCreator
init
-
-
-
-
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
-
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 attributes added in init.- Returns:
- a parameter setter from the attributes added in init.
-
-