-
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
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
.../banananation/src/main/java/gov/nasa/jpl/aerie/banananation/activities/RussianBanana.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,43 @@ | ||
package gov.nasa.jpl.aerie.banananation.activities; | ||
|
||
import gov.nasa.jpl.aerie.banananation.Mission; | ||
import gov.nasa.jpl.aerie.merlin.framework.annotations.ActivityType; | ||
import gov.nasa.jpl.aerie.merlin.framework.annotations.Export; | ||
import gov.nasa.jpl.aerie.merlin.protocol.types.Duration; | ||
|
||
import java.util.List; | ||
|
||
import static gov.nasa.jpl.aerie.banananation.generated.ActivityActions.call; | ||
import static gov.nasa.jpl.aerie.merlin.framework.ModelActions.delay; | ||
|
||
/** | ||
* Russian Banana Encloses Banana | ||
* | ||
* This activity causes a piece of banana to be bitten off and consumed. | ||
* | ||
* @subsystem fruit | ||
* @contact John Doe | ||
*/ | ||
@ActivityType("RussianBanana") | ||
public final class RussianBanana { | ||
|
||
@Export.Parameter | ||
public List<Integer> testints; | ||
|
||
@Export.Parameter | ||
public List<BiteBananaActivity> biteBananaActivity; | ||
|
||
@Export.Parameter | ||
public PeelBananaActivity peelBananaActivity; | ||
|
||
|
||
@ActivityType.EffectModel | ||
public void run(final Mission mission) { | ||
for (final var bite : biteBananaActivity) { | ||
call(mission, bite); | ||
delay(Duration.of(30, Duration.MINUTE)); | ||
} | ||
call(mission, peelBananaActivity); | ||
} | ||
|
||
} |
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