Record Class SimulationData
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.scheduler.simulation.SimulationData
-
Constructor Summary
ConstructorsConstructorDescriptionSimulationData(Plan plan, gov.nasa.jpl.aerie.merlin.driver.SimulationResults driverResults, gov.nasa.jpl.aerie.constraints.model.SimulationResults constraintsResults) Creates an instance of aSimulationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptiongov.nasa.jpl.aerie.constraints.model.SimulationResultsReturns the value of theconstraintsResultsrecord component.gov.nasa.jpl.aerie.merlin.driver.SimulationResultsReturns the value of thedriverResultsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.plan()Returns the value of theplanrecord component.replaceIds(Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId, gov.nasa.jpl.aerie.types.ActivityDirectiveId> map) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimulationData
public SimulationData(Plan plan, gov.nasa.jpl.aerie.merlin.driver.SimulationResults driverResults, gov.nasa.jpl.aerie.constraints.model.SimulationResults constraintsResults) Creates an instance of aSimulationDatarecord class.- Parameters:
plan- the value for theplanrecord componentdriverResults- the value for thedriverResultsrecord componentconstraintsResults- the value for theconstraintsResultsrecord component
-
-
Method Details
-
replaceIds
public SimulationData replaceIds(Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId, gov.nasa.jpl.aerie.types.ActivityDirectiveId> map) -
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). -
plan
Returns the value of theplanrecord component.- Returns:
- the value of the
planrecord component
-
driverResults
public gov.nasa.jpl.aerie.merlin.driver.SimulationResults driverResults()Returns the value of thedriverResultsrecord component.- Returns:
- the value of the
driverResultsrecord component
-
constraintsResults
public gov.nasa.jpl.aerie.constraints.model.SimulationResults constraintsResults()Returns the value of theconstraintsResultsrecord component.- Returns:
- the value of the
constraintsResultsrecord component
-