net.sf.tomp.xtcl.command
Class Sequence

java.lang.Object
  extended by net.sf.tomp.xtcl.command.AbstractCommand
      extended by net.sf.tomp.xtcl.command.Sequence
All Implemented Interfaces:
Command

public class Sequence
extends AbstractCommand

A Sequence of Commands, will be executed sequentially, one-after-another

Author:
tomp

Constructor Summary
Sequence()
           
 
Method Summary
protected  java.lang.String commandsToString()
          DOCUMENT ME!
 int execute(Context c)
          DOCUMENT ME!
protected  int execute(Context c, int i)
          DOCUMENT ME!
 void setBreakOnError(boolean b)
          Sets whether processing of this Command Sequence should stop if an error is encountered.
 void setCommands(Command[] c)
          Set the array of Command into this Sequence
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class net.sf.tomp.xtcl.command.AbstractCommand
done, initParameters, listArray, listList, listMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sequence

public Sequence()
Method Detail

setBreakOnError

public void setBreakOnError(boolean b)
Sets whether processing of this Command Sequence should stop if an error is encountered.

Parameters:
b - if true, the processing stops on errors

setCommands

public void setCommands(Command[] c)
Set the array of Command into this Sequence

Parameters:
c - Commands to set into this

execute

public int execute(Context c)
            throws java.lang.Exception
DOCUMENT ME!

Specified by:
execute in interface Command
Overrides:
execute in class AbstractCommand
Parameters:
c - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.Exception - DOCUMENT ME!

commandsToString

protected java.lang.String commandsToString()
DOCUMENT ME!

Returns:
DOCUMENT ME!

execute

protected int execute(Context c,
                      int i)
               throws java.lang.Exception
DOCUMENT ME!

Parameters:
c - DOCUMENT ME!
i - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.Exception - DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!


Copyright © 2004-2005 Masaryk University in Brno, Faculty of Informatics, Czech Republic. All Rights Reserved.