|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cesr.parma.core.PmAbstractParameterReader de.cesr.parma.core.PmParameterManager
public class PmParameterManager
Defines an interface for classes that provide parameter values. Also defines all parameters used throughout the model. See ParametrFramework_Documentation.doc for further information!
Constructor Summary | |
---|---|
PmParameterManager()
|
Method Summary | |
---|---|
static void |
copyParameterValue(PmParameterDefinition source,
PmParameterDefinition target)
Copies the current parameter value of source to the parameter definition target. |
static void |
deregisterReader(PmParameterReader reader)
Register a parameter reader. |
static String |
getFullName(PmParameterDefinition definition)
Returns the full parameter definition name containing the name of the declaring class. |
static Object |
getParameter(PmParameterDefinition parameter)
Get any registered parameter. |
static void |
init()
Let registered PmParameterReader s read parameters. |
static boolean |
isCustomised(PmParameterDefinition definition)
Checks whether the given definition has been set by setParameter(PmParameterDefinition, Object) . |
static void |
logParameterValues()
Logs the current parameter values for parameters that were read into this parameter manager by PmParameterReader s before. |
static void |
logParameterValues(PmParameterDefinition[]... params)
Logs the current parameter values for the parameters defined in the given arrays of type PmParameterDefinition s. |
static void |
registerReader(PmParameterReader reader)
Register a parameter reader. |
static void |
reset()
Set every field to null |
static void |
setDefaultParameterDef(PmParameterDefinition definition,
PmParameterDefinition defaultDefinition)
Registers another parameter definition that is used if there is no value set for the given parameter. |
static void |
setParameter(PmParameterDefinition definition,
Object value)
|
Methods inherited from class de.cesr.parma.core.PmAbstractParameterReader |
---|
deregisterAll, deregisterParameterReader, initParameters, registerParameterReader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PmParameterManager()
Method Detail |
---|
public static Object getParameter(PmParameterDefinition parameter)
parameter
- the PmParameterDefinition
whose value is requested
public static boolean isCustomised(PmParameterDefinition definition)
setParameter(PmParameterDefinition, Object)
.
definition
- the definition to check
public static void setParameter(PmParameterDefinition definition, Object value)
definition
- value
- public static void setDefaultParameterDef(PmParameterDefinition definition, PmParameterDefinition defaultDefinition)
definition
- defaultDefinition
- public static void copyParameterValue(PmParameterDefinition source, PmParameterDefinition target)
source
- target
- public static void init()
PmParameterReader
s read parameters.
public static void registerReader(PmParameterReader reader)
reader
- the reader to registerpublic static void deregisterReader(PmParameterReader reader)
reader
- the reader to registerpublic static void logParameterValues()
PmParameterReader
s before. The logger name is
.
To log all parameter values including the default values for those
that have not been read use #logParameterValues(PmParameterDefinition[]...)
.
public static void logParameterValues(PmParameterDefinition[]... params)
PmParameterDefinition
s. These
can be obtained by (PmParameterDefinition[])PmFrameworkPa.values()
.
The logger name is .
- Parameters:
params
-
public static void reset()
public static String getFullName(PmParameterDefinition definition)
definition
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |