Packagejp.progression.executors
Classpublic class CommandExecutor
InheritanceCommandExecutor Inheritance ExecutorObject Inheritance flash.events.EventDispatcher

CommandExecutor クラスは、コマンドを使用した非同期処理の実装を提供するための実行クラスです。


Example
  // CommandExecutor インスタンスを作成する
  var executor:CommandExecutor = new CommandExecutor();
  
  // CommandExecutor を実行する
  executor.execute( new Event( Event.COMPLETE ) );
  



Public Properties
 PropertyDefined by
 InheritedclassName : String
インスタンスのクラス名を取得します。 Indicates the instance className of the SceneObject.
ExecutorObject
  current : CommandList
[read-only] 現在処理している CommandList インスタンスを取得します。
CommandExecutor
 Inheriteddepth : int
ExecutorObject インスタンスツリー構造上での自身の深度を取得します。
ExecutorObject
 Inheriteddispatching : Boolean
イベントが送出状態であるかどうかを取得します。
ExecutorObject
 InheritedeventType : String
現在のイベントタイプを取得します。
ExecutorObject
 Inheritedexecutors : Array
子 ExecutorObject オブジェクトが保存されている配列です。 この配列を操作することで元の配列を変更することはできません。
ExecutorObject
 Inheritedextra : Object
ExecutorObject インスタンスの実行処理、または中断処理の開始時に指定されているリレーオブジェクトを取得または設定します。 この ExecutorObject インスタンスが親の ExecutorObject インスタンスによって実行されている場合には、親のリレーオブジェクトを順々に引き継ぎます。
ExecutorObject
 InheritednumExecutors : int
登録されている ExecutorObject インスタンス数を取得します。 Returns the number of children of this ExecutorObject.
ExecutorObject
 Inheritedparent : ExecutorObject
この ExecutorObject オブジェクトを含む ExecutorObject オブジェクトを示します。 Indicates the ExecutorObject object that contains this ExecutorObject object.
ExecutorObject
 Inheritedroot : ExecutorObject
ExecutorObject ツリー構造の一番上に位置する ExecutorObject インスタンスを取得します。
ExecutorObject
 Inheritedstate : int
現在の処理状態を取得します。
ExecutorObject
 Inheritedtarget : IEventDispatcher
IEventDispatcher インターフェイスを実装したインスタンスを取得します。
ExecutorObject
  useParallelList : Boolean
CommandExecutor
Public Methods
 MethodDefined by
  
CommandExecutor(target:IEventDispatcher)
新しい CommandExecutor インスタンスを作成します。 Creates a new CommandExecutor object.
CommandExecutor
  
addCommand(... commands):void
特定のイベントが送出された際に、自動実行させたい Command インスタンスをリストの最後尾に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に削除されます。
CommandExecutor
 Inherited
この ExecutorObject インスタンスに子 ExecutorObject インスタンスを追加します。 Adds a child ExecutorObject instance to this ExecutorObject instance.
ExecutorObject
  
clearCommand(completely:Boolean = false):void
登録されている Command インスタンスを削除します。
CommandExecutor
 Inherited
contains(executor:ExecutorObject):Boolean
指定された ExecutorObject インスタンスが ExecutorObject インスタンスの子であるか、オブジェクト自体であるかを指定します。 Determines whether the specified ExecutorObject is a executor of the ExecutorObject instance or the instance itself.
ExecutorObject
  
dispose():void
ExecutorObject の登録情報を解放します。 dispose() メソッドが呼び出されると、それ以降はこのインスタンスのメソッドまたはプロパティを呼び出すと失敗し、例外がスローされます。
CommandExecutor
  
execute(event:Event, extra:Object = null, preRegistration:Boolean = true):void
処理を実行します。
CommandExecutor
  
insertCommand(... commands):void
特定のイベントが送出された際に、自動実行させたい Command インスタンスをすでにリストに登録され、実行中の Command インスタンスの次の位置に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に削除されます。
CommandExecutor
 Inherited
interrupt():void
処理を中断します。 このメソッドを実行するためには、事前に execute() メソッドが実行されている必要があります。
ExecutorObject
 Inherited
ExecutorObject に追加されている全ての子 ExecutorObject インスタンスを削除します。
ExecutorObject
 Inherited
ExecutorObject インスタンスの子リストから指定の ExecutorObject インスタンスを削除します。 Removes the specified child ExecutorObject instance from the executor list of the ExecutorObject instance.
ExecutorObject
 Inherited
toString():String
指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
ExecutorObject
Protected Methods
 MethodDefined by
 Inherited
実行中の処理が完了したことを通知します。 このメソッドを実行するためには、事前に execute() メソッドが実行されている必要があります。
ExecutorObject
Events
 EventSummaryDefined by
 Inherited 処理が完了した場合に送出されます。 ExecutorObject
 Inherited 処理の途中でエラーが発生した場合に送出されます。 ExecutorObject
 Inherited 処理が中断された場合に送出されます。 ExecutorObject
 Inherited 処理が開始された場合に送出されます。 ExecutorObject
Property detail
currentproperty
current:CommandList  [read-only]

現在処理している CommandList インスタンスを取得します。

Implementation
    public function get current():CommandList
useParallelListproperty 
useParallelList:Boolean  [read-write]

Implementation
    public function get useParallelList():Boolean
    public function set useParallelList(value:Boolean):void
Constructor detail
CommandExecutor()constructor
public function CommandExecutor(target:IEventDispatcher)

新しい CommandExecutor インスタンスを作成します。 Creates a new CommandExecutor object.

Parameters
target:IEventDispatcher関連付けたい IEventDispatcher インスタンスです。
Method detail
addCommand()method
public function addCommand(... commands):void

特定のイベントが送出された際に、自動実行させたい Command インスタンスをリストの最後尾に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に削除されます。

Parameters
... commands登録したいコマンドを含む配列です。

See also

clearCommand()method 
public function clearCommand(completely:Boolean = false):void

登録されている Command インスタンスを削除します。

Parameters
completely:Boolean (default = false)true が設定されている場合は登録されている全てのコマンド登録を解除し、false の場合には現在処理中のコマンド以降の登録を解除します。

See also

dispose()method 
public override function dispose():void

ExecutorObject の登録情報を解放します。 dispose() メソッドが呼び出されると、それ以降はこのインスタンスのメソッドまたはプロパティを呼び出すと失敗し、例外がスローされます。

execute()method 
public override function execute(event:Event, extra:Object = null, preRegistration:Boolean = true):void

処理を実行します。

Parameters
event:EventExecutorObject に登録された対象に対して送出するトリガーイベントです。
 
extra:Object (default = null)実行時に設定されるリレーオブジェクトです。
 
preRegistration:Boolean (default = true)実行対象の ExecutorObject を処理を行う前に登録するようにするかどうかです。

See also

insertCommand()method 
public function insertCommand(... commands):void

特定のイベントが送出された際に、自動実行させたい Command インスタンスをすでにリストに登録され、実行中の Command インスタンスの次の位置に追加します。 追加された Command インスタンスは、イベントが送出される直前に自動的に削除されます。

Parameters
... commands登録したいコマンドを含む配列です。

See also