ModelElement

constructor(parent: ModelElement, name: String? = null)

The main constructor for creating model elements. A model element is some construct that is an element of a model. Model elements are added to the main model when they are constructed by supplying a parent model element. The constructed model element becomes a child to the parent in the model element hierarchy.

Parameters

parent

the parent to this model element

name

an optional name. If not provided, then a name is provided automatically by using the class type of the element and a unique number.