Class ActivityTemplateGoal.Builder<T extends ActivityTemplateGoal.Builder<T>>
java.lang.Object
gov.nasa.jpl.aerie.scheduler.goals.Goal.Builder<T>
gov.nasa.jpl.aerie.scheduler.goals.ActivityExistentialGoal.Builder<T>
gov.nasa.jpl.aerie.scheduler.goals.ActivityTemplateGoal.Builder<T>
- Direct Known Subclasses:
CardinalityGoal.Builder,CoexistenceGoal.Builder,RecurrenceGoal.Builder
- Enclosing class:
ActivityTemplateGoal
public abstract static class ActivityTemplateGoal.Builder<T extends ActivityTemplateGoal.Builder<T>>
extends ActivityExistentialGoal.Builder<T>
the builder can construct goals piecemeal via a series of method calls
-
Field Summary
FieldsFields inherited from class gov.nasa.jpl.aerie.scheduler.goals.ActivityExistentialGoal.Builder
childCustodyFields inherited from class gov.nasa.jpl.aerie.scheduler.goals.Goal.Builder
ending, name, planHorizon, range, resourceConstraints, starting -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()uses all pending specifications to construct a matching new goal object this is typically the last client call after a chain of specifiers, but the builder object remains viable to be further specified and build additional goalsprotected ActivityTemplateGoalfill(ActivityTemplateGoal goal) populates the provided goal with specifiers from this builder and above typically called by any derived builder classes to fill in the specifiers managed at this builder level and abovematch(ActivityExpression expression) thereExistsOne(ActivityExpression template) specifies the activity that must exist, and how to create it if necessary this specifier is required.Methods inherited from class gov.nasa.jpl.aerie.scheduler.goals.ActivityExistentialGoal.Builder
fill, ownedMethods inherited from class gov.nasa.jpl.aerie.scheduler.goals.Goal.Builder
attachStateConstraint, endingAt, fill, forAllTimeIn, getThis, named, shouldRollbackIfUnsatisfied, simulateAfter, startingAt, withinPlanHorizon
-
Field Details
-
thereExists
-
matchingActTemplate
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
thereExistsOne
specifies the activity that must exist, and how to create it if necessary this specifier is required. it replaces any previous specification.- Parameters:
template- IN a pattern for matching satisfying activity instances with the ability to create new instances if necessary- Returns:
- this builder, ready for additional specification
-
match
-
build
uses all pending specifications to construct a matching new goal object this is typically the last client call after a chain of specifiers, but the builder object remains viable to be further specified and build additional goals- Overrides:
buildin classActivityExistentialGoal.Builder<T extends ActivityTemplateGoal.Builder<T>>- Returns:
- a newly allocated goal object matching all specifications
-
fill
populates the provided goal with specifiers from this builder and above typically called by any derived builder classes to fill in the specifiers managed at this builder level and above- Parameters:
goal- IN/OUT a goal object to be filled with specifiers from this level of builder and above- Returns:
- the provided goal object, with details filled in
-