Skip to main content

Class: ValidationReporterImpl

Implements

Constructors

Constructor

new ValidationReporterImpl(): ValidationReporterImpl;

Returns

ValidationReporterImpl

Methods

analyzeSolution()

analyzeSolution(response): void;

Parameters

ParameterType
response{ error?: string; softViolations?: { actualValue: number; constraintId: string; targetValue: number; violationAmount: number; }[]; solutionInfo?: string; statistics?: { branches?: number; conflicts?: number; solveTimeMs?: number; }; status: "OPTIMAL" | "FEASIBLE" | "INFEASIBLE" | "TIMEOUT" | "ERROR"; values?: Record<string, number>; }
response.error?string
response.softViolations?{ actualValue: number; constraintId: string; targetValue: number; violationAmount: number; }[]
response.solutionInfo?string
response.statistics?{ branches?: number; conflicts?: number; solveTimeMs?: number; }
response.statistics.branches?number
response.statistics.conflicts?number
response.statistics.solveTimeMs?number
response.status"OPTIMAL" | "FEASIBLE" | "INFEASIBLE" | "TIMEOUT" | "ERROR"
response.values?Record<string, number>

Returns

void

Implementation of

ValidationReporter.analyzeSolution

excludeFromCoverage()

excludeFromCoverage(exclusion): void;

Parameters

ParameterType
exclusionCoverageExclusion

Returns

void

Implementation of

ValidationReporter.excludeFromCoverage

getExclusions()

getExclusions(): CoverageExclusion[];

Returns

CoverageExclusion[]

Implementation of

ValidationReporter.getExclusions

getTrackedConstraints()

getTrackedConstraints(): TrackedConstraint[];

Returns

TrackedConstraint[]

getValidation()

getValidation(): ScheduleValidation;

Returns

ScheduleValidation

Implementation of

ValidationReporter.getValidation

hasErrors()

hasErrors(): boolean;

Returns

boolean

Implementation of

ValidationReporter.hasErrors

reportCoverageError()

reportCoverageError(error): void;

Parameters

ParameterType
errorOmit<CoverageError, "type" | "id">

Returns

void

Implementation of

ValidationReporter.reportCoverageError

reportCoveragePassed()

reportCoveragePassed(passed): void;

Parameters

ParameterType
passedOmit<CoveragePassed, "type" | "id">

Returns

void

Implementation of

ValidationReporter.reportCoveragePassed

reportCoverageViolation()

reportCoverageViolation(violation): void;

Parameters

ParameterType
violationOmit<CoverageViolation, "type" | "id">

Returns

void

Implementation of

ValidationReporter.reportCoverageViolation

reportRuleError()

reportRuleError(error): void;

Parameters

ParameterType
errorOmit<RuleError, "type" | "id">

Returns

void

Implementation of

ValidationReporter.reportRuleError

reportRulePassed()

reportRulePassed(passed): void;

Parameters

ParameterType
passedOmit<RulePassed, "type" | "id">

Returns

void

Implementation of

ValidationReporter.reportRulePassed

reportRuleViolation()

reportRuleViolation(violation): void;

Parameters

ParameterType
violationOmit<RuleViolation, "type" | "id">

Returns

void

Implementation of

ValidationReporter.reportRuleViolation

reportSolverError()

reportSolverError(reason): void;

Parameters

ParameterType
reasonstring

Returns

void

Implementation of

ValidationReporter.reportSolverError

trackConstraint()

trackConstraint(constraint): void;

Parameters

ParameterType
constraintTrackedConstraint

Returns

void

Implementation of

ValidationReporter.trackConstraint