de.jiac.micro.agent
Interface IScheduler

All Superinterfaces:
IHandle

public interface IScheduler
extends IHandle

Each agent has a scheduler for periodic and sporadic tasks.

Author:
Erdene-Ochir Tuguldur, Marcel Patzlaff

Method Summary
 void addSchedulable(AbstractSchedulable schedulable)
          Adds a sporadic or periodic task to this scheduler.
 boolean containsSchedulable(AbstractSchedulable schedulable)
          Checks whether the sporadic or periodic task is already known to this scheduler.
 void removeSchedulable(AbstractSchedulable schedulable)
          Removes a sporadic or periodic task from this scheduler.
 

Method Detail

addSchedulable

void addSchedulable(AbstractSchedulable schedulable)
Adds a sporadic or periodic task to this scheduler.

Parameters:
schedulable - the task to add

removeSchedulable

void removeSchedulable(AbstractSchedulable schedulable)
Removes a sporadic or periodic task from this scheduler.

Parameters:
schedulable - the task to remove

containsSchedulable

boolean containsSchedulable(AbstractSchedulable schedulable)
Checks whether the sporadic or periodic task is already known to this scheduler.

Parameters:
schedulable - the task to find
Returns:
true if already known, false otherwise


Copyright © 2008-2011 DAI-Labor. All Rights Reserved.