|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CentralizedBehavior
The behavior of a centralized agent that creates plans for all vehicles.
| 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 |
|---|
void setup(Topology topology,
TaskDistribution distribution,
Agent agent)
The agent argument allows you to access important information about your agent, most notably:
Agent.vehicles() the list of vehicles controlled
by the agentAgent.getTasks() the set of tasks that the agent
has accepted but not yet delivered
topology - The topology of the simulationdistribution - The task distribution of the simulationagent - The properties of the agent
java.util.List<Plan> plan(java.util.List<Vehicle> vehicles,
TaskSet tasks)
vehicles - The list of vehiclestasks - The list of tasks to be handled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||