Class AgentBaseSpatial<T>

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Agent1DBase, Agent2DBase, Agent3DBase

    public abstract class AgentBaseSpatial<T>
    extends AgentBase<T>
    implements java.io.Serializable
    AgentBaseSpatial functions are shared amongst all spatial agent types
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class HAL.GridsAndAgents.AgentBase

        G
    • Method Summary

      Modifier and Type Method Description
      int Isq()
      returns the index of the square that the agent is currently on
      abstract void MoveSQ​(int iNext)
      moves the agent to the middle of the square at the indices/index specified
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AgentBaseSpatial

        public AgentBaseSpatial()
    • Method Detail

      • Isq

        public int Isq()
        returns the index of the square that the agent is currently on
      • MoveSQ

        public abstract void MoveSQ​(int iNext)
        moves the agent to the middle of the square at the indices/index specified