Magic Model Analyst will automatically run a compatibility check every time you assign a value to a feature during simulation. It checks the value against the feature's type. The value you assign must correspond with the type of the feature, meaning you can assign only values that are compatible with the feature's type. If you assign an incompatible value to a feature, Magic Model Analyst will not add it to the feature. The following table lists all compatible values for each datatype
Primitive datatype (Qualified name) | Compatible value |
---|---|
| Strings "true" or "false" (non-case sensitive). |
| Strings that can be cast to numbers (If the string is a real number, the floating point will be eliminated). Natural number datatypes
|
| Strings that can be cast to numbers. Integer numbers including the following five datatypes
|
| Every value is compatible. |
| Strings that can be cast into positive numbers. Real and integer (positive) numbers including the following datatypes
|
| If a value equals to one of the Enumeration Literals, the value is compatible. |
Related page