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

Add abstract class AbstractSolution<S extends Score> which implements all Solution methods, so Workbench domain modeler can reuse it

    XMLWordPrintable

Details

    • NEW
    • NEW

    Description

      It could look something like this:

      public abstract class AbstractSolution<S extends Score> {
        S score;
      
        // getter & setter for score
        ...
      
        public Collection<Object> getProblemFacts() {
          // reflection magic...
          // Proposal A: All fields are problem facts
          // - Ignore field score, fields/getters with @PlanningEntityCollection, ...
          // - Allow explicit exclusions
          // Proposal B: Only fields with a @ProblemFact annotation are problem facts
        }
      
      }
      

      Attachments

        Issue Links

          Activity

            People

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: