logist.behavior
Interface CentralizedBehavior


public interface CentralizedBehavior

The behavior of a centralized agent that creates plans for all vehicles.

Author:
Robin Steiger

Method Summary
 java.util.List<Plan> plan(java.util.List<Vehicle> vehicles, TaskSet tasks)
          Computes the joint plan for several vehicles.
 void setup(Topology topology, TaskDistribution distribution, Agent agent)
          The setup method is called exactly once, before the simulation starts and before any other method is called.
 

Method Detail

setup

void setup(Topology topology,
           TaskDistribution distribution,
           Agent agent)
The setup method is called exactly once, before the simulation starts and before any other method is called.

The agent argument allows you to access important information about your agent, most notably:

Parameters:
topology - The topology of the simulation
distribution - The task distribution of the simulation
agent - The properties of the agent

plan

java.util.List<Plan> plan(java.util.List<Vehicle> vehicles,
                          TaskSet tasks)
Computes the joint plan for several vehicles.
The plans for each vehicle are returned as a list, in the same order than the vehicles. The agent can assume that no vehicle is carrying a task.

Parameters:
vehicles - The list of vehicles
tasks - The list of tasks to be handled
Returns:
The plans for each vehicle