Record Class Specification
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.Specification
public record Specification(SpecificationId specificationId, long specificationRevision, PlanId planId, long planRevision, gov.nasa.jpl.aerie.types.Timestamp horizonStartTimestamp, gov.nasa.jpl.aerie.types.Timestamp horizonEndTimestamp, Map<String,gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> simulationArguments, boolean analysisOnly, List<GoalInvocationRecord> goalsByPriority, List<SchedulingConditionRecord> schedulingConditions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSpecification(SpecificationId specificationId, long specificationRevision, PlanId planId, long planRevision, gov.nasa.jpl.aerie.types.Timestamp horizonStartTimestamp, gov.nasa.jpl.aerie.types.Timestamp horizonEndTimestamp, Map<String, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> simulationArguments, boolean analysisOnly, List<GoalInvocationRecord> goalsByPriority, List<SchedulingConditionRecord> schedulingConditions) Creates an instance of aSpecificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theanalysisOnlyrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegoalsByPriorityrecord component.final inthashCode()Returns a hash code value for this object.gov.nasa.jpl.aerie.types.TimestampReturns the value of thehorizonEndTimestamprecord component.gov.nasa.jpl.aerie.types.TimestampReturns the value of thehorizonStartTimestamprecord component.planId()Returns the value of theplanIdrecord component.longReturns the value of theplanRevisionrecord component.Returns the value of theschedulingConditionsrecord component.Returns the value of thesimulationArgumentsrecord component.Returns the value of thespecificationIdrecord component.longReturns the value of thespecificationRevisionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Specification
public Specification(SpecificationId specificationId, long specificationRevision, PlanId planId, long planRevision, gov.nasa.jpl.aerie.types.Timestamp horizonStartTimestamp, gov.nasa.jpl.aerie.types.Timestamp horizonEndTimestamp, Map<String, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> simulationArguments, boolean analysisOnly, List<GoalInvocationRecord> goalsByPriority, List<SchedulingConditionRecord> schedulingConditions) Creates an instance of aSpecificationrecord class.- Parameters:
specificationId- the value for thespecificationIdrecord componentspecificationRevision- the value for thespecificationRevisionrecord componentplanId- the value for theplanIdrecord componentplanRevision- the value for theplanRevisionrecord componenthorizonStartTimestamp- the value for thehorizonStartTimestamprecord componenthorizonEndTimestamp- the value for thehorizonEndTimestamprecord componentsimulationArguments- the value for thesimulationArgumentsrecord componentanalysisOnly- the value for theanalysisOnlyrecord componentgoalsByPriority- the value for thegoalsByPriorityrecord componentschedulingConditions- the value for theschedulingConditionsrecord 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 '=='. -
specificationId
Returns the value of thespecificationIdrecord component.- Returns:
- the value of the
specificationIdrecord component
-
specificationRevision
public long specificationRevision()Returns the value of thespecificationRevisionrecord component.- Returns:
- the value of the
specificationRevisionrecord component
-
planId
Returns the value of theplanIdrecord component.- Returns:
- the value of the
planIdrecord component
-
planRevision
public long planRevision()Returns the value of theplanRevisionrecord component.- Returns:
- the value of the
planRevisionrecord component
-
horizonStartTimestamp
public gov.nasa.jpl.aerie.types.Timestamp horizonStartTimestamp()Returns the value of thehorizonStartTimestamprecord component.- Returns:
- the value of the
horizonStartTimestamprecord component
-
horizonEndTimestamp
public gov.nasa.jpl.aerie.types.Timestamp horizonEndTimestamp()Returns the value of thehorizonEndTimestamprecord component.- Returns:
- the value of the
horizonEndTimestamprecord component
-
simulationArguments
Returns the value of thesimulationArgumentsrecord component.- Returns:
- the value of the
simulationArgumentsrecord component
-
analysisOnly
public boolean analysisOnly()Returns the value of theanalysisOnlyrecord component.- Returns:
- the value of the
analysisOnlyrecord component
-
goalsByPriority
Returns the value of thegoalsByPriorityrecord component.- Returns:
- the value of the
goalsByPriorityrecord component
-
schedulingConditions
Returns the value of theschedulingConditionsrecord component.- Returns:
- the value of the
schedulingConditionsrecord component
-