com.ibm.rational.test.lt.kernel.action

Interface IFor

  • All Superinterfaces:
    IContainer, ICountable, IKAction, IKLog, IKSemaphore, ILoop, ITestExecutionServices, IWhile, Runnable
    All Known Subinterfaces:
    IPacedLoop


    public interface IFor
    extends IWhile
    A 'for' loop.

    There are four basic elements to a 'for' loop:

    • Initialization
    • Continuation
    • Increment
    • Body

    Think of these in the following way:

    for ( initialization ; continuation ; increment ) { body; }

    Initalization performs some arbitrary action as setup for the loop.

    Continuation defines the condition under which the loop should continue.

    Increment performs some arbitrary action that will result in an incremental change to the execution of the loop.

    Body denotes a special container that holds all the actions that need to be performed as part of the loop.

    Notes:

    • This interface does not assume that the loop is for a certain number of times.
    • In general, an action should be set up before the loop to maintain and communicate state between the initialization, continuation, and increment steps. Access its values the way you would any other IKAction.
    See Also:
    IKAction, ICondition, ILoop
    • Method Detail

      • setInitialization

        void setInitialization(IKAction action)
        Specify an action to perform at initialization
        Parameters:
        action - the action
      • setIncrement

        void setIncrement(IKAction action)
        Specify an action to perform when incrementing the loop.
        Parameters:
        action - the action
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.