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
  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::Boolean
  • PrimitiveValueTypes::Boolean (SysML Profile.mdzip)
  • UML Standard Profile::MagicDraw Profile::datatypes::boolean
Strings "true" or "false" (non-case sensitive).
  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::Integer
  • PrimitiveValueTypes::Integer (SysML Profile.mdzip)
  • UML Standard Profile::MagicDraw Profile::datatypes::int 

Strings that can be cast to numbers (If the string is a real number, the floating point will be eliminated). 

Natural number datatypes

  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::UnlimitedNatural
  • PrimitiveValueTypes::UnlimitedNatural (SysML Profile.mdzip) 


Real numbers, including the following four datatypes (The floating point will be eliminated)

  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::Real
  • PrimitiveValueTypes::Real (SysML Profile.mdzip)
  • UML Standard Profile::MagicDraw Profile::datatypes::double
  • UML Standard Profile::MagicDraw Profile::datatypes::float
  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::Real
  • PrimitiveValueTypes::Real (SysML Profile.mdzip)
  • UML Standard Profile::MagicDraw Profile::datatypes::double
  • UML Standard Profile::MagicDraw Profile::datatypes::float 

Strings that can be cast to numbers. 

Integer numbers including the following five datatypes

  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::Integer
  • PrimitiveValueTypes::Integer (SysML Profile.mdzip)
  • UML Standard Profile::MagicDraw Profile::datatypes::int
  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::UnlimitedNatural
  • PrimitiveValueTypes::UnlimitedNatural (SysML Profile.mdzip) 
  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::String
  • PrimitiveValueTypes::String (SysML Profile.mdzip)
Every value is compatible. 
  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::UnlimitedNatural
  • PrimitiveValueTypes::UnlimitedNatural (SysML Profile.mdzip)

Strings that can be cast into positive numbers.

Real and integer (positive) numbers including the following datatypes

  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::Integer
  • PrimitiveValueTypes::Integer (SysML Pro- file.mdzip)
  • UML Standard Profile::MagicDraw Pro- file::datatypes::int
  • UML Standard Profile::UML2 Metamodel::PrimitiveTypes::Real
  • PrimitiveValueTypes::Real (SysML Profile.mdzip)
  • UML Standard Profile::MagicDraw Profile::datatypes::double
  • UML Standard Profile::MagicDraw Profile::datatypes::float 
  • Enumeration
 If a value equals to one of the Enumeration Literals, the value is compatible.

Related page