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 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 a Specification record class.
      Parameters:
      specificationId - the value for the specificationId record component
      specificationRevision - the value for the specificationRevision record component
      planId - the value for the planId record component
      planRevision - the value for the planRevision record component
      horizonStartTimestamp - the value for the horizonStartTimestamp record component
      horizonEndTimestamp - the value for the horizonEndTimestamp record component
      simulationArguments - the value for the simulationArguments record component
      analysisOnly - the value for the analysisOnly record component
      goalsByPriority - the value for the goalsByPriority record component
      schedulingConditions - the value for the schedulingConditions record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • specificationId

      public SpecificationId specificationId()
      Returns the value of the specificationId record component.
      Returns:
      the value of the specificationId record component
    • specificationRevision

      public long specificationRevision()
      Returns the value of the specificationRevision record component.
      Returns:
      the value of the specificationRevision record component
    • planId

      public PlanId planId()
      Returns the value of the planId record component.
      Returns:
      the value of the planId record component
    • planRevision

      public long planRevision()
      Returns the value of the planRevision record component.
      Returns:
      the value of the planRevision record component
    • horizonStartTimestamp

      public gov.nasa.jpl.aerie.types.Timestamp horizonStartTimestamp()
      Returns the value of the horizonStartTimestamp record component.
      Returns:
      the value of the horizonStartTimestamp record component
    • horizonEndTimestamp

      public gov.nasa.jpl.aerie.types.Timestamp horizonEndTimestamp()
      Returns the value of the horizonEndTimestamp record component.
      Returns:
      the value of the horizonEndTimestamp record component
    • simulationArguments

      public Map<String,gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> simulationArguments()
      Returns the value of the simulationArguments record component.
      Returns:
      the value of the simulationArguments record component
    • analysisOnly

      public boolean analysisOnly()
      Returns the value of the analysisOnly record component.
      Returns:
      the value of the analysisOnly record component
    • goalsByPriority

      public List<GoalInvocationRecord> goalsByPriority()
      Returns the value of the goalsByPriority record component.
      Returns:
      the value of the goalsByPriority record component
    • schedulingConditions

      public List<SchedulingConditionRecord> schedulingConditions()
      Returns the value of the schedulingConditions record component.
      Returns:
      the value of the schedulingConditions record component