Record Class GenerateConstraintsLibAction
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.server.services.GenerateConstraintsLibAction
public record GenerateConstraintsLibAction(TypescriptCodeGenerationServiceAdapter typescriptCodeGenerationService)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacecommon interface for different possible results of the query -
Constructor Summary
ConstructorsConstructorDescriptionGenerateConstraintsLibAction(TypescriptCodeGenerationServiceAdapter typescriptCodeGenerationService) Creates an instance of aGenerateConstraintsLibActionrecord 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.Generate the source files used for running constraint definitions.final StringtoString()Returns a string representation of this record class.Returns the value of thetypescriptCodeGenerationServicerecord component.
-
Constructor Details
-
GenerateConstraintsLibAction
public GenerateConstraintsLibAction(TypescriptCodeGenerationServiceAdapter typescriptCodeGenerationService) Creates an instance of aGenerateConstraintsLibActionrecord class.- Parameters:
typescriptCodeGenerationService- the value for thetypescriptCodeGenerationServicerecord component
-
-
Method Details
-
run
public GenerateConstraintsLibAction.Response run(gov.nasa.jpl.aerie.types.MissionModelId missionModelId, Optional<PlanId> planId) Generate the source files used for running constraint definitions.- Returns:
- a response object wrapping the results of generating the code (either successful or not)
-
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). -
typescriptCodeGenerationService
Returns the value of thetypescriptCodeGenerationServicerecord component.- Returns:
- the value of the
typescriptCodeGenerationServicerecord component
-