Class EnvironmentEvent
java.lang.Object
modelarium.entities.attributes.AttributeBase<EnvironmentContext>
modelarium.entities.attributes.events.Event<EnvironmentContext>
modelarium.entities.attributes.events.EnvironmentEvent
- All Implemented Interfaces:
Attribute,EnvironmentAttribute
- Direct Known Subclasses:
FunctionalEnvironmentEvent
public abstract non-sealed class EnvironmentEvent
extends Event<EnvironmentContext>
implements EnvironmentAttribute
Abstract class for representing an event belonging to the environment.
Subclasses define the trigger condition and behaviour of the event using an EnvironmentContext.
-
Constructor Summary
ConstructorsConstructorDescriptionEnvironmentEvent(String name, boolean isLogged, AttributeAccessLevel accessLevel) Constructs a new environment event with the specified name, logging flag and access level. -
Method Summary
Methods inherited from class modelarium.entities.attributes.events.Event
getAsImmutable, isTriggered, isTriggered, run, run, toStringMethods inherited from class modelarium.entities.attributes.AttributeBase
accessLevel, context, isLogged, nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface modelarium.entities.attributes.Attribute
accessLevel, getAsImmutable, isLogged, name, run
-
Constructor Details
-
EnvironmentEvent
Constructs a new environment event with the specified name, logging flag and access level.- Parameters:
name- the name of the event, used to identify it within its attribute setisLogged- whether the event's trigger state is logged as the model progressesaccessLevel- the access level of the event, determining whether other entities may read it
-