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

IsDoableFilter: For generic moves, provide option to disable them under certain conditions

XMLWordPrintable

      Once generic move factories are actually generic selectors, we'd have something like this:

      <selector>
        <type>CHANGE_MOVE</>
        <planningEntityClassIncludes>...</>
        <planningVariableIncludes>...</>
        <isDoableFilterClass>...MyIsDoableFilterClass</>
      

      Old description:
      This feature would be done for the same purpose as JBRULES-3330 and also implemented in very much the same way - the Move.isMoveDoable() checks for the existence of any filters and runs all of them. If any of them returns false, the move is not doable.

      Perhaps JBRULES-3330 and this one could even share the interface - MoveFilter.filter(Solution s, Move m) and newly added MoveFilter.isMoveDoable(Move m).

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

              Created:
              Updated:
              Resolved: