Class Evaluation

java.lang.Object
gov.nasa.jpl.aerie.scheduler.solver.Evaluation

public class Evaluation extends Object
description of how well a plan satisfies its goals different schedulers may evaluate the same plan in different ways the evaluation includes any scoring metrics that the scheduler calculated as well as useful metadata, eg which goals were satisfied by which activity instances
  • Field Details

  • Constructor Details

    • Evaluation

      public Evaluation()
  • Method Details

    • forGoal

      public Evaluation.GoalEvaluation forGoal(Goal goal)
      returns the (possibly new) evaluation for a given goal if there is no current evaluation for the given goal, a new empty one is created and returned
      Parameters:
      goal - the goal to evaluate
      Returns:
      the evaluation of the specified goal
    • getGoals

      public Collection<Goal> getGoals()
      fetches the set of all goals evaluated
      Returns:
      the goals that are evaluated
    • duplicate

      public Evaluation duplicate()
      Duplicates the Evaluation
      Returns:
      the duplicate evaluation
    • getGoalEvaluations

      public Map<Goal,Evaluation.GoalEvaluation> getGoalEvaluations()
      fetch all goals and their current individual evaluation
      Returns:
      mapping from goals to their current individual evaluation (non-modifiable)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • canAssociateMoreToCreatorOf

      public boolean canAssociateMoreToCreatorOf(SchedulingActivity instance)
    • updateGoalEvals

      public void updateGoalEvals(SchedulingActivity oldAct, SchedulingActivity newAct)
      Replace an old activity by a new one in every goal
      Parameters:
      oldAct - Old Activity
      newAct - New Activity