Package gov.nasa.jpl.aerie.merlin.driver
Record Class UnfinishedActivity
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.UnfinishedActivity
public record UnfinishedActivity(String type, Map<String,gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> arguments, Instant start, gov.nasa.jpl.aerie.types.ActivityInstanceId parentId, List<gov.nasa.jpl.aerie.types.ActivityInstanceId> childIds, Optional<gov.nasa.jpl.aerie.types.ActivityDirectiveId> directiveId)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUnfinishedActivity(String type, Map<String, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> arguments, Instant start, gov.nasa.jpl.aerie.types.ActivityInstanceId parentId, List<gov.nasa.jpl.aerie.types.ActivityInstanceId> childIds, Optional<gov.nasa.jpl.aerie.types.ActivityDirectiveId> directiveId) Creates an instance of aUnfinishedActivityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.List<gov.nasa.jpl.aerie.types.ActivityInstanceId> childIds()Returns the value of thechildIdsrecord component.Optional<gov.nasa.jpl.aerie.types.ActivityDirectiveId> Returns the value of thedirectiveIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.gov.nasa.jpl.aerie.types.ActivityInstanceIdparentId()Returns the value of theparentIdrecord component.start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.withDirectiveId(gov.nasa.jpl.aerie.types.ActivityDirectiveId directiveId)
-
Constructor Details
-
UnfinishedActivity
public UnfinishedActivity(String type, Map<String, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue> arguments, Instant start, gov.nasa.jpl.aerie.types.ActivityInstanceId parentId, List<gov.nasa.jpl.aerie.types.ActivityInstanceId> childIds, Optional<gov.nasa.jpl.aerie.types.ActivityDirectiveId> directiveId) Creates an instance of aUnfinishedActivityrecord class.- Parameters:
type- the value for thetyperecord componentarguments- the value for theargumentsrecord componentstart- the value for thestartrecord componentparentId- the value for theparentIdrecord componentchildIds- the value for thechildIdsrecord componentdirectiveId- the value for thedirectiveIdrecord component
-
-
Method Details
-
withDirectiveId
-
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). -
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
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
parentId
public gov.nasa.jpl.aerie.types.ActivityInstanceId parentId()Returns the value of theparentIdrecord component.- Returns:
- the value of the
parentIdrecord component
-
childIds
Returns the value of thechildIdsrecord component.- Returns:
- the value of the
childIdsrecord component
-
directiveId
Returns the value of thedirectiveIdrecord component.- Returns:
- the value of the
directiveIdrecord component
-