public interface ParameterizedDESystem extends DESystem
String
identifiers and double values, i.e., each parameter value being associated with
a unique identifier. Implementing classes provide methods to manipulate the current parameter
configuration of the system.Modifier and Type | Method and Description |
---|---|
int |
getParameterCount()
Gives the number of parameters in the
ParameterizedDESystem . |
String[] |
getParameterIdentifiers()
It is assumed that each parameter value in the system is associated with a unique identifier,
which can be used to address it in numerical calculations.
|
double[] |
getParameterValues()
This method allows you to access all current values of the parameters within the
ParameterizedDESystem in form of a double array. |
void |
setParameters(double[] values)
With this method it is possible to change the values of particular parameters.
|
containsEventsOrRules, getIdentifiers, getPositiveValueCount, setDelaysIncluded
int getParameterCount()
ParameterizedDESystem
. The number returned here
must be identical to the length of the arrays returned by the methods getParameterIdentifiers()
AND getParameterValues()
. Otherwise, the implementation
might show unexpected behavior.getParameterIdentifiers()
,
getParameterValues()
String[] getParameterIdentifiers()
ParameterizedDESystem
.getParameterCount()
,
getParameterValues()
double[] getParameterValues()
ParameterizedDESystem
in form of a double array. The length of the returned array must be
identical with the value returned by DESystem.getPositiveValueCount()
and also with the number
of identifiers given by getParameterIdentifiers()
getParameterCount()
,
getParameterIdentifiers()
void setParameters(double[] values)
getParameterCount()
, but
this does not mean that all parameters have to be changed when calling this method. For
instance, you can obtain the current values of all parameters by calling getParameterValues()
. Within this array you could change some values of interest and
subsequently pass the array to this method.values
- the new values for all parameters.getParameterCount()
Copyright © 2007–2021. All rights reserved.