Last published: February 1, 2009 by 'mlucassmith'
Defines 3 Classes
Extends 3 Classes
This package provides a new scheduling mechanism called a Job. Jobs are designed to pause themselves and be resumed by a main program every 'n' milliseconds in an execution loop type fashion. This is typically good for immediate mode programming. Jobs can be created at any time and they can loop forever, run for a while or run only once - depending on what they want to do.
It might be worthwhile thinking of a Job as an Actor or like an Erlang program, but that could be debated! You make a subclass of Main and call schedule* methods to schedule jobs to be run every iteration, which is controlled by the hertz of Main which is by default 30hz.