Class AgentEvent

All Implemented Interfaces:
AgentAttribute, Attribute
Direct Known Subclasses:
FunctionalAgentEvent

public abstract non-sealed class AgentEvent extends Event<AgentContext> implements AgentAttribute
Abstract class for representing an event belonging to an agent.

Subclasses define the trigger condition and behaviour of the event using an AgentContext.

  • Constructor Details

    • AgentEvent

      public AgentEvent(String name, boolean isLogged, AttributeAccessLevel accessLevel)
      Constructs a new agent 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