ParamManager Class Reference
[Parameters]

this class manages all the parameters of a simulation More...

#include <parmanager.h>

List of all members.

Public Member Functions

void addParameter (string Class, GenericParameter *aPar) throw (ParamManagerException)
 add a new parameter
void addClass (string aClass, string aComment)
 add a new group of parameters (a class)
void addInstance (string aClass, string aInstance, string aComment) throw (ParamManagerException)
 add an instance of a class
void setDefault (string aName, string aValue) throw (ParamManagerException)
 set or overrides the default value for a parameter


Detailed Description

this class manages all the parameters of a simulation

NePSing provides an instance of this class to each simlation. It is automatically generated and passed to the base class contructor (i.e., the sublass of DESystem).

This class is responsible for storing all the parameters, reading them from the parameter file and write the paramter file itself.


Member Function Documentation

void ParamManager::addClass string  aClass,
string  aComment
 

add a new group of parameters (a class)

Parameters:
aClass the name of the class. Spaces not allowed
aComment the class description. Free text

void ParamManager::addInstance string  aClass,
string  aInstance,
string  aComment
throw (ParamManagerException)
 

add an instance of a class

Parameters:
aClass the class this instance belongs to
aInstance the name of the instance. Spaces not allowed
aComment the instance description. Free text

void ParamManager::addParameter string  Class,
GenericParameter aPar
throw (ParamManagerException)
 

add a new parameter

Parameters:
Class the class of the parameter
aPar a pointer to the parameter

void ParamManager::setDefault string  aName,
string  aValue
throw (ParamManagerException)
 

set or overrides the default value for a parameter

Parameters:
aName the name of the parameter
aValue the (new) default value of the parameter


The documentation for this class was generated from the following file:
Generated on Wed Dec 22 23:23:49 2004 for NePSing by doxygen 1.3.9.1 ---- Hosted by SourceForge.net Logo