Record Class CachedSimulationService
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.server.services.CachedSimulationService
- All Implemented Interfaces:
SimulationService
public record CachedSimulationService(ResultsCellRepository store)
extends Record
implements SimulationService
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aCachedSimulationServicerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.get(PlanId planId, SimulationDatasetId simulationDatasetId) get(PlanId planId, RevisionData revisionData) getSimulationResults(PlanId planId, boolean forceResim, RevisionData revisionData, String requestedBy) final inthashCode()Returns a hash code value for this object.store()Returns the value of thestorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedSimulationService
Creates an instance of aCachedSimulationServicerecord class.- Parameters:
store- the value for thestorerecord component
-
-
Method Details
-
getSimulationResults
public ResultsProtocol.State getSimulationResults(PlanId planId, boolean forceResim, RevisionData revisionData, String requestedBy) - Specified by:
getSimulationResultsin interfaceSimulationService
-
get
- Specified by:
getin interfaceSimulationService
-
get
public Optional<SimulationResultsHandle> get(PlanId planId, SimulationDatasetId simulationDatasetId) throws SimulationDatasetMismatchException - Specified by:
getin interfaceSimulationService- Throws:
SimulationDatasetMismatchException
-
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). -
store
Returns the value of thestorerecord component.- Returns:
- the value of the
storerecord component
-