Class PostgresMissionModelRepository
java.lang.Object
gov.nasa.jpl.aerie.merlin.server.remotes.postgres.PostgresMissionModelRepository
- All Implemented Interfaces:
MissionModelRepository
-
Nested Class Summary
Nested classes/interfaces inherited from interface gov.nasa.jpl.aerie.merlin.server.remotes.MissionModelRepository
MissionModelRepository.NoSuchMissionModelException
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetActivityTypes
(gov.nasa.jpl.aerie.types.MissionModelId missionModelId) Map
<gov.nasa.jpl.aerie.types.MissionModelId, MissionModelJar> getMissionModel
(gov.nasa.jpl.aerie.types.MissionModelId missionModelId) Map
<gov.nasa.jpl.aerie.types.MissionModelId, List<ActivityDirectiveForValidation>> void
updateActivityTypes
(gov.nasa.jpl.aerie.types.MissionModelId missionModelId, Map<String, ActivityType> activityTypes) void
updateDirectiveValidations
(List<org.apache.commons.lang3.tuple.Pair<ActivityDirectiveForValidation, MissionModelService.BulkArgumentValidationResponse>> updates) void
updateModelParameters
(gov.nasa.jpl.aerie.types.MissionModelId missionModelId, List<gov.nasa.jpl.aerie.merlin.protocol.model.InputType.Parameter> modelParameters) void
updateResourceTypes
(gov.nasa.jpl.aerie.types.MissionModelId missionModelId, Map<String, gov.nasa.jpl.aerie.merlin.protocol.model.Resource<?>> resources)
-
Constructor Details
-
PostgresMissionModelRepository
-
-
Method Details
-
getAllMissionModels
- Specified by:
getAllMissionModels
in interfaceMissionModelRepository
-
getMissionModel
public MissionModelJar getMissionModel(gov.nasa.jpl.aerie.types.MissionModelId missionModelId) throws MissionModelRepository.NoSuchMissionModelException - Specified by:
getMissionModel
in interfaceMissionModelRepository
- Throws:
MissionModelRepository.NoSuchMissionModelException
-
getActivityTypes
public Map<String,ActivityType> getActivityTypes(gov.nasa.jpl.aerie.types.MissionModelId missionModelId) throws MissionModelRepository.NoSuchMissionModelException - Specified by:
getActivityTypes
in interfaceMissionModelRepository
- Throws:
MissionModelRepository.NoSuchMissionModelException
-
updateModelParameters
public void updateModelParameters(gov.nasa.jpl.aerie.types.MissionModelId missionModelId, List<gov.nasa.jpl.aerie.merlin.protocol.model.InputType.Parameter> modelParameters) throws MissionModelRepository.NoSuchMissionModelException - Specified by:
updateModelParameters
in interfaceMissionModelRepository
- Throws:
MissionModelRepository.NoSuchMissionModelException
-
updateActivityTypes
public void updateActivityTypes(gov.nasa.jpl.aerie.types.MissionModelId missionModelId, Map<String, ActivityType> activityTypes) throws MissionModelRepository.NoSuchMissionModelException- Specified by:
updateActivityTypes
in interfaceMissionModelRepository
- Throws:
MissionModelRepository.NoSuchMissionModelException
-
updateResourceTypes
public void updateResourceTypes(gov.nasa.jpl.aerie.types.MissionModelId missionModelId, Map<String, gov.nasa.jpl.aerie.merlin.protocol.model.Resource<?>> resources) throws MissionModelRepository.NoSuchMissionModelException- Specified by:
updateResourceTypes
in interfaceMissionModelRepository
- Throws:
MissionModelRepository.NoSuchMissionModelException
-
getUnvalidatedDirectives
public Map<gov.nasa.jpl.aerie.types.MissionModelId,List<ActivityDirectiveForValidation>> getUnvalidatedDirectives()- Specified by:
getUnvalidatedDirectives
in interfaceMissionModelRepository
-
updateDirectiveValidations
public void updateDirectiveValidations(List<org.apache.commons.lang3.tuple.Pair<ActivityDirectiveForValidation, MissionModelService.BulkArgumentValidationResponse>> updates) - Specified by:
updateDirectiveValidations
in interfaceMissionModelRepository
-