Java Integration (a.k.a. Class2MC)
When enabling the class2mc
option, then the Java standard library is available in all MontiArc models.
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*/)