logist.simulation
Class Simulation

java.lang.Object
  extended by logist.simulation.Simulation

public class Simulation
extends java.lang.Object

Simulates the actions of all agents in one round. In GUI mode the simulation is drawn on the screen.

Author:
Robin Steiger

Constructor Summary
Simulation(Context sim, java.util.List<AgentImpl> agents, History history)
           
 
Method Summary
 void close()
           
 LogistSettings getSettings()
           
 Topology getTopology()
           
 java.util.List<VehicleImpl> getVehicles()
           
 boolean isRoundFinished()
           
 void run(boolean gui)
           
 void step(long nanos)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Simulation

public Simulation(Context sim,
                  java.util.List<AgentImpl> agents,
                  History history)
Method Detail

run

public void run(boolean gui)

close

public void close()

isRoundFinished

public boolean isRoundFinished()

step

public void step(long nanos)

getVehicles

public java.util.List<VehicleImpl> getVehicles()

getSettings

public LogistSettings getSettings()

getTopology

public Topology getTopology()