| /******************************************************************************* |
| * Copyright (c) 2000, 2005 IBM Corporation and others. |
| * |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.test.internal.performance.eval; |
| |
| import org.eclipse.test.performance.PerformanceMeter; |
| |
| /** |
| * @since 3.1 |
| */ |
| public interface IEvaluator { |
| |
| /** |
| * Evaluates the given performance meter by comparing its measurements against the reference data selected with |
| * <code>setReferenceFilterProperties</code>. |
| * |
| * @param performanceMeter |
| * the performance meter |
| * @throws RuntimeException |
| * when the comparison does not pass |
| */ |
| void evaluate(PerformanceMeter performanceMeter) throws RuntimeException; |
| |
| /** |
| * Sets the asserts that should be evaluated by the evaluator. |
| * |
| * @param asserts |
| * the assert checkers that should be evaluated by the evaluator |
| */ |
| void setAssertCheckers(AssertChecker[] asserts); |
| |
| /** |
| * Selects the reference build against which the current session will be compared in <code>evaluate</code>. |
| * |
| * @param driver |
| * @param timestamp |
| * the timestamp of the reference, may be null to use any |
| */ |
| void setReferenceFilterProperties(String driver, String timestamp); |
| } |