Class CoexistenceGoal.Builder
java.lang.Object
gov.nasa.jpl.aerie.scheduler.goals.Goal.Builder<CoexistenceGoal.Builder>
gov.nasa.jpl.aerie.scheduler.goals.ActivityExistentialGoal.Builder<CoexistenceGoal.Builder>
gov.nasa.jpl.aerie.scheduler.goals.ActivityTemplateGoal.Builder<CoexistenceGoal.Builder>
gov.nasa.jpl.aerie.scheduler.goals.CoexistenceGoal.Builder
- Enclosing class:
CoexistenceGoal
public static class CoexistenceGoal.Builder
extends ActivityTemplateGoal.Builder<CoexistenceGoal.Builder>
the builder can construct goals piecemeal via a series of method calls
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TimeExpressionRelativeprotected gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Spans> protected TimeExpressionRelativeFields 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 TypeMethodDescriptionaliasForAnchors(String alias) 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 goalscreatePersistentAnchor(PersistentTimeAnchor persistentAnchor) endsAt(TimeAnchor anchor) endsAt(TimeExpressionRelative TimeExpressionRelative) protected CoexistenceGoalfill(CoexistenceGoal 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 aboveforEach(gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Spans> expression) protected CoexistenceGoal.BuildergetThis()returns the current builder object (but typed at the lowest level) should be implemented by the builder at the bottom of the type heirarchystartsAt(TimeAnchor anchor) startsAt(TimeExpressionRelative TimeExpressionRelative) 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
-
Field Details
-
forEach
protected gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Spans> forEach -
startExpr
-
endExpr
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
forEach
public CoexistenceGoal.Builder forEach(gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Spans> expression) -
startsAt
-
endsAt
-
startsAt
-
endsAt
-
endsBefore
-
startsAfterEnd
-
startsAfterStart
-
endsBeforeEnd
-
endsAfterEnd
-
aliasForAnchors
-
createPersistentAnchor
-
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<CoexistenceGoal.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<CoexistenceGoal.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
-