Class: ValidationReporterImpl
Implements
Constructors
Constructor
Returns
ValidationReporterImpl
Methods
analyzeSolution()
Parameters
| Parameter | Type |
|---|---|
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()
Parameters
| Parameter | Type |
|---|---|
exclusion | CoverageExclusion |
Returns
void
Implementation of
ValidationReporter.excludeFromCoverage
getExclusions()
Returns
CoverageExclusion[]
Implementation of
ValidationReporter.getExclusions
getTrackedConstraints()
Returns
TrackedConstraint[]
getValidation()
Returns
ScheduleValidation
Implementation of
ValidationReporter.getValidation
hasErrors()
Returns
boolean
Implementation of
ValidationReporter.hasErrors
reportCoverageError()
Parameters
| Parameter | Type |
|---|---|
error | Omit<CoverageError, "type" | "id"> |
Returns
void
Implementation of
ValidationReporter.reportCoverageError
reportCoveragePassed()
Parameters
| Parameter | Type |
|---|---|
passed | Omit<CoveragePassed, "type" | "id"> |
Returns
void
Implementation of
ValidationReporter.reportCoveragePassed
reportCoverageViolation()
Parameters
| Parameter | Type |
|---|---|
violation | Omit<CoverageViolation, "type" | "id"> |
Returns
void
Implementation of
ValidationReporter.reportCoverageViolation
reportRuleError()
Parameters
| Parameter | Type |
|---|---|
error | Omit<RuleError, "type" | "id"> |
Returns
void
Implementation of
ValidationReporter.reportRuleError
reportRulePassed()
Parameters
| Parameter | Type |
|---|---|
passed | Omit<RulePassed, "type" | "id"> |
Returns
void
Implementation of
ValidationReporter.reportRulePassed
reportRuleViolation()
Parameters
| Parameter | Type |
|---|---|
violation | Omit<RuleViolation, "type" | "id"> |
Returns
void
Implementation of
ValidationReporter.reportRuleViolation
reportSolverError()
Parameters
| Parameter | Type |
|---|---|
reason | string |
Returns
void
Implementation of
ValidationReporter.reportSolverError
trackConstraint()
Parameters
| Parameter | Type |
|---|---|
constraint | TrackedConstraint |
Returns
void
Implementation of
ValidationReporter.trackConstraint