Package gov.nasa.jpl.aerie.merlin.driver
Record Class CachedSimulationEngine
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.CachedSimulationEngine
public record CachedSimulationEngine(gov.nasa.jpl.aerie.merlin.protocol.types.Duration endsAt, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId,gov.nasa.jpl.aerie.types.ActivityDirective> activityDirectives, SimulationEngine simulationEngine, gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<gov.nasa.jpl.aerie.types.ActivityDirectiveId> activityTopic, MissionModel<?> missionModel, InMemorySimulationResourceManager resourceManager)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCachedSimulationEngine(gov.nasa.jpl.aerie.merlin.protocol.types.Duration endsAt, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId, gov.nasa.jpl.aerie.types.ActivityDirective> activityDirectives, SimulationEngine simulationEngine, gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<gov.nasa.jpl.aerie.types.ActivityDirectiveId> activityTopic, MissionModel<?> missionModel, InMemorySimulationResourceManager resourceManager) Creates an instance of aCachedSimulationEnginerecord class. -
Method Summary
Modifier and TypeMethodDescriptionMap<gov.nasa.jpl.aerie.types.ActivityDirectiveId, gov.nasa.jpl.aerie.types.ActivityDirective> Returns the value of theactivityDirectivesrecord component.gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<gov.nasa.jpl.aerie.types.ActivityDirectiveId> Returns the value of theactivityTopicrecord component.static CachedSimulationEngineempty(MissionModel<?> missionModel, Instant simulationStartTime) gov.nasa.jpl.aerie.merlin.protocol.types.DurationendsAt()Returns the value of theendsAtrecord component.final booleanIndicates whether some other object is "equal to" this one.voidfreeze()final inthashCode()Returns a hash code value for this object.MissionModel<?> Returns the value of themissionModelrecord component.Returns the value of theresourceManagerrecord component.Returns the value of thesimulationEnginerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CachedSimulationEngine
public CachedSimulationEngine(gov.nasa.jpl.aerie.merlin.protocol.types.Duration endsAt, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId, gov.nasa.jpl.aerie.types.ActivityDirective> activityDirectives, SimulationEngine simulationEngine, gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<gov.nasa.jpl.aerie.types.ActivityDirectiveId> activityTopic, MissionModel<?> missionModel, InMemorySimulationResourceManager resourceManager) Creates an instance of aCachedSimulationEnginerecord class.- Parameters:
endsAt- the value for theendsAtrecord componentactivityDirectives- the value for theactivityDirectivesrecord componentsimulationEngine- the value for thesimulationEnginerecord componentactivityTopic- the value for theactivityTopicrecord componentmissionModel- the value for themissionModelrecord componentresourceManager- the value for theresourceManagerrecord component
-
-
Method Details
-
freeze
public void freeze() -
empty
public static CachedSimulationEngine empty(MissionModel<?> missionModel, Instant simulationStartTime) -
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). -
endsAt
public gov.nasa.jpl.aerie.merlin.protocol.types.Duration endsAt()Returns the value of theendsAtrecord component.- Returns:
- the value of the
endsAtrecord component
-
activityDirectives
public Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId,gov.nasa.jpl.aerie.types.ActivityDirective> activityDirectives()Returns the value of theactivityDirectivesrecord component.- Returns:
- the value of the
activityDirectivesrecord component
-
simulationEngine
Returns the value of thesimulationEnginerecord component.- Returns:
- the value of the
simulationEnginerecord component
-
activityTopic
public gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<gov.nasa.jpl.aerie.types.ActivityDirectiveId> activityTopic()Returns the value of theactivityTopicrecord component.- Returns:
- the value of the
activityTopicrecord component
-
missionModel
Returns the value of themissionModelrecord component.- Returns:
- the value of the
missionModelrecord component
-
resourceManager
Returns the value of theresourceManagerrecord component.- Returns:
- the value of the
resourceManagerrecord component
-