Record Class SchedulingDSL.TimingConstraint.ActivityTimingConstraint
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.TimingConstraint.ActivityTimingConstraint
- All Implemented Interfaces:
SchedulingDSL.TimingConstraint
- Enclosing interface:
SchedulingDSL.TimingConstraint
public static record SchedulingDSL.TimingConstraint.ActivityTimingConstraint(gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeAnchor windowProperty, gov.nasa.jpl.aerie.scheduler.TimeUtility.Operator operator, gov.nasa.jpl.aerie.merlin.protocol.types.Duration operand, boolean singleton)
extends Record
implements SchedulingDSL.TimingConstraint
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.scheduler.server.models.SchedulingDSL.TimingConstraint
SchedulingDSL.TimingConstraint.ActivityTimingConstraint, SchedulingDSL.TimingConstraint.ActivityTimingConstraintFlexibleRange -
Constructor Summary
ConstructorsConstructorDescriptionActivityTimingConstraint(gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeAnchor windowProperty, gov.nasa.jpl.aerie.scheduler.TimeUtility.Operator operator, gov.nasa.jpl.aerie.merlin.protocol.types.Duration operand, boolean singleton) Creates an instance of aActivityTimingConstraintrecord 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.gov.nasa.jpl.aerie.merlin.protocol.types.Durationoperand()Returns the value of theoperandrecord component.gov.nasa.jpl.aerie.scheduler.TimeUtility.Operatoroperator()Returns the value of theoperatorrecord component.booleanReturns the value of thesingletonrecord component.final StringtoString()Returns a string representation of this record class.gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeAnchorReturns the value of thewindowPropertyrecord component.
-
Constructor Details
-
ActivityTimingConstraint
public ActivityTimingConstraint(gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeAnchor windowProperty, gov.nasa.jpl.aerie.scheduler.TimeUtility.Operator operator, gov.nasa.jpl.aerie.merlin.protocol.types.Duration operand, boolean singleton) Creates an instance of aActivityTimingConstraintrecord class.- Parameters:
windowProperty- the value for thewindowPropertyrecord componentoperator- the value for theoperatorrecord componentoperand- the value for theoperandrecord componentsingleton- the value for thesingletonrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
windowProperty
public gov.nasa.jpl.aerie.scheduler.constraints.timeexpressions.TimeAnchor windowProperty()Returns the value of thewindowPropertyrecord component.- Returns:
- the value of the
windowPropertyrecord component
-
operator
public gov.nasa.jpl.aerie.scheduler.TimeUtility.Operator operator()Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-
operand
public gov.nasa.jpl.aerie.merlin.protocol.types.Duration operand()Returns the value of theoperandrecord component.- Returns:
- the value of the
operandrecord component
-
singleton
public boolean singleton()Returns the value of thesingletonrecord component.- Returns:
- the value of the
singletonrecord component
-