01_user_documentation:06_graph:02_node:01_attribute
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 01_user_documentation:06_graph:02_node:01_attribute [2025/01/30 10:55] – created gaetan | 01_user_documentation:06_graph:02_node:01_attribute [2025/10/07 16:44] (current) – gaetan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Attribute ====== | ====== Attribute ====== | ||
| - | An attribute is a node field. | + | Persistent fields (in the java sense) of a Node are attributes. Basically, all fields that are NOT '' |
| + | |||
| + | ===== Accessor ===== | ||
| + | |||
| + | Attribute accessors are the methods to get and set the attribute value. The accessors of a Node are automatically resolved by the compiler with the syntax: | ||
| + | <code java> | ||
| + | Sphere s; // has an attribute diameter | ||
| + | s[diameter] = 5; // automatically resolve the setter | ||
| + | float d = s[diameter]; | ||
| + | </ | ||
| + | |||
| + | ===== Editor ===== | ||
| + | |||
| + | Additionally, | ||
| + | {{page> | ||
01_user_documentation/06_graph/02_node/01_attribute.1738230922.txt.gz · Last modified: 2025/01/30 10:55 by gaetan
