Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2451

Conditional constraint collectors

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Optional
    • 8.11.0.Final
    • None
    • optaplanner-core
    • None

    Description

      We may want a countIf(Predicate) constraint collector. Works just as count(), except it only counts if the predicate matches.

      Another possible implementation would be a generic conditional(ConstraintCollector, Predicate) collector, which delegates to the nested collector. (Eg. conditionally(count(), predicate).)

      Attachments

        Activity

          People

            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: