Java Integration (a.k.a. Class2MC)¶
When enabled (Gradle / CLI), Java types can be used within MontiArc models, just like user-defined types.
Special behavior of Java type usage in MontiArc¶
Note that calling constructors of object-oriented types in MontiArc obeys a special syntax:
compute {
personOutPort = Person.Person("Steven");
}
TypeName.methodName(/*arguments*/)
TypeName.TypeName(/*arguments*/)