Packagecom.developmentarc.framework.controllers.interfaces
Interfacepublic interface ITaskGroup extends ITask, flash.events.IEventDispatcher
ImplementorsTaskGroup

The ITaskGroup interface is used for collections that hold tasks. The default implementation using the ITaskGroup is the TaskGroup Class.

See also

com.developmentarc.framework.datastructures.tasks.TaskGroup


Public Properties
 PropertyDefined by
  hasTask : Boolean
[read-only] Defines if the current group has any tasks in the queue.
ITaskGroup
 InheritedisBlocker : Boolean
Defines if the Task is a blocking task.
ITask
 Inheritedphase : String
Returns the current phase of of the Task.
ITask
 Inheritedpriority : uint
Returns the priority value of the Task.
ITask
 Inheritedready : Boolean
Used to define the ready state of the Task.
ITask
 InheritedselfOverride : Boolean
Defines of if the Task overrides the same type of task that already have been added to a queue.
ITask
 InheritedtaskOverrides : Array
Returns an array of Task types that this task will override when added to the TaskController or a TaskGroup.
ITask
  tasks : Array
Returns an Array of ITasks that are in the group.
ITaskGroup
 Inheritedtype : String
Returns the type value of the Task.
ITask
 Inheriteduid : Object
A unique identification value assigned to the task.
ITask
Public Methods
 MethodDefined by
  
addTask(task:ITask):void
Used to add a task to the task group implementation.
ITaskGroup
 Inherited
cancel():void
Used to cancel a task.
ITask
 Inherited
ignore():void
Used to put the task in ignore mode.
ITask
 Inherited
inQueue():void
Used to set the task state to queued.
ITask
 Inherited
Used to put the Task in waiting for ready mode.
ITask
  
Looks up and returns the next ITask in the group.
ITaskGroup
 Inherited
pause():void
Used to pause a started task.
ITask
  
Used to remove all the ITasks from the group.
ITaskGroup
  
removeTask(task:ITask):void
Removes the requested task from the group if the task exists.
ITaskGroup
 Inherited
start():void
Used to start the task when it becomes active.
ITask
Property detail
hasTaskproperty
hasTask:Boolean  [read-only]

Defines if the current group has any tasks in the queue.

Implementation
    public function get hasTask():Boolean
tasksproperty 
tasks:Array  [read-write]

Returns an Array of ITasks that are in the group.

Implementation
    public function get tasks():Array
    public function set tasks(value:Array):void
Method detail
addTask()method
public function addTask(task:ITask):void

Used to add a task to the task group implementation.

Parameters
task:ITask — The task to add to the group.
next()method 
public function next():ITask

Looks up and returns the next ITask in the group.

Returns
ITask — The next ITask in the group.
removeAllTasks()method 
public function removeAllTasks():void

Used to remove all the ITasks from the group.

removeTask()method 
public function removeTask(task:ITask):void

Removes the requested task from the group if the task exists.

Parameters
task:ITask — The task to remove.