JACK 5.4 Application Interface

aos.jack.jak.task
Class SimpleTaskManager

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

public class SimpleTaskManager
extends TaskManager

The default task manager. SimpleTaskManager implements a task scheduling policy which is fully committed to the current task until it completes or is blocked in a @wait_for.


Constructor Summary
SimpleTaskManager()
          Constructs a SimpleTaskManager.
SimpleTaskManager(aos.jack.jak.task.TaskListMonitor m)
          Constructs a SimpleTaskManager with a given TaskListMonitor.
 
Method Summary
 void add(aos.jack.jak.task.Task in)
           
 void dump(java.io.PrintWriter p)
           
 aos.jack.jak.task.Task getNext()
           
 aos.jack.jak.task.Task[] getTasks()
           
 aos.jack.jak.task.Task remove(aos.jack.jak.task.Task in)
           
 int size()
          Returns the number of runnable tasks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTaskManager

public SimpleTaskManager()
Constructs a SimpleTaskManager.


SimpleTaskManager

public SimpleTaskManager(aos.jack.jak.task.TaskListMonitor m)
Constructs a SimpleTaskManager with a given TaskListMonitor.

Method Detail

getTasks

public aos.jack.jak.task.Task[] getTasks()

dump

public void dump(java.io.PrintWriter p)

size

public int size()
Returns the number of runnable tasks.


add

public void add(aos.jack.jak.task.Task in)

remove

public aos.jack.jak.task.Task remove(aos.jack.jak.task.Task in)

getNext

public aos.jack.jak.task.Task getNext()

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