Class CardinalityGoal


public class CardinalityGoal extends ActivityTemplateGoal
describes the desired coexistence of an activity with another
  • Constructor Details

    • CardinalityGoal

      protected CardinalityGoal()
      /** ctor creates an empty goal without details client code should use builders to instance goals
  • Method Details

    • getConflicts

      public Collection<Conflict> getConflicts(Plan plan, gov.nasa.jpl.aerie.constraints.model.SimulationResults simulationResults, gov.nasa.jpl.aerie.constraints.model.EvaluationEnvironment evaluationEnvironment, gov.nasa.jpl.aerie.merlin.protocol.model.SchedulerModel schedulerModel)
      identifies issues in a plan that diminishes this goal's satisfaction the method must return the same issues in the same order given the same input plan, but they need not be otherwise sorted an empty return list indicates that no issues could be identified in the plan that this goal would care to improve upon collects conflicts wherein a matching anchor activity was found but there was no corresponding target activity instance (and one should probably be created!)
      Overrides:
      getConflicts in class Goal
      Parameters:
      plan - IN: the plan that this goal should be evaluated against
      simulationResults -
      Returns:
      a list of issues in the plan that diminish goal satisfaction