Package modelarium.attributes.builtins.events
Event implementations for common
event-triggering patterns.
These event classes allow model behaviour to be expressed using reusable time-based and state-based triggers rather than requiring a custom event class for each case. Examples include triggering at fixed tick intervals or when a property value crosses a threshold.
Built-in events typically operate on properties belonging to an associated
ModelElement and may execute one or more
built-in or custom actions when triggered.
Some event implementations maintain internal state in order to distinguish
between a new trigger condition and one that is simply continuing to hold.
These events are intended to support common modelling scenarios while remaining
composable with the rest of the Modelarium attribute system. Where more specific
or domain-dependent behaviour is required, users may implement custom
Event subclasses.
-
ClassDescriptionAn
Eventthat triggers when aDoubleproperty crosses a threshold in a specified direction.Defines the direction of threshold crossing that aThresholdCrossingEventshould detect.AnEventthat triggers on a fixed tick schedule.