Uses of Interface
modelarium.entities.contexts.AgentContext
Packages that use AgentContext
Package
Description
Provides functional interfaces and lambda-backed implementations of event attributes.
Provides functional interfaces and lambda-backed implementations of property attributes.
Provides functional interfaces and lambda-backed implementations of routine attributes.
Defines the simulation views supplied to attribute behaviour.
-
Uses of AgentContext in modelarium.entities.attributes.events.functional
Methods in modelarium.entities.attributes.events.functional with parameters of type AgentContextModifier and TypeMethodDescriptionbooleanAgentEventIsTriggeredFunction.isTriggered(AgentContext context) Determines whether the event's trigger condition is met.booleanFunctionalAgentEvent.isTriggered(AgentContext context) Determines whether this event's trigger condition is met by applying the user-provided trigger function.voidAgentEventRunFunction.run(AgentContext context) Runs the event's behaviour.voidFunctionalAgentEvent.run(AgentContext context) Runs this event's behaviour by applying the user-provided run function. -
Uses of AgentContext in modelarium.entities.attributes.properties.functional
Methods in modelarium.entities.attributes.properties.functional with parameters of type AgentContextModifier and TypeMethodDescriptionAgentPropertyGetterFunction.get(AgentContext context, T propertyValue) Returns the property's value.FunctionalAgentProperty.get(AgentContext context) Returns this property's value by applying the user-provided getter function.AgentPropertyRunFunction.run(AgentContext context, T propertyValue) Runs the property's behaviour.voidFunctionalAgentProperty.run(AgentContext context) Runs this property's behaviour by applying the user-provided run function and storing its result.AgentPropertySetterFunction.set(AgentContext context, T currentPropertyValue, T newPropertyValue) Sets the property's value.voidFunctionalAgentProperty.set(AgentContext context, T value) Sets this property's value by applying the user-provided setter function and storing its result. -
Uses of AgentContext in modelarium.entities.attributes.routines.functional
Methods in modelarium.entities.attributes.routines.functional with parameters of type AgentContextModifier and TypeMethodDescriptionvoidAgentRoutineRunFunction.run(AgentContext context) Runs the routine's behaviour.protected voidFunctionalAgentRoutine.run(AgentContext context) Runs this routine's behaviour by applying the user-provided run function. -
Uses of AgentContext in modelarium.entities.contexts
Classes in modelarium.entities.contexts that implement AgentContextModifier and TypeClassDescriptionfinal classClass for providing an agent and its attributes with access to relevant simulation resources.