Class AgentRoutine
java.lang.Object
modelarium.entities.attributes.AttributeBase<AgentContext>
modelarium.entities.attributes.routines.Routine<AgentContext>
modelarium.entities.attributes.routines.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 Summary
ConstructorsConstructorDescriptionAgentRoutine(String name, AttributeAccessLevel accessLevel) Constructs a new agent routine with the specified name and access level. -
Method Summary
Methods inherited from class modelarium.entities.attributes.routines.Routine
getAsImmutable, run, runMethods inherited from class modelarium.entities.attributes.AttributeBase
accessLevel, context, isLogged, nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface modelarium.entities.attributes.Attribute
accessLevel, getAsImmutable, isLogged, name, run
-
Constructor Details
-
AgentRoutine
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 setaccessLevel- the access level of the routine, determining whether other entities may read it
-