massim.framework
Interface AgentManager

All Superinterfaces:
Component
All Known Implementing Classes:
AgentProviderAgentManager, DefaultAgentManager

public interface AgentManager
extends Component

This interface offers access to some basic features for agent management. This includes agent creation, removal and to send an agent a perception while receiving an action in return. Note that implementations of these methods may have to be synchronized. You can also initiate the creation and acting of agents and retrieve their results later using java.concurrent.Future.


Method Summary
 java.util.concurrent.Future<SimulationAgent> concurrentCreateAgent(AgentParameter m)
          This is the non-blocking version of createAgent.
 SimulationAgent createAgent(AgentParameter parameter)
          Create an agent that fulfills criteria mentioned in parameter.
 
Methods inherited from interface massim.framework.Component
start, stop
 

Method Detail

createAgent

SimulationAgent createAgent(AgentParameter parameter)
Create an agent that fulfills criteria mentioned in parameter.

Parameters:
parameter - agent creation criteria
Returns:
agent id

concurrentCreateAgent

java.util.concurrent.Future<SimulationAgent> concurrentCreateAgent(AgentParameter m)
This is the non-blocking version of createAgent.

Parameters:
m -
Returns:


Copyright © 2011. All Rights Reserved.