Difference between revisions of "Parameter Concept"

From SIMA wiki
Jump to: navigation, search
(Created page with "To adjust the personality of the arsin we use personality parameter == Personality Parameter Files== It is possible to parameterize arsin using configuration files. The defa...")
 
Line 3: Line 3:
 
It is possible to parameterize arsin using configuration files.  
 
It is possible to parameterize arsin using configuration files.  
  
The default configuration and a description of these parameters is stored in sim/config/personality _parameter/default.properties. To change the default configuration you can overwrite the default properties by an individual personality property file for each arsin. To do so overwrite the descision unit parameter to the name of the new property file
+
The default configuration and a description of these parameters is stored in  
 +
 
 +
sim/config/personality _parameter/default.properties.  
 +
 
 +
To change the default configuration you can overwrite the default properties by an individual personality property file for each arsin. To do so overwrite the descision unit parameter to the name of the new property file
  
 
entitygroups.0.overwritedecisionunitdefaults.processor.psychicapparatus.personality.parameter.file=<file_name>
 
entitygroups.0.overwritedecisionunitdefaults.processor.psychicapparatus.personality.parameter.file=<file_name>
Line 25: Line 29:
  
  
== How to load a defined parameter within a module
+
== How to load a defined parameter within a module==
 +
call the getPersonalityParameter(String ModuleName, String ParameterNumber) methode in the personalityParameterContainer of the arsin.
 +
 
 +
e.g.:
 +
 
 +
moPersonalityParameterContainer.getPersonalityParameter("F03","HOMEOSTASIS_RECTUM").getParameterDouble());

Revision as of 19:20, 22 January 2013

To adjust the personality of the arsin we use personality parameter

Personality Parameter Files

It is possible to parameterize arsin using configuration files.

The default configuration and a description of these parameters is stored in

sim/config/personality _parameter/default.properties.

To change the default configuration you can overwrite the default properties by an individual personality property file for each arsin. To do so overwrite the descision unit parameter to the name of the new property file

entitygroups.0.overwritedecisionunitdefaults.processor.psychicapparatus.personality.parameter.file=<file_name>

At first the default.properties file is loaden. If a specific personality parameter file is set the values from the default file are overwritten by the values from the specified file.

==Define a Parameter within a Parameter File If you define a new personality parameter you have to add two lines to the default.properties file. One for the default value and one for the description of the parameter.

<Module Name>.<Parameter Name>. value =

<Module Name>.<Parameter Name>. description =

e.g.:

F07.SUPER_EGO_STRENGTH.value=0.5

F07.SUPER_EGO_STRENGTH.description= adjusts the strength of the super-ego

To overwrite the value defined in default.properties just add the fist line with the new value to a personality parameter file and define this file for your arsin.


How to load a defined parameter within a module

call the getPersonalityParameter(String ModuleName, String ParameterNumber) methode in the personalityParameterContainer of the arsin.

e.g.:

moPersonalityParameterContainer.getPersonalityParameter("F03","HOMEOSTASIS_RECTUM").getParameterDouble());