KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > test > internal > performance > eval > IEvaluator


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.test.internal.performance.eval;
12
13 import org.eclipse.test.performance.PerformanceMeter;
14
15 /**
16  * @since 3.1
17  */

18 public interface IEvaluator {
19
20     /**
21      * Evaluates the given performance meter by comparing its measurements
22      * against the reference data selected with
23      * <code>setReferenceFilterProperties</code>.
24      *
25      * @param performanceMeter the performance meter
26      * @throws RuntimeException when the comparison does not pass
27      */

28     void evaluate(PerformanceMeter performanceMeter) throws RuntimeException JavaDoc;
29
30     /**
31      * Sets the asserts that should be evaluated by the evaluator.
32      *
33      * @param asserts the assert checkers that should be evaluated by the evaluator
34      */

35     void setAssertCheckers(AssertChecker[] asserts);
36
37     /**
38      * Selects the reference build against which the current session will
39      * be compared in <code>evaluate</code>.
40      * @param driver
41      * @param timestamp the timestamp of the reference, may be null to use any
42      */

43     void setReferenceFilterProperties(String JavaDoc driver, String JavaDoc timestamp);
44 }
45
Popular Tags