Class LongAgent<N extends LongAgentGraphNode,A extends LongAgentGraphArc>

java.lang.Object
com.amalgamasimulation.graphagent.GraphAgent<N,A>
com.amalgamasimulation.graphagent.LongAgent<N,A>
Type Parameters:
N - type of values stored in graph nodes
A - type of values stored in graph arcs
All Implemented Interfaces:
Agent, Timeable
Direct Known Subclasses:
Train

public class LongAgent<N extends LongAgentGraphNode,A extends LongAgentGraphArc> extends GraphAgent<N,A>
Class representing a long agent that lives and moves inside a LongAgentsEnvironment. Long agent is modeled with two regular GraphAgents:
  • This agent (as a subclass of GraphAgent) represents the location of the head of the long agent.
  • The other agent encapsulated inside this one represents the location of the tail of the long agent.
It is assumed that the long agent takes all the space along graph's arcs and nodes between its head and its tail.
Author:
Andrey Malykhanov