Record Class SimulationEngine.Status.Nominal
java.lang.Object
java.lang.Record
gov.nasa.jpl.aerie.merlin.driver.engine.SimulationEngine.Status.Nominal
- All Implemented Interfaces:
SimulationEngine.Status
- Enclosing interface:
SimulationEngine.Status
public static record SimulationEngine.Status.Nominal(gov.nasa.jpl.aerie.merlin.protocol.types.Duration elapsedTime, Map<String,Pair<gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema,gov.nasa.jpl.aerie.merlin.protocol.types.RealDynamics>> realResourceUpdates, Map<String,Pair<gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema,gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue>> dynamicResourceUpdates)
extends Record
implements SimulationEngine.Status
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.merlin.driver.engine.SimulationEngine.Status
SimulationEngine.Status.AtDuration, SimulationEngine.Status.NoJobs, SimulationEngine.Status.Nominal -
Constructor Summary
ConstructorsConstructorDescriptionNominal(gov.nasa.jpl.aerie.merlin.protocol.types.Duration elapsedTime, Map<String, Pair<gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema, gov.nasa.jpl.aerie.merlin.protocol.types.RealDynamics>> realResourceUpdates, Map<String, Pair<gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue>> dynamicResourceUpdates) Creates an instance of aNominalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionMap<String, Pair<gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue>> Returns the value of thedynamicResourceUpdatesrecord component.gov.nasa.jpl.aerie.merlin.protocol.types.DurationReturns the value of theelapsedTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Map<String, Pair<gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema, gov.nasa.jpl.aerie.merlin.protocol.types.RealDynamics>> Returns the value of therealResourceUpdatesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Nominal
public Nominal(gov.nasa.jpl.aerie.merlin.protocol.types.Duration elapsedTime, Map<String, Pair<gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema, gov.nasa.jpl.aerie.merlin.protocol.types.RealDynamics>> realResourceUpdates, Map<String, Pair<gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema, gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue>> dynamicResourceUpdates) Creates an instance of aNominalrecord class.- Parameters:
elapsedTime- the value for theelapsedTimerecord componentrealResourceUpdates- the value for therealResourceUpdatesrecord componentdynamicResourceUpdates- the value for thedynamicResourceUpdatesrecord 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). -
elapsedTime
public gov.nasa.jpl.aerie.merlin.protocol.types.Duration elapsedTime()Returns the value of theelapsedTimerecord component.- Returns:
- the value of the
elapsedTimerecord component
-
realResourceUpdates
public Map<String,Pair<gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema, realResourceUpdates()gov.nasa.jpl.aerie.merlin.protocol.types.RealDynamics>> Returns the value of therealResourceUpdatesrecord component.- Returns:
- the value of the
realResourceUpdatesrecord component
-
dynamicResourceUpdates
public Map<String,Pair<gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema, dynamicResourceUpdates()gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue>> Returns the value of thedynamicResourceUpdatesrecord component.- Returns:
- the value of the
dynamicResourceUpdatesrecord component
-