Class Evaluation
java.lang.Object
gov.nasa.jpl.aerie.scheduler.solver.Evaluation
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classdescription of the satisfaction of a single goal in isolation -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final HashMap<Goal, Evaluation.GoalEvaluation> the set of all per-goal evaluations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDuplicates the Evaluationbooleanreturns 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 returnedfetch all goals and their current individual evaluationgetGoals()fetches the set of all goals evaluatedinthashCode()voidupdateGoalEvals(SchedulingActivity oldAct, SchedulingActivity newAct) Replace an old activity by a new one in every goal
-
Field Details
-
goalEvals
the set of all per-goal evaluations
-
-
Constructor Details
-
Evaluation
public Evaluation()
-
-
Method Details
-
forGoal
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
fetches the set of all goals evaluated- Returns:
- the goals that are evaluated
-
duplicate
Duplicates the Evaluation- Returns:
- the duplicate evaluation
-
getGoalEvaluations
fetch all goals and their current individual evaluation- Returns:
- mapping from goals to their current individual evaluation (non-modifiable)
-
equals
-
hashCode
public int hashCode() -
canAssociateMoreToCreatorOf
-
updateGoalEvals
Replace an old activity by a new one in every goal- Parameters:
oldAct- Old ActivitynewAct- New Activity
-