Package modelarium.attributes.builtins.actions
Action implementations
that perform common mutations on properties belonging to a
ModelElement.
These actions are intended to be used by built-in or custom
Event implementations in order to apply simple,
reusable state changes without requiring a bespoke action class for every model.
Typical uses include assigning a new value to a property, incrementing a numeric
property, or toggling a boolean property.
Built-in actions generally resolve their target property at runtime from the associated model element, usually by attribute set name and property name. They therefore depend on the target model element containing a compatible property with the expected type.
This package is primarily intended for straightforward, declarative model logic. For more complex behaviour, users may instead implement custom event or action classes directly.
-
ClassDescriptionRepresents a built-in operation that can be applied to a
ModelElement.AnActionthat adds a resolved double delta to a targetDoubleproperty.AnActionthat sets a targetBooleanproperty to a fixed value.AnActionthat sets a targetDoubleproperty to a resolved value.AnActionthat inverts the current value of a targetBooleanproperty.