Record Class ShiftBy<P extends Profile<P>>
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.constraints.tree.ShiftBy<P>
- All Implemented Interfaces:
Expression<P>
public record ShiftBy<P extends Profile<P>>(Expression<P extends Profile<P>> expression, Expression<gov.nasa.jpl.aerie.merlin.protocol.types.Duration> duration)
extends Record
implements Expression<P>
-
Constructor Summary
ConstructorsConstructorDescriptionShiftBy(Expression<P> expression, Expression<gov.nasa.jpl.aerie.merlin.protocol.types.Duration> duration) Creates an instance of aShiftByrecord class. -
Method Summary
Modifier and TypeMethodDescriptionExpression<gov.nasa.jpl.aerie.merlin.protocol.types.Duration> duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.evaluate(SimulationResults results, Interval bounds, EvaluationEnvironment environment) Returns the value of theexpressionrecord component.voidextractResources(Set<String> names) Add the resources referenced by this expression to the given set.final inthashCode()Returns a hash code value for this object.prettyPrint(String prefix) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface gov.nasa.jpl.aerie.constraints.tree.Expression
evaluate, evaluate, evaluate, prettyPrint
-
Constructor Details
-
ShiftBy
public ShiftBy(Expression<P> expression, Expression<gov.nasa.jpl.aerie.merlin.protocol.types.Duration> duration) Creates an instance of aShiftByrecord class.- Parameters:
expression- the value for theexpressionrecord componentduration- the value for thedurationrecord component
-
-
Method Details
-
evaluate
- Specified by:
evaluatein interfaceExpression<P extends Profile<P>>
-
extractResources
Description copied from interface:ExpressionAdd the resources referenced by this expression to the given set.- Specified by:
extractResourcesin interfaceExpression<P extends Profile<P>>
-
prettyPrint
- Specified by:
prettyPrintin interfaceExpression<P extends Profile<P>>
-
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). -
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-