Interface SimulationResourceManager
- All Known Implementing Classes:
InMemorySimulationResourceManager
,StreamingSimulationResourceManager
public interface SimulationResourceManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptUpdates
(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>> discreteResourceUpdates) Process resource updates for a given time.computeProfiles
(gov.nasa.jpl.aerie.merlin.protocol.types.Duration elapsedDuration) Compute all ProfileSegments stored in this resource managercomputeProfiles
(gov.nasa.jpl.aerie.merlin.protocol.types.Duration elapsedDuration, Set<String> resources) Compute a subset of the ProfileSegments stored in this resource manager
-
Method Details
-
computeProfiles
Compute all ProfileSegments stored in this resource manager- Parameters:
elapsedDuration
- the amount of time elapsed since the start of simulation.
-
computeProfiles
ResourceProfiles computeProfiles(gov.nasa.jpl.aerie.merlin.protocol.types.Duration elapsedDuration, Set<String> resources) Compute a subset of the ProfileSegments stored in this resource manager- Parameters:
elapsedDuration
- the amount of time elapsed since the start of simulation.resources
- the set of names of the resources to be computed
-
acceptUpdates
void acceptUpdates(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>> discreteResourceUpdates) Process resource updates for a given time.- Parameters:
elapsedTime
- the amount of time elapsed since the start of simulation. Must be monotonically increasing on subsequent calls.realResourceUpdates
- the set of updates to real resources. Up to one update per resource is permitted.discreteResourceUpdates
- the set of updates to discrete resources. Up to one update per resource is permitted.
-