Record Class RelativeActivityTemplate
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.constraints.activities.RelativeActivityTemplate
- Record Components:
type- activity type to scheduleparameterProfiles- the parameters of the activity should be equal to the value of these profiles at the start of the activityrelativeTo- one activity should be placed relative to each span in this expressionrelation- Allen Interval Algebra relation for how the activity should be placed relative to the spanallowReuse- if a single existing activity or activity conflict satisfies the relations for multiple spans, whether it can be used to satisfy all of them, or just one.
public record RelativeActivityTemplate(ActivityType type, Map<String,gov.nasa.jpl.aerie.constraints.model.DiscreteProfile> parameterProfiles, gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Spans> relativeTo, IntervalRelation relation)
extends Record
Defines an activity that should be scheduled relative to a span. Used by SpansGoal.
-
Constructor Summary
ConstructorsConstructorDescriptionRelativeActivityTemplate(ActivityType type, Map<String, gov.nasa.jpl.aerie.constraints.model.DiscreteProfile> parameterProfiles, gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Spans> relativeTo, IntervalRelation relation) Creates an instance of aRelativeActivityTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theparameterProfilesrecord component.relation()Returns the value of therelationrecord component.gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Spans> Returns the value of therelativeTorecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
RelativeActivityTemplate
public RelativeActivityTemplate(ActivityType type, Map<String, gov.nasa.jpl.aerie.constraints.model.DiscreteProfile> parameterProfiles, gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Spans> relativeTo, IntervalRelation relation) Creates an instance of aRelativeActivityTemplaterecord class.- Parameters:
type- the value for thetyperecord componentparameterProfiles- the value for theparameterProfilesrecord componentrelativeTo- the value for therelativeTorecord componentrelation- the value for therelationrecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
parameterProfiles
Returns the value of theparameterProfilesrecord component.- Returns:
- the value of the
parameterProfilesrecord component
-
relativeTo
public gov.nasa.jpl.aerie.constraints.tree.Expression<gov.nasa.jpl.aerie.constraints.time.Spans> relativeTo()Returns the value of therelativeTorecord component.- Returns:
- the value of the
relativeTorecord component
-
relation
Returns the value of therelationrecord component.- Returns:
- the value of the
relationrecord component
-