Class TimeExpressionRelativeSimple

java.lang.Object
gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeExpressionRelative
gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeExpressionRelativeSimple

public class TimeExpressionRelativeSimple extends TimeExpressionRelative
  • Field Details

    • anchor

      protected final TimeAnchor anchor
    • fixed

      protected boolean fixed
  • Constructor Details

    • TimeExpressionRelativeSimple

      public TimeExpressionRelativeSimple(TimeAnchor anchor, boolean fixed)
  • Method Details

    • computeTime

      public gov.nasa.jpl.aerie.constraints.time.Interval computeTime(gov.nasa.jpl.aerie.constraints.model.SimulationResults simulationResults, Plan plan, gov.nasa.jpl.aerie.constraints.time.Interval interval)
      Description copied from class: TimeExpressionRelative
      A TimeExpressionRelative must implement this method
      Specified by:
      computeTime in class TimeExpressionRelative
      Parameters:
      plan - the current plan
      interval - the range on which the relative time expression must be computed
      Returns:
      a range of valid times satisfying the expression
    • getAnchor

      public Optional<TimeAnchor> getAnchor()
      Specified by:
      getAnchor in class TimeExpressionRelative
    • computeTimeRelativeAbsolute

      public gov.nasa.jpl.aerie.constraints.time.Interval computeTimeRelativeAbsolute(gov.nasa.jpl.aerie.constraints.time.Interval interval)
    • extractResources

      public void extractResources(Set<String> names)
      Specified by:
      extractResources in class TimeExpressionRelative