Record Class SimulationResultsComputerInputs

java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.SimulationResultsComputerInputs

public record SimulationResultsComputerInputs(SimulationEngine engine, Instant simulationStartTime, gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<gov.nasa.jpl.aerie.types.ActivityDirectiveId> activityTopic, Iterable<MissionModel.SerializableTopic<?>> serializableTopics, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId,SpanId> activityDirectiveIdTaskIdMap, SimulationResourceManager resourceManager) extends Record
  • Constructor Details

    • SimulationResultsComputerInputs

      public SimulationResultsComputerInputs(SimulationEngine engine, Instant simulationStartTime, gov.nasa.jpl.aerie.merlin.protocol.driver.Topic<gov.nasa.jpl.aerie.types.ActivityDirectiveId> activityTopic, Iterable<MissionModel.SerializableTopic<?>> serializableTopics, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId,SpanId> activityDirectiveIdTaskIdMap, SimulationResourceManager resourceManager)
      Creates an instance of a SimulationResultsComputerInputs record class.
      Parameters:
      engine - the value for the engine record component
      simulationStartTime - the value for the simulationStartTime record component
      activityTopic - the value for the activityTopic record component
      serializableTopics - the value for the serializableTopics record component
      activityDirectiveIdTaskIdMap - the value for the activityDirectiveIdTaskIdMap record component
      resourceManager - the value for the resourceManager record component
  • Method Details

    • computeResults

      public SimulationResults computeResults(Set<String> resourceNames)
    • computeResults

      public SimulationResults computeResults()
    • computeActivitySimulationResults

      public SimulationEngine.SimulationActivityExtract computeActivitySimulationResults()
    • 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.
    • engine

      public SimulationEngine engine()
      Returns the value of the engine record component.
      Returns:
      the value of the engine record component
    • simulationStartTime

      public Instant simulationStartTime()
      Returns the value of the simulationStartTime record component.
      Returns:
      the value of the simulationStartTime 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
    • serializableTopics

      public Iterable<MissionModel.SerializableTopic<?>> serializableTopics()
      Returns the value of the serializableTopics record component.
      Returns:
      the value of the serializableTopics record component
    • activityDirectiveIdTaskIdMap

      public Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId,SpanId> activityDirectiveIdTaskIdMap()
      Returns the value of the activityDirectiveIdTaskIdMap record component.
      Returns:
      the value of the activityDirectiveIdTaskIdMap record component
    • resourceManager

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