Variable Map |
Top Previous Next |
•Each parameter has a „string“ name
•Value is given as implemented member of Variable
- Variable has “last changed” date instance, creator reference and value
- Has name, default or unit, too
•Has a general simulation (model run) and project (project run) id
•Implements a HashMap <String, Object>
•Has replacement method for parameter tokens
Sim Variable:
•Name
•Description
•Unit (Ontology Link)
•Min/Max
•Data Type
•Content Type
•Date last changed
•Source SimComponent
•Default Value
•Current Value
•Linking Variables can hereby be checked for
- Unit Ontology
- DataType and
- ContentType
•Setting Value cab be checked for
- DataType
- Source of Data
- Min/Max
•Debugging can be done using
- Description
- Unit Ontology
- Date last changed (same day – yesterday, …)
- Source of value
Example
Let's look at the example.
There are several key-value pairs.
We can add links between them. For example, let's take Weather.rain and link it with Soilwater.rain.
In this case every time when the value W.Rain of Weather.rain is changed, Soilwater.rain will be given the same value W.Rain as Weather.rain.