Class PostgresPlanRepository
java.lang.Object
gov.nasa.jpl.aerie.merlin.server.remotes.postgres.PostgresPlanRepository
- All Implemented Interfaces:
PlanRepository
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.merlin.server.remotes.PlanRepository
PlanRepository.CreatedPlan -
Constructor Summary
Constructors -
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)
-
Constructor Details
-
PostgresPlanRepository
-
-
Method Details
-
getAllPlans
- Specified by:
getAllPlansin interfacePlanRepository
-
getPlanForSimulation
- Specified by:
getPlanForSimulationin interfacePlanRepository- Throws:
NoSuchPlanException
-
getPlanForValidation
- Specified by:
getPlanForValidationin interfacePlanRepository- Throws:
NoSuchPlanException
-
getPlanRevision
- Specified by:
getPlanRevisionin interfacePlanRepository- Throws:
NoSuchPlanException
-
getPlanRevisionData
- Specified by:
getPlanRevisionDatain interfacePlanRepository- Throws:
NoSuchPlanException
-
getPlanConstraints
- Specified by:
getPlanConstraintsin interfacePlanRepository- Throws:
NoSuchPlanException
-
addExternalDataset
public long addExternalDataset(PlanId planId, Optional<SimulationDatasetId> simulationDatasetId, gov.nasa.jpl.aerie.types.Timestamp datasetStart, ProfileSet profileSet) throws NoSuchPlanException - Specified by:
addExternalDatasetin interfacePlanRepository- Throws:
NoSuchPlanException
-
extendExternalDataset
public void extendExternalDataset(DatasetId datasetId, ProfileSet profileSet) throws NoSuchPlanDatasetException - Specified by:
extendExternalDatasetin interfacePlanRepository- Throws:
NoSuchPlanDatasetException
-
getExternalDatasets
public List<org.apache.commons.lang3.tuple.Pair<gov.nasa.jpl.aerie.merlin.protocol.types.Duration,ProfileSet>> getExternalDatasets(PlanId planId, SimulationDatasetId simulationDatasetId) - Specified by:
getExternalDatasetsin interfacePlanRepository
-
getExternalEvents
public Map<String,List<gov.nasa.ammos.aerie.procedural.timeline.payloads.ExternalEvent>> getExternalEvents(PlanId planId, Instant horizonStart) - Specified by:
getExternalEventsin interfacePlanRepository
-
getExternalResourceSchemas
public Map<String,gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema> getExternalResourceSchemas(PlanId planId, Optional<SimulationDatasetId> simulationDatasetId) throws DatabaseException - Specified by:
getExternalResourceSchemasin interfacePlanRepository- Throws:
DatabaseException
-