Class AgentEvent
java.lang.Object
modelarium.entities.attributes.AttributeBase<AgentContext>
modelarium.entities.attributes.events.Event<AgentContext>
modelarium.entities.attributes.events.AgentEvent
- All Implemented Interfaces:
AgentAttribute,Attribute
- Direct Known Subclasses:
FunctionalAgentEvent
Abstract class for representing an event belonging to an agent.
Subclasses define the trigger condition and behaviour of the event using an AgentContext.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentEvent(String name, boolean isLogged, AttributeAccessLevel accessLevel) Constructs a new agent 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
-
AgentEvent
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 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
-