-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ff37f3
commit 14f1c8d
Showing
20 changed files
with
426 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
scheduler-server/src/main/java/gov/nasa/jpl/aerie/scheduler/server/models/ActivityType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package gov.nasa.jpl.aerie.scheduler.server.models; | ||
|
||
import gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue; | ||
import gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema; | ||
|
||
import java.util.Map; | ||
|
||
public record ActivityType(String name, Map<String, ValueSchema> parameters, Map<String, Map<String, SerializedValue>> presets) {} |
12 changes: 12 additions & 0 deletions
12
...ler-server/src/main/java/gov/nasa/jpl/aerie/scheduler/server/models/ExternalProfiles.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package gov.nasa.jpl.aerie.scheduler.server.models; | ||
|
||
import gov.nasa.jpl.aerie.constraints.model.DiscreteProfile; | ||
import gov.nasa.jpl.aerie.constraints.model.LinearProfile; | ||
|
||
import java.util.Collection; | ||
import java.util.Map; | ||
|
||
public record ExternalProfiles( | ||
Map<String, LinearProfile> realProfiles, | ||
Map<String, DiscreteProfile> discreteProfiles, | ||
Collection<ResourceType> resourceTypes) {} |
4 changes: 3 additions & 1 deletion
4
scheduler-server/src/main/java/gov/nasa/jpl/aerie/scheduler/server/models/HasuraAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
package gov.nasa.jpl.aerie.scheduler.server.models; | ||
|
||
import java.util.Optional; | ||
|
||
public record HasuraAction<I extends HasuraAction.Input>(String name, I input, Session session) | ||
{ | ||
public record Session(String hasuraRole, String hasuraUserId) { } | ||
|
||
public sealed interface Input permits SpecificationInput, MissionModelIdInput { } | ||
|
||
public record SpecificationInput(SpecificationId specificationId) implements Input { } | ||
public record MissionModelIdInput(MissionModelId missionModelId) implements Input { } | ||
public record MissionModelIdInput(MissionModelId missionModelId, Optional<PlanId> planId) implements Input { } | ||
} |
5 changes: 5 additions & 0 deletions
5
scheduler-server/src/main/java/gov/nasa/jpl/aerie/scheduler/server/models/ResourceType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package gov.nasa.jpl.aerie.scheduler.server.models; | ||
|
||
import gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema; | ||
|
||
public record ResourceType(String name, ValueSchema schema) {} |
15 changes: 15 additions & 0 deletions
15
...-server/src/main/java/gov/nasa/jpl/aerie/scheduler/server/models/UnwrappedProfileSet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package gov.nasa.jpl.aerie.scheduler.server.models; | ||
|
||
import gov.nasa.jpl.aerie.merlin.driver.engine.ProfileSegment; | ||
import gov.nasa.jpl.aerie.merlin.protocol.types.RealDynamics; | ||
import gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue; | ||
import gov.nasa.jpl.aerie.merlin.protocol.types.ValueSchema; | ||
import org.apache.commons.lang3.tuple.Pair; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public record UnwrappedProfileSet( | ||
Map<String, Pair<ValueSchema, List<ProfileSegment<RealDynamics>>>> realProfiles, | ||
Map<String, Pair<ValueSchema, List<ProfileSegment<SerializedValue>>>> discreteProfiles | ||
){} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.