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

    Constructors
    Constructor
    Description
    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 a CachedSimulationEngine record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId,gov.nasa.jpl.aerie.types.ActivityDirective>
    Returns the value of the activityDirectives record component.
    gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<gov.nasa.jpl.aerie.types.ActivityDirectiveId>
    Returns the value of the activityTopic record component.
    empty(MissionModel<?> missionModel, Instant simulationStartTime)
     
    gov.nasa.jpl.aerie.merlin.protocol.types.Duration
    Returns the value of the endsAt record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    void
     
    final int
    Returns a hash code value for this object.
    Returns the value of the missionModel record component.
    Returns the value of the resourceManager record component.
    Returns the value of the simulationEngine record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a CachedSimulationEngine record class.
      Parameters:
      endsAt - the value for the endsAt record component
      activityDirectives - the value for the activityDirectives record component
      simulationEngine - the value for the simulationEngine record component
      activityTopic - the value for the activityTopic record component
      missionModel - the value for the missionModel record component
      resourceManager - the value for the resourceManager record component
  • Method Details

    • freeze

      public void freeze()
    • empty

      public static CachedSimulationEngine empty(MissionModel<?> missionModel, Instant simulationStartTime)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • endsAt

      public gov.nasa.jpl.aerie.merlin.protocol.types.Duration endsAt()
      Returns the value of the endsAt record component.
      Returns:
      the value of the endsAt record component
    • activityDirectives

      public Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId,gov.nasa.jpl.aerie.types.ActivityDirective> activityDirectives()
      Returns the value of the activityDirectives record component.
      Returns:
      the value of the activityDirectives record component
    • simulationEngine

      public SimulationEngine simulationEngine()
      Returns the value of the simulationEngine record component.
      Returns:
      the value of the simulationEngine record component
    • activityTopic

      public gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<gov.nasa.jpl.aerie.types.ActivityDirectiveId> activityTopic()
      Returns the value of the activityTopic record component.
      Returns:
      the value of the activityTopic record component
    • missionModel

      public MissionModel<?> missionModel()
      Returns the value of the missionModel record component.
      Returns:
      the value of the missionModel record component
    • resourceManager

      public InMemorySimulationResourceManager resourceManager()
      Returns the value of the resourceManager record component.
      Returns:
      the value of the resourceManager record component