AbstractIterationCommand

Kind of class:public class
Package:com.bourre.commands
Inherits from:none
Implements:
Classpath:com.bourre.commands.AbstractIterationCommand
File last modified:Monday, 24 November 2008, 11:36:52

Summary


Constructor
Instance methods
  • execute (e:Event = null) : void
    • Override the execute virtual method
  • iterator : Iterator
    • Returns the iterator composed by this command.
  • setIterator (i:Iterator) : void
    • Defines which iterator is composed by this command
  • toString : String
    • Returns the string representation of this object.

Constructor

AbstractIterationCommand

public function AbstractIterationCommand (

Initializes this iteration command with the passed-in

Iterator.

Instance methods

execute

public function execute (
e:Event = null) : void

Override the execute virtual method
to create a concret iteration command. Concret command
may use the passed-in event as data source for
their operation. Used with a LoopCommandthe passed-in event is an IterationEvent.
Parameters:
e:
event object that will be used as data source by the command
Throws:
  • {VISDOC_LINK_0}UnimplementedVirtualMethodException — Concret
    command doesn't override the execute method

iterator

public function iterator (

Returns the iterator composed by this command.
Returns:
  • the iterator composed by this command
Specified by:

setIterator

public function setIterator (
i:Iterator) : void

Defines which iterator is composed by this command
Parameters:
i:
iterator instance to be used by this command

toString

public function toString (
) : String

Returns the string representation of this object.
Returns:
  • the string representation of this object