Package modelarium.attributes
Class Event
java.lang.Object
modelarium.attributes.Attribute
modelarium.attributes.Event
- All Implemented Interfaces:
Serializable,DeepCopyable<Attribute>
- Direct Known Subclasses:
FunctionalEvent
Represents a boolean-triggered event that is evaluated each tick.
Events can encapsulate internal logic or external stimuli, and can be named explicitly or assigned a unique name automatically. Each event increases the global event count.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEvent()Constructs an event with a generated name and recording enabled by default.Event(boolean isRecorded) Constructs an event with a generated name and a recording flag.Constructs an event with a specified name, defaulting to recording enabled.Constructs an event with a specific name and recording flag. -
Method Summary
Methods inherited from class modelarium.attributes.Attribute
getAssociatedModelElement, getName, isRecorded, setAssociatedModelElement
-
Constructor Details
-
Event
Constructs an event with a specific name and recording flag.- Parameters:
name- the event nameisRecorded- whether the event is recorded in output
-
Event
public Event(boolean isRecorded) Constructs an event with a generated name and a recording flag.- Parameters:
isRecorded- whether the event is recorded
-
Event
Constructs an event with a specified name, defaulting to recording enabled.- Parameters:
name- the event name
-
Event
public Event()Constructs an event with a generated name and recording enabled by default.
-
-
Method Details