Code related to Runtime Parameter Info.
Class which keeps track of run time parameters and related info To each runtime parameter we keep track of the following info:
“NAME” of the parameter “TYPE” - REAL, INTEGER, BOOLEAN, STRING “VALUE” - Initial value of parameter “CONST” - Boolean saying if this value is constant “COMMENT” - Info regarding parameter “RANGE” - [ list of range specifications ] range spec = {“min”:min_val,”max”:max_val} or “STRING”
self is a dictionary mapping “LOCATION”,”NAME” to other info self.locations is a dictionary mapping “NAME” to list of locations defining it If warn is non-empty duplicate names are considered WARNING, else duplicate (NAME,LOCATION) is WARNING else it is OK
If it is a warning then RP not added to database