JACK 5.4 Application Interface

aos.jack.jak.task
Class SimpleRRTaskManager

java.lang.Object
  extended byaos.jack.jak.task.TaskManager
      extended byaos.jack.jak.task.SimpleTaskManager
          extended byaos.jack.jak.task.SimpleRRTaskManager
Direct Known Subclasses:
PriorityTaskManager

public class SimpleRRTaskManager
extends SimpleTaskManager

A task manager for round-robin scheduling. SimpleRRTaskManager implements a task scheduling policy which commits to the current task at most for a given number of plan steps. When that number of plan steps have been processed, the task is rescheduled to the end of the task list, and the processing continues with the new first task.


Constructor Summary
SimpleRRTaskManager()
          Constructs a SimpleRRTaskManager with the default round-robin limit of 100 plan steps.
SimpleRRTaskManager(aos.jack.jak.task.TaskListMonitor m, int c)
          Constructs a SimpleRRTaskManager with a given TaskListMonitor and round-robin limit.
SimpleRRTaskManager(int c)
          Constructs a SimpleRRTaskManager with a given round-robin limit.
 
Method Summary
 void add(aos.jack.jak.task.Task in)
           
 int getCount()
          Return the maximum number of plan steps.
 aos.jack.jak.task.Task getNext()
           
 void setCount(int nsteps)
          Change the maximum number of plan steps.
 
Methods inherited from class aos.jack.jak.task.SimpleTaskManager
dump, getTasks, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRRTaskManager

public SimpleRRTaskManager(aos.jack.jak.task.TaskListMonitor m,
                           int c)
Constructs a SimpleRRTaskManager with a given TaskListMonitor and round-robin limit.


SimpleRRTaskManager

public SimpleRRTaskManager(int c)
Constructs a SimpleRRTaskManager with a given round-robin limit.


SimpleRRTaskManager

public SimpleRRTaskManager()
Constructs a SimpleRRTaskManager with the default round-robin limit of 100 plan steps.

Method Detail

getCount

public int getCount()
Return the maximum number of plan steps.


setCount

public void setCount(int nsteps)
Change the maximum number of plan steps.


add

public void add(aos.jack.jak.task.Task in)
Overrides:
add in class SimpleTaskManager

getNext

public aos.jack.jak.task.Task getNext()
Overrides:
getNext in class SimpleTaskManager

JACK 5.4 Application Interface

Copyright (C) 1999-2008, Agent Oriented Software Pty. Ltd.

US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.


Agent Oriented Software Pty. Ltd.     http://www.aosgrp.com
PO Box 639, Carlton South, Victoria 3053, Australia
Phone: +61 3 9349 5055, Fax: +61 3 9349 5088