Class AgentRoutine

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

public abstract non-sealed class AgentRoutine extends Routine<AgentContext> implements AgentAttribute
Abstract class for representing a routine belonging to an agent.

Subclasses define the behaviour of the routine using an AgentContext.

  • Constructor Details

    • AgentRoutine

      public AgentRoutine(String name, AttributeAccessLevel accessLevel)
      Constructs a new agent routine with the specified name and access level.
      Parameters:
      name - the name of the routine, used to identify it within its attribute set
      accessLevel - the access level of the routine, determining whether other entities may read it