Package gov.nasa.jpl.aerie.merlin.driver
Record Class CheckpointSimulationDriver.SimulationState
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.CheckpointSimulationDriver.SimulationState
- Enclosing class:
CheckpointSimulationDriver
public static record CheckpointSimulationDriver.SimulationState(gov.nasa.jpl.aerie.merlin.protocol.types.Duration currentTime, gov.nasa.jpl.aerie.merlin.protocol.types.Duration nextTime, SimulationEngine simulationEngine, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId,gov.nasa.jpl.aerie.types.ActivityDirective> schedule, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId,SpanId> activityDirectiveIdSpanIdMap)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSimulationState(gov.nasa.jpl.aerie.merlin.protocol.types.Duration currentTime, gov.nasa.jpl.aerie.merlin.protocol.types.Duration nextTime, SimulationEngine simulationEngine, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId, gov.nasa.jpl.aerie.types.ActivityDirective> schedule, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId, SpanId> activityDirectiveIdSpanIdMap) Creates an instance of aSimulationStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivityDirectiveIdSpanIdMaprecord component.gov.nasa.jpl.aerie.merlin.protocol.types.DurationReturns the value of thecurrentTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.gov.nasa.jpl.aerie.merlin.protocol.types.DurationnextTime()Returns the value of thenextTimerecord component.Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId, gov.nasa.jpl.aerie.types.ActivityDirective> schedule()Returns the value of theschedulerecord component.Returns the value of thesimulationEnginerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimulationState
public SimulationState(gov.nasa.jpl.aerie.merlin.protocol.types.Duration currentTime, gov.nasa.jpl.aerie.merlin.protocol.types.Duration nextTime, SimulationEngine simulationEngine, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId, gov.nasa.jpl.aerie.types.ActivityDirective> schedule, Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId, SpanId> activityDirectiveIdSpanIdMap) Creates an instance of aSimulationStaterecord class.- Parameters:
currentTime- the value for thecurrentTimerecord componentnextTime- the value for thenextTimerecord componentsimulationEngine- the value for thesimulationEnginerecord componentschedule- the value for theschedulerecord componentactivityDirectiveIdSpanIdMap- the value for theactivityDirectiveIdSpanIdMaprecord component
-
-
Method Details
-
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). -
currentTime
public gov.nasa.jpl.aerie.merlin.protocol.types.Duration currentTime()Returns the value of thecurrentTimerecord component.- Returns:
- the value of the
currentTimerecord component
-
nextTime
public gov.nasa.jpl.aerie.merlin.protocol.types.Duration nextTime()Returns the value of thenextTimerecord component.- Returns:
- the value of the
nextTimerecord component
-
simulationEngine
Returns the value of thesimulationEnginerecord component.- Returns:
- the value of the
simulationEnginerecord component
-
schedule
public Map<gov.nasa.jpl.aerie.types.ActivityDirectiveId,gov.nasa.jpl.aerie.types.ActivityDirective> schedule()Returns the value of theschedulerecord component.- Returns:
- the value of the
schedulerecord component
-
activityDirectiveIdSpanIdMap
Returns the value of theactivityDirectiveIdSpanIdMaprecord component.- Returns:
- the value of the
activityDirectiveIdSpanIdMaprecord component
-