logist.simulation
Class Manager

java.lang.Object
  extended by logist.simulation.Manager
All Implemented Interfaces:
Context

public class Manager
extends java.lang.Object
implements Context

Does every part of the simulation except the simulation of actions. Assigns agents to companies, generates tasks and does the auctioning.

Author:
Robin Steiger

Constructor Summary
Manager(LogistSettings settings, Topology topology, java.util.List<AgentImpl> agents, java.util.List<Company> companies, DefaultTaskDistribution taskDistribution)
           
 
Method Summary
 void close()
           
 LogistSettings getSettings()
           
 TaskDistribution getTaskDistribution()
           
 Topology getTopology()
           
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Manager

public Manager(LogistSettings settings,
               Topology topology,
               java.util.List<AgentImpl> agents,
               java.util.List<Company> companies,
               DefaultTaskDistribution taskDistribution)
Method Detail

run

public void run()

close

public void close()
Specified by:
close in interface Context

getTaskDistribution

public TaskDistribution getTaskDistribution()
Specified by:
getTaskDistribution in interface Context

getTopology

public Topology getTopology()
Specified by:
getTopology in interface Context

getSettings

public LogistSettings getSettings()
Specified by:
getSettings in interface Context