IBM Rational Performance Tester SDK

com.ibm.rational.test.lt.kernel.services
Class RPTLoopEvent

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.ibm.rational.test.lt.kernel.services.RPTEvent
                  extended by com.ibm.rational.test.lt.kernel.services.RPTLoopEvent
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
RPTBreakLoopEvent, RPTContinueLoopEvent

public abstract class RPTLoopEvent
extends RPTEvent

This class is the base class for the group of RPTEvents that are thrown to cause an immediate break or continue in an loop in the behavior model. This class extends RPTEvent and changes the default value of severity to MessageEvent.INFO and changes the default to not show the stack trace.

See Also:
Serialized Form

Constructor Summary
RPTLoopEvent()
           
RPTLoopEvent(String message)
           
RPTLoopEvent(String message, String loopName)
           
RPTLoopEvent(String message, Throwable cause)
           
RPTLoopEvent(Throwable cause)
           
 
Method Summary
 String getLoopName()
           
 ILoop getTargetLoop()
           
 void setTargetLoop(ILoop target)
          Sets the loop which is to catch this event and perform either the break or continue.
 
Methods inherited from class com.ibm.rational.test.lt.kernel.services.RPTEvent
clone, getSeverity, isShowStackTrace, setSeverity, setShowStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RPTLoopEvent

public RPTLoopEvent()

RPTLoopEvent

public RPTLoopEvent(String message,
                    Throwable cause)

RPTLoopEvent

public RPTLoopEvent(String message)

RPTLoopEvent

public RPTLoopEvent(Throwable cause)

RPTLoopEvent

public RPTLoopEvent(String message,
                    String loopName)
Method Detail

setTargetLoop

public void setTargetLoop(ILoop target)
Sets the loop which is to catch this event and perform either the break or continue. The default is to affect the nearest enclosing loop.

Parameters:
target - The loop to break or continue.

getTargetLoop

public ILoop getTargetLoop()

getLoopName

public String getLoopName()

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.