Interface Agent

All Superinterfaces:
Timeable
All Known Implementing Classes:
GraphAgent, LongAgent, LongAgentTail, Train

public interface Agent extends Timeable
Base type of all agent classes
Author:
Andrey Malykhanov
  • Method Details

    • getName

      String getName()
      Returns the name of this agent
      Returns:
      name of this agent
    • engine

      Engine engine()
      Returns the reference to the Engine that is used to simulate this agent's behavior
      Returns:
      reference to the Engine that is used to simulate this agent's behavior
    • time

      default double time()
      Returns the current simulation time
      Returns:
      current simulation time
    • beginDate

      default LocalDateTime beginDate()
      Description copied from interface: Timeable
      Returns the begin date, i.e. the simulation date that corresponds to zero simulation time
      Specified by:
      beginDate in interface Timeable
      Returns:
      simulation date that corresponding to zero simulation time
    • timeUnit

      default ChronoUnit timeUnit()
      Description copied from interface: Timeable
      Returns the simulation time unit, i.e. period unit that corresponds to one unit of simulation time
      Specified by:
      timeUnit in interface Timeable
      Returns:
      period unit that corresponds to one unit of simulation time