massim.framework
Class DefaultAgentManager

java.lang.Object
  extended by massim.framework.DefaultAgentManager
All Implemented Interfaces:
AgentManager, Component
Direct Known Subclasses:
AgentProviderAgentManager

public abstract class DefaultAgentManager
extends java.lang.Object
implements AgentManager

This class provides some reasonable defaults for concurrentCreateAgent and concurrentGetAction, by delegating them to their blocking siblings using a new thread.


Constructor Summary
DefaultAgentManager()
           
 
Method Summary
 java.util.concurrent.Future<SimulationAgent> concurrentCreateAgent(AgentParameter params)
          This is the non-blocking version of createAgent.
 void start()
          Tell the component to start activity.
 void stop()
          Tell the component to cease activity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface massim.framework.AgentManager
createAgent
 

Constructor Detail

DefaultAgentManager

public DefaultAgentManager()
Method Detail

concurrentCreateAgent

public java.util.concurrent.Future<SimulationAgent> concurrentCreateAgent(AgentParameter params)
Description copied from interface: AgentManager
This is the non-blocking version of createAgent.

Specified by:
concurrentCreateAgent in interface AgentManager
Returns:

start

public void start()
Description copied from interface: Component
Tell the component to start activity.

Specified by:
start in interface Component

stop

public void stop()
Description copied from interface: Component
Tell the component to cease activity.

Specified by:
stop in interface Component


Copyright © 2011. All Rights Reserved.