-
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.
Represent instance source as a sum type
- Loading branch information
1 parent
1ba26bd
commit 4d5cb1f
Showing
9 changed files
with
54 additions
and
26 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
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
16 changes: 16 additions & 0 deletions
16
...n/kotlin/gov/nasa/ammos/aerie/procedural/timeline/payloads/activities/InstanceSourceId.kt
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,16 @@ | ||
package gov.nasa.ammos.aerie.procedural.timeline.payloads.activities | ||
|
||
import gov.nasa.jpl.aerie.types.ActivityDirectiveId | ||
import gov.nasa.jpl.aerie.types.ActivityInstanceId | ||
|
||
/** | ||
* Stores the id of a directive or instance that caused an instance to be simulated, | ||
* and the relationship of the instance to it. | ||
*/ | ||
sealed interface InstanceSourceId { | ||
/** The instance was directly created by a directive. */ | ||
data class Direct(/***/ @JvmField val from: ActivityDirectiveId): InstanceSourceId | ||
|
||
/** The instance was spawned by another activity, which may itself have been spawned. */ | ||
data class Spawned(/***/ @JvmField val from: ActivityInstanceId): InstanceSourceId | ||
} |
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