Instances
Classes describe the properties of objects. Objects of a class are called instances of the class. Any number of objects can be created from a class. All these instances of the class have the same properties and differ only in the values of the properties.
Instance administration
The TopLogic model editor offers the option of instantiating classes directly, i.e. creating objects from these classes without having to define a specialized user interface beforehand. This built-in instance editor can be used for simple applications where instances of a class can only be created administratively and not by the end user of the application.
Generic creation option
Let's assume that in the example of RobotSystem and Manufacturer from the References section, the manufacturers that can be selected for a robot are only to be created administratively. Then you can use the instance editor to create manufacturers directly in the system.
In this trivial model, the manufacturer has only one attribute, the name. Exactly this attribute is offered here as a column. When editing, a text field is displayed in which the name of the manufacturer created in this way can be entered.
Automatic selection of the input field
When creating a robot, things look a little different. A robot had two attributes, a name (text / String), a weight (floating point number / Double) and a reference "Manufacturer" of the type "Manufacturer".
Here the interface follows the model and offers a text field for the name, an input field for the weight that only accepts numbers and a selection field for the manufacturer in which one of the three manufacturers administered above can be selected. If the input violates the value range of the types, corresponding error messages are displayed.