UNPKG

@syntest/core

Version:

The common core of the SynTest Framework

43 lines 1.31 kB
import { ObjectiveFunction } from "../objective/ObjectiveFunction"; import { Encoding } from "../Encoding"; import { SearchSubject } from "../SearchSubject"; import { Datapoint } from "../../util/Datapoint"; /** * Objective function for the branch criterion. * * @author Mitchell Olsthoorn * @author Annibale Panichella * @author Dimitri Stallenberg */ export declare class BranchObjectiveFunction<T extends Encoding> implements ObjectiveFunction<T> { protected _subject: SearchSubject<T>; protected _id: string; protected _line: number; protected _type: boolean; /** * Constructor. * * @param subject * @param id * @param line * @param type */ constructor(subject: SearchSubject<T>, id: string, line: number, type: boolean); calculateDistance(encoding: T): number; /** * Calculate the branch distance between: covering the branch needed to get a closer approach distance * and the currently covered branch always between 0 and 1 * @param node * @protected */ protected computeBranchDistance(node: Datapoint): number; /** * @inheritDoc */ getIdentifier(): string; /** * @inheritDoc */ getSubject(): SearchSubject<T>; } //# sourceMappingURL=BranchObjectiveFunction.d.ts.map