| java.lang.Object U2.T2.Regression
Regression | public class Regression (Code) | | Provides T2's main regression API. An instance of this class
is a regression engine. When created, it will load saved executions
of the given target class. Running the engine will replay the
executions.
|
Constructor Summary | |
public | Regression(Class C, Pool p, int showdepth) Create a regression engine. |
Method Summary | |
public static void | regress(Class C, Pool pool, PrintStream out, int showdepth) This static method is a main Regression API; it will
implicitly create a regression engine targeting the class C,
and run it. | public static void | regress(Pool pool, String[] args) This is a main Regression API; almost as the other regress.
It will however internally catch exeception and error, and log
appropriate messages. | public void | runMe(PrintStream out) This will run the regression engine on the loaded executions
(see
Regression Regression ). |
maxShowDepth | protected int maxShowDepth(Code) | | |
Regression | public Regression(Class C, Pool p, int showdepth) throws T2Exception(Code) | | Create a regression engine. C is the target class. Upon
creation, saved executions of C will be loaded. Currently this
is assumed to be in the file C.tr.
Parameters: p - The object pool which will be used by the engine; thisshould be exactly the same pool used to generate the loadedexecutions. Parameters: showdepth - Maximum object depth shown when showingobjects in the report. |
regress | public static void regress(Class C, Pool pool, PrintStream out, int showdepth) throws T2Exception(Code) | | This static method is a main Regression API; it will
implicitly create a regression engine targeting the class C,
and run it. It is just the combination of the constructor
Regression followed by runMe.
Parameters: pool - It is important to pass the same type of pool as was used to produce the loaded traces. Parameters: out - The default output stream to which report will be sent. |
regress | public static void regress(Pool pool, String[] args)(Code) | | This is a main Regression API; almost as the other regress.
It will however internally catch exeception and error, and log
appropriate messages. The name of the target class is passed as a string,
along with other options (currently not implemented yet). The report is
by default sent to the console.
See Also: Regression.regress(ClassPoolPrintStreamint) |
runMe | public void runMe(PrintStream out)(Code) | | This will run the regression engine on the loaded executions
(see
Regression Regression ).
|
|
|