Package modelarium.attributes.builtins.properties
Property implementations for
common property behaviours.
The classes in this package support reusable property patterns such as constant values, additive updates, clamped numeric values, and properties whose value is derived from another property or value reference. These built-in properties are intended to reduce boilerplate for simple models and to provide standard implementations of frequently needed behaviour.
Some built-in properties are directly mutable, whereas others are derived or constrained and therefore impose restrictions on how their value may be set. Users should consult the documentation of each class to understand whether the property stores its own value, derives it dynamically, or enforces bounds or immutability.
These classes can be used directly in models or serve as examples of how custom
Property subclasses may be implemented.
-
ClassesClassDescriptionA mutable
Propertywhose value increases by a resolved delta each timeAddDoubleProperty.run()is called.A mutablePropertywhose current value is clamped into a resolved minimum and maximum range wheneverClampDoubleProperty.run()is called.APropertywhoseDoublevalue is fixed at construction time and cannot be changed afterwards.A derivedPropertythat exposes the current value of anotherDoubleproperty on the same associated model element.