-
Notifications
You must be signed in to change notification settings - Fork 4
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
30 changed files
with
1,547 additions
and
1,277 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
220 changes: 0 additions & 220 deletions
220
modules/new_model/shared/src/main/scala/observe/model/ExecutionStep.scala
This file was deleted.
Oops, something went wrong.
86 changes: 43 additions & 43 deletions
86
modules/new_model/shared/src/main/scala/observe/model/Offset.scala
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,64 +1,64 @@ | ||
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA) | ||
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause | ||
|
||
package observe.model | ||
// package observe.model | ||
|
||
import lucuma.core.math.Axis | ||
import observe.model.enums.SystemName | ||
// import lucuma.core.math.Axis | ||
// import observe.model.enums.SystemName | ||
|
||
object OffsetType: | ||
type Telescope | ||
type NSNodA | ||
type NSNodB | ||
// object OffsetType: | ||
// type Telescope | ||
// type NSNodA | ||
// type NSNodB | ||
|
||
sealed trait OffsetFormat[A]: | ||
val format: String | ||
// sealed trait OffsetFormat[A]: | ||
// val format: String | ||
|
||
object OffsetFormat: | ||
given OffsetFormat[OffsetType.NSNodA] = new OffsetFormat[OffsetType.NSNodA]: | ||
override val format = "A" | ||
// object OffsetFormat: | ||
// given OffsetFormat[OffsetType.NSNodA] = new OffsetFormat[OffsetType.NSNodA]: | ||
// override val format = "A" | ||
|
||
given OffsetFormat[OffsetType.NSNodB] = new OffsetFormat[OffsetType.NSNodB]: | ||
override val format = "B" | ||
// given OffsetFormat[OffsetType.NSNodB] = new OffsetFormat[OffsetType.NSNodB]: | ||
// override val format = "B" | ||
|
||
given OffsetFormat[Axis.P] = new OffsetFormat[Axis.P]: | ||
override val format = "p" | ||
// given OffsetFormat[Axis.P] = new OffsetFormat[Axis.P]: | ||
// override val format = "p" | ||
|
||
given OffsetFormat[Axis.Q] = new OffsetFormat[Axis.Q]: | ||
override val format = "q" | ||
// given OffsetFormat[Axis.Q] = new OffsetFormat[Axis.Q]: | ||
// override val format = "q" | ||
|
||
sealed trait OffsetConfigResolver[T, A]: | ||
val systemName: SystemName | ||
val configItem: ParamName | ||
// sealed trait OffsetConfigResolver[T, A]: | ||
// val systemName: SystemName | ||
// val configItem: ParamName | ||
|
||
object OffsetConfigResolver: | ||
sealed trait TelescopeOffsetConfigResolver[A] | ||
extends OffsetConfigResolver[OffsetType.Telescope, A]: | ||
val systemName = SystemName.Telescope | ||
// object OffsetConfigResolver: | ||
// sealed trait TelescopeOffsetConfigResolver[A] | ||
// extends OffsetConfigResolver[OffsetType.Telescope, A]: | ||
// val systemName = SystemName.Telescope | ||
|
||
given OffsetConfigResolver[OffsetType.Telescope, Axis.P] = | ||
new TelescopeOffsetConfigResolver[Axis.P]: | ||
val configItem = ParamName("p") | ||
// given OffsetConfigResolver[OffsetType.Telescope, Axis.P] = | ||
// new TelescopeOffsetConfigResolver[Axis.P]: | ||
// val configItem = ParamName("p") | ||
|
||
given OffsetConfigResolver[OffsetType.Telescope, Axis.Q] = | ||
new TelescopeOffsetConfigResolver[Axis.Q]: | ||
val configItem = ParamName("q") | ||
// given OffsetConfigResolver[OffsetType.Telescope, Axis.Q] = | ||
// new TelescopeOffsetConfigResolver[Axis.Q]: | ||
// val configItem = ParamName("q") | ||
|
||
sealed trait NSOffsetConfigResolver[T, A] extends OffsetConfigResolver[T, A]: | ||
val systemName = SystemName.Instrument | ||
// sealed trait NSOffsetConfigResolver[T, A] extends OffsetConfigResolver[T, A]: | ||
// val systemName = SystemName.Instrument | ||
|
||
sealed trait NSOffsetConfigResolverA[A] extends NSOffsetConfigResolver[OffsetType.NSNodA, A] | ||
// sealed trait NSOffsetConfigResolverA[A] extends NSOffsetConfigResolver[OffsetType.NSNodA, A] | ||
|
||
given OffsetConfigResolver[OffsetType.NSNodA, Axis.P] = new NSOffsetConfigResolverA[Axis.P]: | ||
val configItem = ParamName("nsBeamA-p") | ||
// given OffsetConfigResolver[OffsetType.NSNodA, Axis.P] = new NSOffsetConfigResolverA[Axis.P]: | ||
// val configItem = ParamName("nsBeamA-p") | ||
|
||
given OffsetConfigResolver[OffsetType.NSNodA, Axis.Q] = new NSOffsetConfigResolverA[Axis.Q]: | ||
val configItem = ParamName("nsBeamA-q") | ||
// given OffsetConfigResolver[OffsetType.NSNodA, Axis.Q] = new NSOffsetConfigResolverA[Axis.Q]: | ||
// val configItem = ParamName("nsBeamA-q") | ||
|
||
sealed trait NSOffsetConfigResolverB[A] extends NSOffsetConfigResolver[OffsetType.NSNodB, A] | ||
// sealed trait NSOffsetConfigResolverB[A] extends NSOffsetConfigResolver[OffsetType.NSNodB, A] | ||
|
||
given OffsetConfigResolver[OffsetType.NSNodB, Axis.P] = new NSOffsetConfigResolverB[Axis.P]: | ||
val configItem = ParamName("nsBeamB-p") | ||
// given OffsetConfigResolver[OffsetType.NSNodB, Axis.P] = new NSOffsetConfigResolverB[Axis.P]: | ||
// val configItem = ParamName("nsBeamB-p") | ||
|
||
given OffsetConfigResolver[OffsetType.NSNodB, Axis.Q] = new NSOffsetConfigResolverB[Axis.Q]: | ||
val configItem = ParamName("nsBeamB-q") | ||
// given OffsetConfigResolver[OffsetType.NSNodB, Axis.Q] = new NSOffsetConfigResolverB[Axis.Q]: | ||
// val configItem = ParamName("nsBeamB-q") |
Oops, something went wrong.