-
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 #1569 from NASA-AMMOS/feat/generate-default-method…
…s-on-jvm Generate JVM default methods for procedural interfaces
- Loading branch information
Showing
5 changed files
with
51 additions
and
15 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
42 changes: 42 additions & 0 deletions
42
...traints/src/test/java/gov/nasa/ammos/aerie/procedural/constraints/NotImplementedPlan.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,42 @@ | ||
package gov.nasa.ammos.aerie.procedural.constraints; | ||
|
||
import gov.nasa.ammos.aerie.procedural.timeline.Interval; | ||
import gov.nasa.ammos.aerie.procedural.timeline.collections.Directives; | ||
import gov.nasa.ammos.aerie.procedural.timeline.plan.Plan; | ||
import gov.nasa.jpl.aerie.merlin.protocol.types.Duration; | ||
import gov.nasa.jpl.aerie.merlin.protocol.types.SerializedValue; | ||
import kotlin.NotImplementedError; | ||
import kotlin.jvm.functions.Function1; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.time.Instant; | ||
|
||
public class NotImplementedPlan implements Plan { | ||
@NotNull | ||
@Override | ||
public Interval totalBounds() { | ||
throw new NotImplementedError(); | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public Duration toRelative(@NotNull final Instant abs) { | ||
throw new NotImplementedError(); | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public Instant toAbsolute(@NotNull final Duration rel) { | ||
throw new NotImplementedError(); | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public <A> Directives<A> directives( | ||
@Nullable final String type, | ||
@NotNull final Function1<? super SerializedValue, ? extends A> deserializer) | ||
{ | ||
throw new NotImplementedError(); | ||
} | ||
} |
15 changes: 0 additions & 15 deletions
15
...traints/src/test/kotlin/gov/nasa/ammos/aerie/procedural/constraints/NotImplementedPlan.kt
This file was deleted.
Oops, something went wrong.
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