Packagejp.progression.core.commands
Classpublic class CommandExecutor
InheritanceCommandExecutor Inheritance EventIntegrator Inheritance flash.events.EventDispatcher

CommandExecutor クラスは、シーンフローに沿って、登録されたコマンドを次々と実行するクラスです。 CommandExecutor クラスを直接インスタンス化することはできません。 new CommandExecutor() コンストラクタを呼び出すと、ArgumentError 例外がスローされます。

View the examples



Public Properties
 PropertyDefined By
  enforcedInterrupting : Boolean
[read-only] コマンドが強制中断処理中かどうかを取得します。
CommandExecutor
  interrupting : Boolean
[read-only] コマンドが中断処理中かどうかを取得します。
CommandExecutor
  running : Boolean
[read-only] コマンドが実行中かどうかを取得します。
CommandExecutor
Public Methods
 MethodDefined By
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[override] イベントリスナーオブジェクトを EventIntegrator インスタンスに登録し、リスナーがイベントの通知を受け取るようにします。 このメソッドを使用して登録されたリスナーを removeEventListener() メソッドで削除した場合には、restoreRemovedListeners() メソッドで再登録させることができます。 Register the event listener object into the EventIntegrator instance to get the event notification.
EventIntegrator
 Inherited
addExclusivelyEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
イベントリスナーオブジェクトを EventIntegrator インスタンスに登録し、リスナーがイベントの通知を受け取るようにします。 このメソッドを使用して登録されたリスナーは、IEventIntegrator インスタンスの管理外となるため、removeEventListener() メソッドで削除した場合にも、restoreRemovedListeners() メソッドで再登録させることができません。 Register the event listener object into the EventIntegrator instance to get the event notification.
EventIntegrator
 Inherited
completelyRemoveEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventIntegrator インスタンスからリスナーを削除します。 このメソッドを使用して削除されたリスナーは、restoreRemovedListeners() メソッドで再登録させることができません。 Remove the listener from EventIntegrator instance.
EventIntegrator
 Inherited
dispatchEvent(event:Event):Boolean
[override] イベントをイベントフローに送出します。 Dispatches an event into the event flow.
EventIntegrator
 Inherited
hasEventListener(type:String):Boolean
[override] EventIntegrator インスタンスに、特定のイベントタイプに対して登録されたリスナーがあるかどうかを確認します。 Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventIntegrator
 Inherited
removeAllListeners(completely:Boolean = false):void
addEventListener() メソッド経由で登録された全てのイベントリスナー登録を削除します。 完全に登録を削除しなかった場合には、削除されたイベントリスナーを restoreRemovedListeners() メソッドで復帰させることができます。 Remove the whole event listener registered via addEventListener() method.
EventIntegrator
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
[override] EventIntegrator インスタンスからリスナーを削除します。 このメソッドを使用して削除されたリスナーは、restoreRemovedListeners() メソッドで再登録させることができます。 Remove the listener from EventIntegrator instance.
EventIntegrator
 Inherited
removeEventListener() メソッド、または removeAllListeners() メソッド経由で削除された全てイベントリスナーを再登録します。 Re-register the whole event listener removed via removeEventListener() or removeAllListeners() method.
EventIntegrator
  
toString():String
[override] 指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
CommandExecutor
 Inherited
willTrigger(type:String):Boolean
[override] 指定されたイベントタイプについて、この EventIntegrator インスタンスまたはその祖先にイベントリスナーが登録されているかどうかを確認します。 Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventIntegrator
Events
 Event Summary Defined By
  コマンドの処理が完了した場合に送出されます。CommandExecutor
  コマンド処理中にエラーが発生した場合に送出されます。CommandExecutor
  コマンドの処理を停止した場合に送出されます。CommandExecutor
  コマンドの処理が開始された場合に送出されます。CommandExecutor
Property Detail
__parallelModeproperty
__parallelMode:Boolean

CommandExecutor の実行方法を並列処理にするかどうかを取得または設定します。


Implementation
    progression_internal function get __parallelMode():Boolean
    progression_internal function set __parallelMode(value:Boolean):void
__parentproperty 
__parent:CommandExecutor  [read-only]

この CommandExecutor を子に含んでいる親の CommandExecutor インスタンスを取得します。


Implementation
    progression_internal function get __parent():CommandExecutor
__rootproperty 
__root:CommandExecutor  [read-only]

CommandExecutor ツリー構造の一番上に位置するコマンドを取得します。


Implementation
    progression_internal function get __root():CommandExecutor
enforcedInterruptingproperty 
enforcedInterrupting:Boolean  [read-only]

コマンドが強制中断処理中かどうかを取得します。


Implementation
    public function get enforcedInterrupting():Boolean
interruptingproperty 
interrupting:Boolean  [read-only]

コマンドが中断処理中かどうかを取得します。


Implementation
    public function get interrupting():Boolean
runningproperty 
running:Boolean  [read-only]

コマンドが実行中かどうかを取得します。


Implementation
    public function get running():Boolean
Method Detail
toString()method
override public function toString():String

指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.

Returns
Stringオブジェクトのストリング表現です。 A string representation of the object.
Event Detail
commandComplete Event
Event Object Type: jp.progression.events.CommandEvent
CommandEvent.type property = jp.progression.events.CommandEvent.COMMAND_COMPLETE

コマンドの処理が完了した場合に送出されます。

commandComplete イベントオブジェクトの type プロパティ値を定義します。 The CommandEvent.COMMAND_COMPLETE constant defines the value of the type property of an commandComplete event object.
commandError Event  
Event Object Type: jp.progression.events.CommandEvent
CommandEvent.type property = jp.progression.events.CommandEvent.COMMAND_ERROR

コマンド処理中にエラーが発生した場合に送出されます。

commandError イベントオブジェクトの type プロパティ値を定義します。 The CommandEvent.COMMAND_ERROR constant defines the value of the type property of an commandError event object.
commandInterrupt Event  
Event Object Type: jp.progression.events.CommandEvent
CommandEvent.type property = jp.progression.events.CommandEvent.COMMAND_INTERRUPT

コマンドの処理を停止した場合に送出されます。

commandInterrupt イベントオブジェクトの type プロパティ値を定義します。 The CommandEvent.COMMAND_INTERRUPT constant defines the value of the type property of an commandInterrupt event object.
commandStart Event  
Event Object Type: jp.progression.events.CommandEvent
CommandEvent.type property = jp.progression.events.CommandEvent.COMMAND_START

コマンドの処理が開始された場合に送出されます。

commandStart イベントオブジェクトの type プロパティ値を定義します。 The CommandEvent.COMMAND_START constant defines the value of the type property of an commandStart event object.
Examples