User Tools

Site Tools


01_user_documentation:07_rgg_xl:02_xl:04_object:01_module

Table of Contents

Module

Module are base nodes used in model. They extends Node (additionally to the extended class they have - double extensions in java youhou).

Constructor

Additionally modules are created with a default constructor (aka a way for groimp to create them without parameters)

e.g. module A(int len) {} can be added in a production rule with A(), A, A(1), …

Pattern

Module are also compiled with a default pattern. e.g. they can be added in predicate with an attribute pattern: (with the same A as before)

[ A(x, y) =⇒ ;]

x will be the instanceof the A, and y, the (int) len.

01_user_documentation/07_rgg_xl/02_xl/04_object/01_module.txt · Last modified: 2025/01/30 16:27 by gaetan