GODPAPER | All Packages | All Classes | Index | Frames No Frames |
IRunnable

Package | org.generalrelativity.thread
Interface | public interface IRunnable
Implementors | AbstractProcess

Public Properties

| Property | Defined By
--- | --- | ---
|  | isSelfManaging : Boolean Determines whether the process is self managing or not. | IRunnable
|  | percentage : Number [read-only] Returns the percentage completion | IRunnable

Public Methods

| Method | Defined By
--- | --- | ---
|  | run():void Runs the smallest chunk of the process | IRunnable
|  | runAndManage(allocation:int):void Runs and manages the process over the given allocation | IRunnable
|  | terminate():void Terminates the process | IRunnable

Property Detail

isSelfManaging | property

`isSelfManaging:Boolean`

Determines whether the process is self managing or not. If it is, runAndManage gets called by the thread, otherwise, run is called.

Implementation
`public function get isSelfManaging():Boolean`
`public function set isSelfManaging(value:Boolean):void`

percentage | property |

`percentage:Number` [read-only]

Returns the percentage completion

Implementation
`public function get percentage():Number`
Method Detail

run | () | method

`public function run():void`

Runs the smallest chunk of the process

runAndManage | () | method |

`public function runAndManage(allocation:int):void`

Runs and manages the process over the given allocation

Parameters

| `allocation:int`

terminate | () | method |

`public function terminate():void`

Terminates the process

Thu Jan 16 2014, 01:11 PM +08:00