Record Class PlanMetadata
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.server.models.PlanMetadata
- Record Components:
planId- unique identifier of the plan containerplanRev- the revision number of the plan currently stored in aeriehorizon- declared time span of the plan, in both scheduler/merlin notationsmodelId- identifier of the mission model the plan relies onmodelPath- relative file path within merlin filesystem to the mission model jarmodelName- the registered name of the mission model to use from the model jarmodelVersion- the version identifier of the mission model to use from the model jarmodelConfiguration- plan-specific arguments to tune the behavior of the mission model
public record PlanMetadata(PlanId planId, long planRev, gov.nasa.jpl.aerie.scheduler.model.PlanningHorizon horizon, long modelId, Path modelPath, String modelName, String modelVersion, Map<String,gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> modelConfiguration)
extends Record
plan details read from merlin services that are used by the scheduler
-
Constructor Summary
ConstructorsConstructorDescriptionPlanMetadata(PlanId planId, long planRev, gov.nasa.jpl.aerie.scheduler.model.PlanningHorizon horizon, long modelId, Path modelPath, String modelName, String modelVersion, Map<String, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> modelConfiguration) Creates an instance of aPlanMetadatarecord 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.scheduler.model.PlanningHorizonhorizon()Returns the value of thehorizonrecord component.Returns the value of themodelConfigurationrecord component.longmodelId()Returns the value of themodelIdrecord component.Returns the value of themodelNamerecord component.Returns the value of themodelPathrecord component.Returns the value of themodelVersionrecord component.planId()Returns the value of theplanIdrecord component.longplanRev()Returns the value of theplanRevrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlanMetadata
public PlanMetadata(PlanId planId, long planRev, gov.nasa.jpl.aerie.scheduler.model.PlanningHorizon horizon, long modelId, Path modelPath, String modelName, String modelVersion, Map<String, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> modelConfiguration) Creates an instance of aPlanMetadatarecord class.- Parameters:
planId- the value for theplanIdrecord componentplanRev- the value for theplanRevrecord componenthorizon- the value for thehorizonrecord componentmodelId- the value for themodelIdrecord componentmodelPath- the value for themodelPathrecord componentmodelName- the value for themodelNamerecord componentmodelVersion- the value for themodelVersionrecord componentmodelConfiguration- the value for themodelConfigurationrecord 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 '=='. -
planId
Returns the value of theplanIdrecord component.- Returns:
- the value of the
planIdrecord component
-
planRev
public long planRev()Returns the value of theplanRevrecord component.- Returns:
- the value of the
planRevrecord component
-
horizon
public gov.nasa.jpl.aerie.scheduler.model.PlanningHorizon horizon()Returns the value of thehorizonrecord component.- Returns:
- the value of the
horizonrecord component
-
modelId
public long modelId()Returns the value of themodelIdrecord component.- Returns:
- the value of the
modelIdrecord component
-
modelPath
Returns the value of themodelPathrecord component.- Returns:
- the value of the
modelPathrecord component
-
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
modelVersion
Returns the value of themodelVersionrecord component.- Returns:
- the value of the
modelVersionrecord component
-
modelConfiguration
Returns the value of themodelConfigurationrecord component.- Returns:
- the value of the
modelConfigurationrecord component
-