GeneratorConstraint

A generator-style implementation of Constraint.

The subclass must implement generate, and within it call violate to produce violations. Or if you are using Kotlin, you can use the timeline extension functions such as windows.violateInside() to more easily submit violations.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun defaultMessage(): String?

Default violation message to be displayed to user.

Link copied to clipboard
abstract fun generate(plan: Plan, simResults: SimulationResults)

A generator function that calls violate to produce violations.

Link copied to clipboard
override fun run(plan: Plan, simResults: SimulationResults): Violations

Run the constraint on a plan.