Record Class SchedulingDSL.GoalSpecifier.GoalApplyWhen
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.GoalSpecifier.GoalApplyWhen
- All Implemented Interfaces:
SchedulingDSL.GoalSpecifier
- Enclosing interface:
SchedulingDSL.GoalSpecifier
public static record SchedulingDSL.GoalSpecifier.GoalApplyWhen(SchedulingDSL.GoalSpecifier goal, gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Windows> windows)
extends Record
implements SchedulingDSL.GoalSpecifier
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.GoalSpecifier
SchedulingDSL.GoalSpecifier.CardinalityGoalDefinition, SchedulingDSL.GoalSpecifier.CoexistenceGoalDefinition, SchedulingDSL.GoalSpecifier.GoalAnd, SchedulingDSL.GoalSpecifier.GoalApplyWhen, SchedulingDSL.GoalSpecifier.GoalOr, SchedulingDSL.GoalSpecifier.Procedure, SchedulingDSL.GoalSpecifier.RecurrenceGoalDefinition -
Constructor Summary
ConstructorsConstructorDescriptionGoalApplyWhen(SchedulingDSL.GoalSpecifier goal, gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Windows> windows) Creates an instance of aGoalApplyWhenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.goal()Returns the value of thegoalrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Windows> windows()Returns the value of thewindowsrecord component.
-
Constructor Details
-
GoalApplyWhen
public GoalApplyWhen(SchedulingDSL.GoalSpecifier goal, gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Windows> windows) Creates an instance of aGoalApplyWhenrecord class.- Parameters:
goal- the value for thegoalrecord componentwindows- the value for thewindowsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
goal
Returns the value of thegoalrecord component.- Returns:
- the value of the
goalrecord component
-
windows
public gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Windows> windows()Returns the value of thewindowsrecord component.- Returns:
- the value of the
windowsrecord component
-