Record Class SimulationEngine.ResourceUpdates.ResourceUpdate<Dynamics>
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.engine.SimulationEngine.ResourceUpdates.ResourceUpdate<Dynamics>
- Enclosing class:
SimulationEngine.ResourceUpdates
public static record SimulationEngine.ResourceUpdates.ResourceUpdate<Dynamics>(ResourceId resourceId, gov.nasa.jpl.aerie.merlin.protocol.model.Resource<Dynamics> resource, SimulationEngine.ResourceUpdates.ResourceUpdate.Update<Dynamics> update)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionResourceUpdate(ResourceId resourceId, gov.nasa.jpl.aerie.merlin.protocol.model.Resource<Dynamics> resource, SimulationEngine.ResourceUpdates.ResourceUpdate.Update<Dynamics> update) Creates an instance of aResourceUpdaterecord class.ResourceUpdate(gov.nasa.jpl.aerie.merlin.protocol.driver.Querier querier, gov.nasa.jpl.aerie.merlin.protocol.types.Duration currentTime, ResourceId resourceId, gov.nasa.jpl.aerie.merlin.protocol.model.Resource<Dynamics> resource) -
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.merlin.protocol.model.Resource<Dynamics> resource()Returns the value of theresourcerecord component.Returns the value of theresourceIdrecord component.final StringtoString()Returns a string representation of this record class.update()Returns the value of theupdaterecord component.
-
Constructor Details
-
ResourceUpdate
public ResourceUpdate(gov.nasa.jpl.aerie.merlin.protocol.driver.Querier querier, gov.nasa.jpl.aerie.merlin.protocol.types.Duration currentTime, ResourceId resourceId, gov.nasa.jpl.aerie.merlin.protocol.model.Resource<Dynamics> resource) -
ResourceUpdate
public ResourceUpdate(ResourceId resourceId, gov.nasa.jpl.aerie.merlin.protocol.model.Resource<Dynamics> resource, SimulationEngine.ResourceUpdates.ResourceUpdate.Update<Dynamics> update) Creates an instance of aResourceUpdaterecord class.- Parameters:
resourceId- the value for theresourceIdrecord componentresource- the value for theresourcerecord componentupdate- the value for theupdaterecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
resourceId
Returns the value of theresourceIdrecord component.- Returns:
- the value of the
resourceIdrecord component
-
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
update
Returns the value of theupdaterecord component.- Returns:
- the value of the
updaterecord component
-