Interface PlanRepository
- All Known Implementing Classes:
InMemoryPlanRepository,PostgresPlanRepository
public interface PlanRepository
An owned interface to a concurrency-safe store of plans.
A
PlanRepository provides access to a shared store of plans, each indexed by a unique ID.
To support concurrent access, updates to the store must be concurrency-controlled. Every concurrent agent must have its
own PlanRepository reference, so that the reads and writes of each agent may be tracked analogously to
load-link/store-conditional semantics.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionlongaddExternalDataset(PlanId planId, Optional<SimulationDatasetId> simulationDatasetId, gov.nasa.jpl.aerie.types.Timestamp datasetStart, ProfileSet profileSet) voidextendExternalDataset(DatasetId datasetId, ProfileSet profileSet) List<org.apache.commons.lang3.tuple.Pair<gov.nasa.jpl.aerie.merlin.protocol.types.Duration, ProfileSet>> getExternalDatasets(PlanId planId, SimulationDatasetId simulationDatasetId) getExternalEvents(PlanId planId, Instant horizonStart) getExternalResourceSchemas(PlanId planId, Optional<SimulationDatasetId> simulationDatasetId) getPlanConstraints(PlanId planId) gov.nasa.jpl.aerie.types.PlangetPlanForSimulation(PlanId planId) gov.nasa.jpl.aerie.types.PlangetPlanForValidation(PlanId planId) longgetPlanRevision(PlanId planId) getPlanRevisionData(PlanId planId)
-
Method Details
-
getAllPlans
-
getPlanForValidation
- Throws:
NoSuchPlanException
-
getPlanForSimulation
- Throws:
NoSuchPlanException
-
getPlanRevision
- Throws:
NoSuchPlanException
-
getPlanRevisionData
- Throws:
NoSuchPlanException
-
getPlanConstraints
- Throws:
NoSuchPlanException
-
addExternalDataset
long addExternalDataset(PlanId planId, Optional<SimulationDatasetId> simulationDatasetId, gov.nasa.jpl.aerie.types.Timestamp datasetStart, ProfileSet profileSet) throws NoSuchPlanException - Throws:
NoSuchPlanException
-
extendExternalDataset
void extendExternalDataset(DatasetId datasetId, ProfileSet profileSet) throws NoSuchPlanDatasetException - Throws:
NoSuchPlanDatasetException
-
getExternalDatasets
List<org.apache.commons.lang3.tuple.Pair<gov.nasa.jpl.aerie.merlin.protocol.types.Duration,ProfileSet>> getExternalDatasets(PlanId planId, SimulationDatasetId simulationDatasetId) throws NoSuchPlanException - Throws:
NoSuchPlanException
-
getExternalEvents
Map<String,List<gov.nasa.ammos.aerie.procedural.timeline.payloads.ExternalEvent>> getExternalEvents(PlanId planId, Instant horizonStart) throws NoSuchPlanException - Throws:
NoSuchPlanException
-
getExternalResourceSchemas
Map<String,gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema> getExternalResourceSchemas(PlanId planId, Optional<SimulationDatasetId> simulationDatasetId) throws NoSuchPlanException - Throws:
NoSuchPlanException
-