public interface SimParams extends ParamDefinition
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FILENAME |
Modifier and Type | Method and Description |
---|---|
default <T extends ParamDefinition> |
addDefinition(Class<T> definitionClass)
Adds a
ParamDefinition to this parameters object by instantiating
given class. |
long |
getSeed() |
default boolean |
removeDefinition(ParamDefinition definition)
Removes a
ParamDefinition from this parameters object. |
accessor, getTitle
static final String DEFAULT_FILENAME
long getSeed()
SimParams
object.default <T extends ParamDefinition> T addDefinition(Class<T> definitionClass)
ParamDefinition
to this parameters object by instantiating
given class. Instantiation is handled by the implementing class. Default
behavior is to throw an UnsupportedOperationException
.definitionClass
- the Class
of the ParamDefinition
to be addedParamDefinition
objectUnsupportedOperationException
- if no definitions can be added to this nodeIllegalArgumentException
- if some property of the definition prevents it from being
addeddefault boolean removeDefinition(ParamDefinition definition)
ParamDefinition
from this parameters object. Default
behavior is to do nothing and return false
.definition
- true
if removal succeeded