com.almende.eve.scheduler
Class RunnableSchedulerFactory

java.lang.Object
  extended by com.almende.eve.scheduler.RunnableSchedulerFactory
All Implemented Interfaces:
SchedulerFactory

public class RunnableSchedulerFactory
extends Object
implements SchedulerFactory

Documentation on Scheduling: http://docs.oracle.com/javase/1.5.0/docs/api/java /util/concurrent/ScheduledExecutorService.html http://www.javapractices.com/topic/TopicAction.do?Id=54


Nested Class Summary
 class RunnableSchedulerFactory.RunnableScheduler
          The RunnableSchedular class is the interface which the agents can interact with.
 
Constructor Summary
RunnableSchedulerFactory(AgentFactory agentFactory, Map<String,Object> params)
          This constructor is called when constructed by the AgentFactory
RunnableSchedulerFactory(AgentFactory agentFactory, String id)
           
 
Method Summary
 void destroyScheduler(String agentId)
           
 Scheduler getScheduler(String agentId)
          Get a scheduler for a specific agent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunnableSchedulerFactory

public RunnableSchedulerFactory(AgentFactory agentFactory,
                                Map<String,Object> params)
This constructor is called when constructed by the AgentFactory

Parameters:
agentFactory -
params -

RunnableSchedulerFactory

public RunnableSchedulerFactory(AgentFactory agentFactory,
                                String id)
Method Detail

getScheduler

public Scheduler getScheduler(String agentId)
Get a scheduler for a specific agent

Specified by:
getScheduler in interface SchedulerFactory
Parameters:
agentId -

destroyScheduler

public void destroyScheduler(String agentId)
Specified by:
destroyScheduler in interface SchedulerFactory


Copyright © 2013 Almende BV. All Rights Reserved.