-
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.
Merge pull request #1385 from NASA-AMMOS/feat/sim-error-ids
Return the Executing Directive Id in Simulation Error Response
- Loading branch information
Showing
13 changed files
with
407 additions
and
28 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
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
24 changes: 24 additions & 0 deletions
24
...del/src/main/java/gov/nasa/jpl/aerie/foomissionmodel/activities/DaemonCheckerSpawner.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,24 @@ | ||
package gov.nasa.jpl.aerie.foomissionmodel.activities; | ||
|
||
import gov.nasa.jpl.aerie.foomissionmodel.Mission; | ||
import gov.nasa.jpl.aerie.merlin.framework.annotations.ActivityType; | ||
import gov.nasa.jpl.aerie.merlin.protocol.types.Duration; | ||
|
||
import static gov.nasa.jpl.aerie.foomissionmodel.generated.ActivityActions.call; | ||
import static gov.nasa.jpl.aerie.merlin.framework.ModelActions.delay; | ||
|
||
/** | ||
* An activity that spawns a DaemonCheckerActivity after delaying. | ||
* Useful for testing the behavior of exceptions thrown by child activities. | ||
* | ||
* @param minutesElapsed The expected number of minutes elapsed when the DaemonCheckerActivity begins | ||
* @param spawnDelay The number of minutes to delay between the start of this activity and spawning the DaemonCheckerActivity | ||
*/ | ||
@ActivityType("DaemonCheckerSpawner") | ||
public record DaemonCheckerSpawner(int minutesElapsed, int spawnDelay) { | ||
@ActivityType.EffectModel | ||
public void run(final Mission mission) { | ||
delay(Duration.of(spawnDelay, Duration.MINUTE)); | ||
call(mission, new DaemonCheckerActivity(minutesElapsed)); | ||
} | ||
} |
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.