'use strict' ; import { Plan } from 'pddl-workspace' ; export enum PlanningOutcome { SUCCESS , FAILURE , KILLED } /**
 * Outcome of the planner execution.
 */ export class PlanningResult { constructor ( public readonly outcome , public readonly plans , public readonly elapsedTime , public readonly error ? ) { } param plans static success ( plans , elapsedTime ) { return new PlanningResult ( PlanningOutcome . SUCCESS , plans , elapsedTime , undefined ) ; } param error static failure ( error ) { return new PlanningResult ( PlanningOutcome . FAILURE , [ ] , Number . NaN , error ) ; } /**
     * Creates the result instance for the case of planner killed by the user.
     */ static killed ( ) { return new PlanningResult ( PlanningOutcome . KILLED , [ ] , Number . NaN , undefined ) ; } }