02_user_tutorials:13_rgg:02_rgg-code-structure
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 02_user_tutorials:13_rgg:02_rgg-code-structure [2025/12/10 16:01] – gaetan | 02_user_tutorials:13_rgg:02_rgg-code-structure [2025/12/12 13:21] (current) – [Queries] groimp | ||
|---|---|---|---|
| Line 41: | Line 41: | ||
| The parameters are unlink in a java class directly defined in the head of the module (see below 'float len') and the code executed on the initialization of a module is defined by just a second par of curly brackets (see below {setShader(GREEN); | The parameters are unlink in a java class directly defined in the head of the module (see below 'float len') and the code executed on the initialization of a module is defined by just a second par of curly brackets (see below {setShader(GREEN); | ||
| - | Besides that the main difference is the use case. A module is always a GroIMP Node, meaning it can be added to the GroIMP simulation graph (ProjectGraph) similar to [[groimp-platform: | + | Besides that the main difference is the use case. A module is always a GroIMP Node, meaning it can be added to the GroIMP simulation graph (ProjectGraph) similar to [[15_cheatsheet: |
| <code java> | <code java> | ||
| Line 108: | Line 108: | ||
| ==== Queries ==== | ==== Queries ==== | ||
| - | In GroIMP the project graph is considered to hold almost all information on the simulation. Therefore it can also be seen as a knowledge graph. To retrieve this knowledge rgg uses the [[tutorials:common_graph_queries|XL query system]]. To use this queries in a java block they have to be framed by '' | + | In GroIMP the project graph is considered to hold almost all information on the simulation. Therefore it can also be seen as a knowledge graph. To retrieve this knowledge rgg uses the [[01_user_documentation:07_rgg_xl: |
| As shown in the example below in '' | As shown in the example below in '' | ||
| Line 137: | Line 137: | ||
| Since java 1.6 did not include lamda expression, an own implementation was added to rgg. | Since java 1.6 did not include lamda expression, an own implementation was added to rgg. | ||
| - | The syntax an the explanation can be found [[groimp-platform:xl-lambda|here]] | + | The syntax an the explanation can be found [[01_user_documentation:07_rgg_xl: |
| Line 267: | Line 267: | ||
| ] | ] | ||
| </ | </ | ||
| - | |||
02_user_tutorials/13_rgg/02_rgg-code-structure.1765378909.txt.gz · Last modified: 2025/12/10 16:01 by gaetan
