@specs-feup/lara
Version:
A js port of the popular framework for building source-to-source compilers
29 lines • 866 B
TypeScript
import { TimerUnit } from "./TimeUnits.js";
/**
* Allows checkpointing of generic objects.
*/
export default class Checkpoint {
checkpointName: string;
interval: number | undefined;
currentObject: object | undefined;
timestamp: number | undefined;
constructor(checkpointName: string);
/**
* Monitors the given object. If there is a saved filed from a previous execution, returns the saved object instead.
*
* @returns The object that will be monitored
*/
monitor(object: object): object;
save(): void;
setInterval(interval: number, timeUnit?: TimerUnit): void;
stop(): void;
/**
* Saves the current object.
*/
private saveManual;
/**
* @returns The checkpoint file for the object being monitored
*/
private getCheckpointFile;
}
//# sourceMappingURL=Checkpoint.d.ts.map