Class TimeExpressionRelativeSimple
java.lang.Object
gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeExpressionRelative
gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeExpressionRelativeSimple
-
Nested Class Summary
Nested classes/interfaces inherited from class gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeExpressionRelative
TimeExpressionRelative.Builder -
Field Summary
FieldsFields inherited from class gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeExpressionRelative
DEF_NAME, operations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongov.nasa.jpl.aerie.constraints.time.IntervalcomputeTime(gov.nasa.jpl.aerie.constraints.model.SimulationResults simulationResults, Plan plan, gov.nasa.jpl.aerie.constraints.time.Interval interval) A TimeExpressionRelative must implement this methodgov.nasa.jpl.aerie.constraints.time.IntervalcomputeTimeRelativeAbsolute(gov.nasa.jpl.aerie.constraints.time.Interval interval) voidextractResources(Set<String> names) Methods inherited from class gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeExpressionRelative
addOperation, afterEnd, afterStart, atStart, beforeEnd, beforeStart, endsBefore, fromAnchor, offsetByAfterEnd, offsetByAfterStart, offsetByBeforeEnd, offsetByBeforeStart
-
Field Details
-
anchor
-
fixed
protected boolean fixed
-
-
Constructor Details
-
TimeExpressionRelativeSimple
-
-
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:TimeExpressionRelativeA TimeExpressionRelative must implement this method- Specified by:
computeTimein classTimeExpressionRelative- Parameters:
plan- the current planinterval- the range on which the relative time expression must be computed- Returns:
- a range of valid times satisfying the expression
-
getAnchor
- Specified by:
getAnchorin classTimeExpressionRelative
-
computeTimeRelativeAbsolute
public gov.nasa.jpl.aerie.constraints.time.Interval computeTimeRelativeAbsolute(gov.nasa.jpl.aerie.constraints.time.Interval interval) -
extractResources
- Specified by:
extractResourcesin classTimeExpressionRelative
-