Class 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 Details

    • EnvironmentEvent

      public EnvironmentEvent(String name, boolean isLogged, AttributeAccessLevel accessLevel)
      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 set
      isLogged - whether the event's trigger state is logged as the model progresses
      accessLevel - the access level of the event, determining whether other entities may read it