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
Instance methods
Event handlers

Constructor

ASyncCommandSequencer

public function ASyncCommandSequencer (
nTimeout:int = -1)

Parameters:
nTimeout:
 

Instance methods

_onTimeout

public function _onTimeout (
e:TimerEvent) : void

Parameters:
e:
 

addCommand

public function addCommand (
oCommand:ASyncCommand) : Boolean

Parameters:
oCommand:
 

addCommandAfter

public function addCommandAfter (
indexCommand:ASyncCommand, oCommand:ASyncCommand) : Boolean

Parameters:
indexCommand:
 
oCommand :
 

addCommandBefore

public function addCommandBefore (
indexCommand:ASyncCommand, oCommand:ASyncCommand) : Boolean

Parameters:
indexCommand:
 
oCommand :
 

addCommandEnd

public function addCommandEnd (
oCommand:ASyncCommand) : Boolean

Parameters:
oCommand:
 

addCommandStart

public function addCommandStart (
oCommand:ASyncCommand) : Boolean

Parameters:
oCommand:
 

addEventListener

public function addEventListener (
t:String, o:*) : void

Parameters:
t:
 
o:
 

addListener

public function addListener (

Parameters:
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

public function getRunningCommand (

Returns:
  • the ASyncCommand that running at this time in the sequencer

removeCommand

public function removeCommand (
oCommand:ASyncCommand) : Boolean

Parameters:
oCommand:
 

removeEventListener

public function removeEventListener (
t:String, o:*) : void

Parameters:
t:
 
o:
 

removeListener

public function removeListener (

Parameters:
o:
 

toString

override public function toString (
) : String

Overrides:
  • AbstractSyncCommand.toString

Event handlers

onCommandEnd

public function onCommandEnd (
e:Event) : void

Parameters:
e:
 

onCommandTimeoutEVENT

public static const onCommandTimeoutEVENT:String = "onCommandTimeout"
(read)