@syntest/core
Version:
The common core of the SynTest Framework
77 lines • 1.67 kB
TypeScript
import { Budget } from "./Budget";
import { Encoding } from "../Encoding";
import { SearchAlgorithm } from "../metaheuristics/SearchAlgorithm";
/**
* Budget for the search time of the search process.
*
* @author Mitchell Olsthoorn
*/
export declare class SearchTimeBudget<T extends Encoding> implements Budget<T> {
/**
* The current number of seconds.
* @protected
*/
protected _currentSearchTime: number;
/**
* The maximum number of seconds allowed.
* @protected
*/
protected _maxSearchTime: number;
/**
* The time the tracking started.
* @protected
*/
protected _counterTime: number;
/**
* If the budget is tracking progress
* @protected
*/
protected _tracking: boolean;
/**
* Constructor.
*
* @param maxSearchTime The maximum allowed time in seconds this budget should use
*/
constructor(maxSearchTime?: number);
/**
* @inheritDoc
*/
getRemainingBudget(): number;
/**
* @inheritDoc
*/
getUsedBudget(): number;
/**
* @inheritDoc
*/
getTotalBudget(): number;
/**
* @inheritDoc
*/
reset(): void;
/**
* @inheritDoc
*/
initializationStarted(): void;
/**
* @inheritDoc
*/
initializationStopped(): void;
/**
* @inheritDoc
*/
searchStarted(): void;
/**
* @inheritDoc
*/
searchStopped(): void;
/**
* @inheritDoc
*/
iteration(searchAlgorithm: SearchAlgorithm<T>): void;
/**
* @inheritDoc
*/
evaluation(encoding: T): void;
}
//# sourceMappingURL=SearchTimeBudget.d.ts.map