Record Class SimulationAgent
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.server.services.SimulationAgent
public record SimulationAgent(PlanService planService, MissionModelService missionModelService, long simulationProgressPollPeriod)
extends Record
-
Constructor Summary
ConstructorDescriptionSimulationAgent
(PlanService planService, MissionModelService missionModelService, long simulationProgressPollPeriod) Creates an instance of aSimulationAgent
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themissionModelService
record component.Returns the value of theplanService
record component.void
simulate
(PlanId planId, RevisionData revisionData, ResultsProtocol.WriterRole writer, Supplier<Boolean> canceledListener, gov.nasa.jpl.aerie.merlin.driver.resources.SimulationResourceManager resourceManager) long
Returns the value of thesimulationProgressPollPeriod
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
SimulationAgent
public SimulationAgent(PlanService planService, MissionModelService missionModelService, long simulationProgressPollPeriod) Creates an instance of aSimulationAgent
record class.- Parameters:
planService
- the value for theplanService
record componentmissionModelService
- the value for themissionModelService
record componentsimulationProgressPollPeriod
- the value for thesimulationProgressPollPeriod
record component
-
-
Method Details
-
simulate
public void simulate(PlanId planId, RevisionData revisionData, ResultsProtocol.WriterRole writer, Supplier<Boolean> canceledListener, gov.nasa.jpl.aerie.merlin.driver.resources.SimulationResourceManager resourceManager) -
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 '=='. -
planService
Returns the value of theplanService
record component.- Returns:
- the value of the
planService
record component
-
missionModelService
Returns the value of themissionModelService
record component.- Returns:
- the value of the
missionModelService
record component
-
simulationProgressPollPeriod
public long simulationProgressPollPeriod()Returns the value of thesimulationProgressPollPeriod
record component.- Returns:
- the value of the
simulationProgressPollPeriod
record component
-