Class CardinalityGoal.Builder
java.lang.Object
gov.nasa.jpl.aerie.scheduler.goals.Goal.Builder<CardinalityGoal.Builder>
gov.nasa.jpl.aerie.scheduler.goals.ActivityExistentialGoal.Builder<CardinalityGoal.Builder>
gov.nasa.jpl.aerie.scheduler.goals.ActivityTemplateGoal.Builder<CardinalityGoal.Builder>
gov.nasa.jpl.aerie.scheduler.goals.CardinalityGoal.Builder
- Enclosing class:
CardinalityGoal
public static class CardinalityGoal.Builder
extends ActivityTemplateGoal.Builder<CardinalityGoal.Builder>
the builder can construct goals piecemeal via a series of method calls
-
Field Summary
Fields inherited from class gov.nasa.jpl.aerie.scheduler.goals.ActivityTemplateGoal.Builder
matchingActTemplate, thereExistsFields 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 goalsduration(gov.nasa.jpl.aerie.constraints.time.Interval durationRange) protected CardinalityGoalfill(CardinalityGoal 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 aboveprotected CardinalityGoal.BuildergetThis()returns the current builder object (but typed at the lowest level) should be implemented by the builder at the bottom of the type heirarchyoccurences(Range<Integer> occurrenceRange) Methods inherited from class gov.nasa.jpl.aerie.scheduler.goals.ActivityTemplateGoal.Builder
fill, match, thereExistsOneMethods 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, named, shouldRollbackIfUnsatisfied, simulateAfter, startingAt, withinPlanHorizon
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
duration
-
occurences
-
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 classActivityTemplateGoal.Builder<CardinalityGoal.Builder>- Returns:
- a newly allocated goal object matching all specifications
-
getThis
returns the current builder object (but typed at the lowest level) should be implemented by the builder at the bottom of the type heirarchy- Specified by:
getThisin classGoal.Builder<CardinalityGoal.Builder>- Returns:
- reference to the current builder object (specifically typed)
-
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 object, with details filled in
-