An expression that discriminates between valid and invalid states.

Constraints can be based off of activity parameters and placement, resource profiles, or some combination of those.

Hierarchy

  • Constraint

Methods

  • Forbid instances of two activity types from overlapping with each other.

    Parameters

    Returns Constraint

  • Detect when a spans object's cumulative duration either exceeds or falls short of a threshold within any interval of a given width.

    Violations can be reported in various ways by setting the algorithm argument:

    • ExcessSpans detects times when the duration exceeds the threshold and highlights the individual spans that contributed to the threshold violation.
    • ExcessHull detects times when the duration exceeds the threshold and highlights the whole group of spans that contributed to the threshold violation in one interval.
    • DeficitSpans detects times when the duration falls short of the threshold and highlights the individual gaps between spans that contributed to the threshold violation.
    • DeficitHull detects times when the duration falls short of the threshold and highlights the whole group of gaps between spans that contributed to the threshold violation in one interval.

    Parameters

    • spans: Spans

      spans object to detect threshold events on

    • width: Duration

      width of the rolling interval

    • threshold: Duration

      maximum allowable duration within any width interval

    • algorithm: RollingThresholdAlgorithm

      algorithm for reporting violations

    Returns Constraint

Generated using TypeDoc