|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOptionProvider
This interface allows Contributors to initialize their schedule options
when the Schedule has been created via the File->New wizard. Upon
completion of the wizard, the wizard code enumerates all implementors of
the optionProvider extension point. That extension point requires a class
to be identified that implements the IOptionProvider interface.
Then, for each implementor of the extension point, the setDefaultOptionValues()
method is called.
Method Summary | |
---|---|
String[] |
getFeatureIDs()
Called before setDefaultOptionValues() to determine if the options belong in the schedule or not. |
void |
setDefaultOptionValues(com.ibm.rational.test.common.schedule.Schedule theSchedule)
Called whenever a test is added to a schedule, so that contributors can initialize their own options and add them to the Schedule. |
Method Detail |
---|
void setDefaultOptionValues(com.ibm.rational.test.common.schedule.Schedule theSchedule)
public void setDefaultOptionValues(Schedule theSchedule)
{
if (theSchedule != null)
{
MyOptions options = theSchedule.getOptions(MyOptions.class.getName());
if (options == null)
{
options = MyFactory.createMyOptions();
if (options != null)
{
options.setValue1("Hi");
options.setValue2("There!");
options.setIntValue(42);
theSchedule.addOptions(options);
}
}
}
}
Note that in the example above, MyOptions is a class the is derived
from com.ibm.rational.test.common.models.behavior.CBOption
String[] getFeatureIDs()
|
IBM Rational Performance Tester SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |