Class MissingActivityInstanceConflict


public class MissingActivityInstanceConflict extends MissingActivityConflict
describes an issue in a plan caused by a specific activity instance missing such conflicts are typically addressed by scheduling the specific instance
  • Field Details

    • instance

      protected SchedulingActivity instance
      the specific activity instance that is desired in the plan
  • Constructor Details

    • MissingActivityInstanceConflict

      public MissingActivityInstanceConflict(ActivityExistentialGoal goal, SchedulingActivity instance, gov.nasa.jpl.aerie.constraints.model.EvaluationEnvironment evaluationEnvironment)
      ctor creates a new conflict regarding a missing activity instance REVIEW: do we want an ActivityInstanceGoal type?
      Parameters:
      goal - IN STORED the dissatisfied goal that issued the conflict
      instance - IN STORED the specific activity instance that is desired in the plan
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • scheduleAt

      public ScheduleAt scheduleAt()
      Specified by:
      scheduleAt in class MissingActivityConflict
    • getTemporalContext

      public gov.nasa.jpl.aerie.constraints.time.Windows getTemporalContext()
      the times over which the goal was dissatisfied and induced this conflict the relevant times may be composed of several discontinous spans the times over which the activity's absence is itself causing a problem does not consider other constraints on the possible activity, eg timing with respect to other events or allowable state transitions or even the activity's own duration limits the times encompass both the start and end of the missing activity (they are not just start windows) REVIEW: maybe better to just have start windows? gets confusing and easy to mix up FINISH: fix up documentation the time at which the desired activity would start does not consider other constraints on the possible activity, eg timing with respect to other events or allowable state transitions or even the activity's own duration limits the times encompass just the desired start times of the missing activity
      Specified by:
      getTemporalContext in class MissingActivityConflict
      Returns:
    • getGoal

      public ActivityExistentialGoal getGoal()
      the goal whose dissatisfaction initially created this conflict
      Overrides:
      getGoal in class Conflict
      Returns:
      reference to the dissatisfied goal that caused this conflict
    • getInstance

      public SchedulingActivity getInstance()
      fetches the specifically requested instance that is desired
      Returns:
      the specifically requested instance that is desired