stamp.util.os
Class TaskManager

java.lang.Object
  |
  +--stamp.util.os.TaskManager

public class TaskManager
extends Object

Co-operative RTOS This very basic RTOS does round robin scheduling of tasks.


Field Summary
 Task currentTask
           
 boolean debug
          Turns on debug mode.
static int PUBLIC_STATES
           
static int STATE_READY
           
static int STATE_STOPPED
           
static int STATE_WAITING
           
 
Constructor Summary
TaskManager()
           
 
Method Summary
 void addTask(Task aNewTask)
          Add a task to ready list
 void run()
          This method will run forever executing each task in the readyTask list in a round robin fashion
 
Methods inherited from class java.lang.Object
equals
 

Field Detail

STATE_STOPPED

public static final int STATE_STOPPED

STATE_READY

public static final int STATE_READY

STATE_WAITING

public static final int STATE_WAITING

PUBLIC_STATES

public static final int PUBLIC_STATES

debug

public boolean debug
Turns on debug mode.

currentTask

public Task currentTask
Constructor Detail

TaskManager

public TaskManager()
Method Detail

addTask

public void addTask(Task aNewTask)
Add a task to ready list

run

public void run()
This method will run forever executing each task in the readyTask list in a round robin fashion