Record Class ConstraintRecord
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.server.models.ConstraintRecord
- Record Components:
priority- The constraint's priority on the plan's specification.invocationId- The constraint's invocation id on the plan's specification.constraintId- The constraint's database id.revision- The revision of the constraint's definition.name- The user-defined name of the constraint.type- What language the constraint is in. Contains a type-appropriate definition.arguments- Arguments to be passed to the constraint. Currently only used with JAR-type constraints.
public record ConstraintRecord(long priority, long invocationId, long constraintId, long revision, String name, String description, ConstraintType type, Map<String,gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> arguments)
extends Record
A record of a Constraint to be checked, as interpreted from the database.
-
Constructor Summary
ConstructorsConstructorDescriptionConstraintRecord(long priority, long invocationId, long constraintId, long revision, String name, String description, ConstraintType type, Map<String, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> arguments) Creates an instance of aConstraintRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.longReturns the value of theconstraintIdrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theinvocationIdrecord component.name()Returns the value of thenamerecord component.longpriority()Returns the value of thepriorityrecord component.longrevision()Returns the value of therevisionrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ConstraintRecord
public ConstraintRecord(long priority, long invocationId, long constraintId, long revision, String name, String description, ConstraintType type, Map<String, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> arguments) Creates an instance of aConstraintRecordrecord class.- Parameters:
priority- the value for thepriorityrecord componentinvocationId- the value for theinvocationIdrecord componentconstraintId- the value for theconstraintIdrecord componentrevision- the value for therevisionrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenttype- the value for thetyperecord componentarguments- the value for theargumentsrecord 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 '=='. -
priority
public long priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
invocationId
public long invocationId()Returns the value of theinvocationIdrecord component.- Returns:
- the value of the
invocationIdrecord component
-
constraintId
public long constraintId()Returns the value of theconstraintIdrecord component.- Returns:
- the value of the
constraintIdrecord component
-
revision
public long revision()Returns the value of therevisionrecord component.- Returns:
- the value of the
revisionrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-