Skip to content

Commit

Permalink
rename one of the ObservingConfigurations to help distinguish it
Browse files Browse the repository at this point in the history
  • Loading branch information
pahjbo committed Oct 21, 2024
1 parent 01c247f commit 74184ee
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "org.javastro.ivoa.dm"
version = "0.6.0-SNAPSHOT"
version = "0.6.1-SNAPSHOT"


vodml {
Expand Down
4 changes: 2 additions & 2 deletions src/main/vo-dml/proposalManagement.vo-dml.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
xsi:schemaLocation="http://www.ivoa.net/xml/VODML/v1 https://www.ivoa.net/xml/VODML/vo-dml-v1.xsd"
vodmlVersion="1.1"> <!-- file generated from VODSL - needs validatation against v1.1 of schema -->
<name>proposalManagement</name>
<description>The data model for managing the proposal review process. Intended to work for phase 1</description>
<description>The data model for managing the proposal review process. This is the observatories' view of the proposal process, intended to work for phase 1 only</description>
<uri/>
<title>Proposal Management</title>
<author>Paul Harrison</author>
<version>0.6</version>
<lastModified>2024-10-19T15:23:56Z</lastModified>
<lastModified>2024-10-21T12:03:07Z</lastModified>
<import>
<name>null</name><!--should not be needed in modern vo-dml -->
<url>IVOA-v1.0.vo-dml.xml</url>
Expand Down
16 changes: 8 additions & 8 deletions src/main/vo-dml/proposaldm.vo-dml.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<title>Proposal</title>
<author>Paul Harrison</author>
<version>0.6</version>
<lastModified>2024-10-19T19:17:38Z</lastModified>
<lastModified>2024-10-21T12:09:40Z</lastModified>
<import>
<name>null</name><!--should not be needed in modern vo-dml -->
<url>IVOA-v1.0.vo-dml.xml</url>
Expand Down Expand Up @@ -829,11 +829,11 @@
</attribute>
</objectType>
<objectType>
<vodml-id>ObservingConfiguration</vodml-id>
<name>ObservingConfiguration</name>
<vodml-id>ObservingModeConfiguration</vodml-id>
<name>ObservingModeConfiguration</name>
<description>A particular observation combination that is possible</description>
<reference>
<vodml-id>ObservingConfiguration.telescope</vodml-id>
<vodml-id>ObservingModeConfiguration.telescope</vodml-id>
<name>telescope</name>
<description></description>
<datatype>
Expand All @@ -845,7 +845,7 @@
</multiplicity>
</reference>
<reference>
<vodml-id>ObservingConfiguration.instrument</vodml-id>
<vodml-id>ObservingModeConfiguration.instrument</vodml-id>
<name>instrument</name>
<description></description>
<datatype>
Expand All @@ -857,7 +857,7 @@
</multiplicity>
</reference>
<composition>
<vodml-id>ObservingConfiguration.filter</vodml-id>
<vodml-id>ObservingModeConfiguration.filter</vodml-id>
<name>filter</name>
<description>The filter or frequency response that </description>
<datatype>
Expand All @@ -869,7 +869,7 @@
</multiplicity>
</composition>
<reference>
<vodml-id>ObservingConfiguration.backend</vodml-id>
<vodml-id>ObservingModeConfiguration.backend</vodml-id>
<name>backend</name>
<description></description>
<datatype>
Expand Down Expand Up @@ -914,7 +914,7 @@
<name>configuration</name>
<description></description>
<datatype>
<vodml-ref>proposal:ObservingConfiguration</vodml-ref>
<vodml-ref>proposal:ObservingModeConfiguration</vodml-ref>
</datatype>
<multiplicity>
<minOccurs>1</minOccurs>
Expand Down
2 changes: 1 addition & 1 deletion src/main/vodsl/proposalManagement.vodsl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* created on 20 Oct 2021 // The review side of the proposal.
*/

model proposalManagement (0.6) "The data model for managing the proposal review process. Intended to work for phase 1"
model proposalManagement (0.6) "The data model for managing the proposal review process. This is the observatories' view of the proposal process, intended to work for phase 1 only"
author "Paul Harrison"
title "Proposal Management"

Expand Down
5 changes: 3 additions & 2 deletions src/main/vodsl/proposaldm.vodsl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ observations, although the intention is that information about targets etc. coul

}

//IMPL - this and related objects should probably be in the "Management" model.
otype Observatory -> Organization "An organisation that can perform astronomical observations" {

telescopes : Telescope @+ as composition "the telescopes that the observatory controls";
Expand Down Expand Up @@ -135,7 +136,7 @@ observations, although the intention is that information about targets etc. coul

/* Note that when presenting these configurations in the GUI they probably need to be decomposed into combo boxes that display each set of possibilities of each member one after another
limited by the remaining possible choices having selected those above */
otype ObservingConfiguration "A particular observation combination that is possible" {
otype ObservingModeConfiguration "A particular observation combination that is possible" {
telescope references ObservingPlatform "";
instrument references Instrument "";
filter:Filter as composition "The filter or frequency response that ";
Expand All @@ -145,7 +146,7 @@ observations, although the intention is that information about targets etc. coul
otype ObservingMode "a configuration that has been chosen to observe with." {
name: ivoa:string "human readable name for the mode";
description: ivoa:string "human readable description";
configuration references ObservingConfiguration "";
configuration references ObservingModeConfiguration "";
// IMPL could add an arbitrary "options" here.
}

Expand Down
6 changes: 3 additions & 3 deletions src/test/java/org/ivoa/dm/proposal/prop/EmerlinExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ public EmerlinExample () {

obsModes = new ObservingMode[] {
new ObservingMode("L-Band", "full e-MERLIN at L-Band",
new ObservingConfiguration(eMERLIN, instruments[0],simpleFilter("L-Band",1.2, 1.7), backend))
new ObservingModeConfiguration(eMERLIN, instruments[0],simpleFilter("L-Band",1.2, 1.7), backend))
,new ObservingMode("C-Band", "full e-MERLIN at C-Band",
new ObservingConfiguration(eMERLIN, instruments[1],simpleFilter("C-Band",4.0, 7.0), backend))
new ObservingModeConfiguration(eMERLIN, instruments[1],simpleFilter("C-Band",4.0, 7.0), backend))
,new ObservingMode("K-Band", "reduced e-EMERLIN at K-Band",
new ObservingConfiguration(eMERLINReduced, instruments[2],simpleFilter("K-Band",20.0, 24.0), backend))
new ObservingModeConfiguration(eMERLINReduced, instruments[2],simpleFilter("K-Band",20.0, 24.0), backend))
};

grades = new AllocationGrade[] {
Expand Down

0 comments on commit 74184ee

Please sign in to comment.