Process
| Kind of class: | public class |
|---|---|
| Package: | org.casalib.process |
| Inherits from: | RemovableEventDispatcher < EventDispatcher |
| Implements: | |
| Known subclasses: | |
| Version: | 12/23/08 |
| Author: | Aaron Clinger |
| Classpath: | org.casalib.process.Process |
| File last modified: | Friday, 29 May 2009, 09:08:43 |
Base process class. Process is not designed to be used on its own and needs to be extended to function.
Events broadcasted to listeners:
- ProcessEvent with type:
START- Dispatched when process starts. - ProcessEvent with type:
STOP- Dispatched when process is stopped. - ProcessEvent with type:
COMPLETE- Dispatched when process completes.
Summary
Constructor
Class properties
- NORM_PRIORITY : int
- The default priority for all Process instances.
Instance properties
- running : Boolean
- Determines if the process is currently running true, or if it isn't false.
- completed : Boolean
- Determines if the process has completed true, or if it hasn't false.
- priority : int
- The priority relative to other processes.
Instance properties inherited from RemovableEventDispatcher
Instance methods
Instance methods inherited from RemovableEventDispatcher
Constructor
Process
public function Process (
)
Creates a new Process.
Class properties
NORM_PRIORITY
public static NORM_PRIORITY:int = 0
(read,write)
The default priority for all Process instances.
Instance properties
completed
public completed:Boolean
(read)
Determines if the process has completed
true, or if it hasn't false. priority
public priority:int
(read,write)
The priority relative to other processes. The higher priority processes will take precedence over lower priority processes in a ProcessGroup.
running
public running:Boolean
(read)
Determines if the process is currently running
true, or if it isn't false. Instance methods
start
public function start (
) : void
Events broadcasted to listeners:
- ProcessEvent with type:
START- Dispatched when process starts.
Specified by:
stop
public function stop (
) : void
Events broadcasted to listeners:
- ProcessEvent with type:
STOP- Dispatched when process is stopped.
Specified by: