ASyncCommandSequencer
| Kind of class: | public class |
|---|---|
| Package: | com.bourre.commands |
| Inherits from: | AbstractSyncCommand < AbstractCommand |
| Implements: | |
| Author: | Cédric Néhémie |
| Classpath: | com.bourre.commands.ASyncCommandSequencer |
| File last modified: | Monday, 24 November 2008, 11:36:52 |
Summary
Constructor
- ASyncCommandSequencer (nTimeout:int = -1)
Instance methods
- addCommand (oCommand:ASyncCommand) : Boolean
- clear : void
- Clear all the commands
- addCommandBefore (indexCommand:ASyncCommand) : Boolean
- addCommandAfter (indexCommand:ASyncCommand) : Boolean
- addCommandStart (oCommand:ASyncCommand) : Boolean
- addCommandEnd (oCommand:ASyncCommand) : Boolean
- removeCommand (oCommand:ASyncCommand) : Boolean
- getLength : uint
- getRunningCommand : ASyncCommand
- execute (e:Event = null) : void
- addEventListener (t:String, o:*) : void
- removeEventListener (t:String, o:*) : void
- addListener (o:ASyncCommandSequencerListener) : void
- removeListener (o:ASyncCommandSequencerListener) : void
- _onTimeout (e:TimerEvent) : void
- toString : String
Event handlers
- onCommandTimeoutEVENT : String
- onCommandEnd (e:Event) : void
Constructor
ASyncCommandSequencer
public function ASyncCommandSequencer (
nTimeout:int = -1)
Parameters:
nTimeout:
Instance methods
_onTimeout
public function _onTimeout (
e:TimerEvent) : void
Parameters:
e:
addCommandAfter
Parameters:
indexCommand:
oCommand :
addCommandBefore
Parameters:
indexCommand:
oCommand :
addCommandStart
Parameters:
oCommand:
addEventListener
public function addEventListener (
t:String,
o:*) : void
Parameters:
t:
o:
clear
public function clear (
) : void
Clear all the commands
execute
override public function execute (
e:Event = null) : void
Parameters:
e:
Overrides:
- AbstractSyncCommand.execute
Throws:
- {VISDOC_LINK_0}{VISDOC_CODE_BLOCK_2} — Stateless command use the passed-in event#
as data source for its execution, so the event must provide the right data for
the current {VISDOC_CODE_BLOCK_3} object.
Specified by:
getLength
public function getLength (
) : uint
getRunningCommand
Returns:
- the
ASyncCommandthat running at this time in the sequencer
removeEventListener
public function removeEventListener (
t:String,
o:*) : void
Parameters:
t:
o:
toString
override public function toString (
) : String
Overrides:
- AbstractSyncCommand.toString
Event handlers
onCommandEnd
public function onCommandEnd (
e:Event) : void
Parameters:
e:
Specified by:
onCommandTimeoutEVENT
public static const onCommandTimeoutEVENT:String = "onCommandTimeout"
(read)