@syntest/core
Version:
The common core of the SynTest Framework
36 lines • 1.03 kB
TypeScript
import { ObjectiveFunction } from "../objective/ObjectiveFunction";
import { Encoding } from "../Encoding";
import { SearchSubject } from "../SearchSubject";
/**
* Objective function for the exception criterion.
*
* This objective function should not be added manually to the objective manager.
* It is added dynamically when an exception occurs on runtime.
*
* @author Mitchell Olsthoorn
*/
export declare class ExceptionObjectiveFunction<T extends Encoding> implements ObjectiveFunction<T> {
protected _subject: SearchSubject<T>;
protected _id: string;
protected _message: string;
/**
* Constructor.
*
* @param subject
* @param id
*/
constructor(subject: SearchSubject<T>, id: string, message: string);
/**
* @inheritDoc
*/
calculateDistance(encoding: T): number;
/**
* @inheritDoc
*/
getIdentifier(): string;
/**
* @inheritDoc
*/
getSubject(): SearchSubject<T>;
}
//# sourceMappingURL=ExceptionObjectiveFunction.d.ts.map