Package HAL.GridsAndAgents
Class Agent0D<T extends AgentGrid0D>
- java.lang.Object
-
- HAL.GridsAndAgents.AgentBase<T>
-
- HAL.GridsAndAgents.Agent0D<T>
-
- All Implemented Interfaces:
java.io.Serializable
public abstract class Agent0D<T extends AgentGrid0D> extends AgentBase<T> implements java.io.Serializable
An agent type without any spatial representation- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Agent0D()
-
Method Summary
-
Methods inherited from class HAL.GridsAndAgents.AgentBase
BirthTick, IsAlive, SetBirthTick
-
-
-
-
Method Detail
-
Dispose
public void Dispose()
deletes the agent- Specified by:
Dispose
in classAgentBase<T extends AgentGrid0D>
-
Age
public int Age()
returns the age of the agent, in ticks. Be sure to use IncTick on the AgentGrid appropriately for this function to work.- Specified by:
Age
in classAgentBase<T extends AgentGrid0D>
-
-