Package modelarium.entities.contexts
Interface EntityContext
- All Superinterfaces:
Context
- All Known Subinterfaces:
AgentContext,EnvironmentContext
- All Known Implementing Classes:
AgentSimulationContext,EnvironmentSimulationContext
Interface for marking a context as belonging to an entity.
This interface is extended by the entity-flavoured context interfaces: AgentContext and
EnvironmentContext.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an agent to the current core's local agent set, creating the context the agent needs to run.voidAdds each agent in a list to the current core's local agent set, creating the contexts the agents need to run.voidAdds each agent in an agent set to the current core's local agent set, creating the contexts the agents need to run.Methods inherited from interface modelarium.entities.contexts.Context
doesAgentExistInThisCore, getAgent, getClock, getCurrentPopulationSize, getFilteredAgents, getFilteredAgents, getRandom, killAgent, killAgent, killAgents, killAgents
-
Method Details
-
addAgent
Adds an agent to the current core's local agent set, creating the context the agent needs to run. -
addAgents
Adds each agent in an agent set to the current core's local agent set, creating the contexts the agents need to run. -
addAgents
Adds each agent in a list to the current core's local agent set, creating the contexts the agents need to run.
-