Class ActivityTemplateGoal
java.lang.Object
gov.nasa.jpl.aerie.scheduler.goals.Goal
gov.nasa.jpl.aerie.scheduler.goals.ActivityExistentialGoal
gov.nasa.jpl.aerie.scheduler.goals.ActivityTemplateGoal
- Direct Known Subclasses:
CardinalityGoal,CoexistenceGoal,RecurrenceGoal
describes the desired existence of an activity matching a given template/preset
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classthe builder can construct goals piecemeal via a series of method calls -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActivityExpressionthe pattern used to create new instances if none already existprotected ActivityExpressionthe pattern used to match with satisfying activity instancesFields inherited from class gov.nasa.jpl.aerie.scheduler.goals.ActivityExistentialGoal
childCustodyFields inherited from class gov.nasa.jpl.aerie.scheduler.goals.Goal
name, planHorizon, resourceConstraints, simulateAfter, temporalContext -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedctor creates new empty goal without identification / specification client code should use derived type builders to instance goals -
Method Summary
Modifier and TypeMethodDescriptionvoidextractResources(Set<String> names) gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Windows> returns the set of constraints required by the created activity type these are type-level constraints only, and do not include any additional constraints that may be applied to individual instancesMethods inherited from class gov.nasa.jpl.aerie.scheduler.goals.ActivityExistentialGoal
getChildCustodyMethods inherited from class gov.nasa.jpl.aerie.scheduler.goals.Goal
getConflicts, getName, getResourceConstraints, getTemporalContext, setTemporalContext, shouldRollbackIfUnsatisfied
-
Field Details
-
desiredActTemplate
the pattern used to create new instances if none already exist -
matchActTemplate
the pattern used to match with satisfying activity instances
-
-
Constructor Details
-
ActivityTemplateGoal
protected ActivityTemplateGoal()ctor creates new empty goal without identification / specification client code should use derived type builders to instance goals
-
-
Method Details
-
getActTemplate
-
getActivityStateConstraints
public gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Windows> getActivityStateConstraints()returns the set of constraints required by the created activity type these are type-level constraints only, and do not include any additional constraints that may be applied to individual instances- Returns:
- an unmodifiable collection of all the constraints implied by the goal's created activity type
-
extractResources
- Overrides:
extractResourcesin classGoal
-