01_user_documentation:06_graph:02_node:01_attribute
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 01_user_documentation:06_graph:02_node:01_attribute [2025/09/04 15:34] – 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 ===== | ===== Accessor ===== | ||
| Line 7: | Line 7: | ||
| 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: | 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> | <code java> | ||
| - | Sphere s; // have an attribute diameter | + | Sphere s; // has an attribute diameter |
| s[diameter] = 5; // automatically resolve the setter | s[diameter] = 5; // automatically resolve the setter | ||
| float d = s[diameter]; | float d = s[diameter]; | ||
| </ | </ | ||
| + | |||
| + | ===== Editor ===== | ||
| + | |||
| + | Additionally, | ||
| + | {{page> | ||
01_user_documentation/06_graph/02_node/01_attribute.1756992897.txt.gz · Last modified: 2025/09/04 15:34 by gaetan
