Commit 19c409d4c67755b15069ee202a7630185585edbe
1 parent
ccd40d6d
Exists in
master
Add the EPNTAP interface.
Showing
2 changed files
with
87 additions
and
33 deletions
Show diff stats
src/main/java/eu/omp/irap/vespa/epntapclient/EPNTAPInterface.java
0 → 100644
... | ... | @@ -0,0 +1,87 @@ |
1 | +/* | |
2 | + * This file is a part of EpnTAPClient. | |
3 | + * This program aims to provide EPN-TAP support for software clients, like CASSIS spectrum analyzer. | |
4 | + * See draft specifications: https://voparis-confluence.obspm.fr/pages/viewpage.action?pageId=559861 | |
5 | + * Copyright (C) 2016 Institut de Recherche en Astrophysique et Planétologie. | |
6 | + * | |
7 | + * This program is free software: you can | |
8 | + * redistribute it and/or modify it under the terms of the GNU General Public License as published | |
9 | + * by the Free Software Foundation, either version 3 of the License, or (at your option) any later | |
10 | + * version. This program is distributed in the hope that it will be useful, but WITHOUT ANY | |
11 | + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | |
12 | + * PURPOSE. See the GNU General Public License for more details. You should have received a copy of | |
13 | + * the GNU General Public License along with this program. If not, see | |
14 | + * <http://www.gnu.org/licenses/>. | |
15 | + */ | |
16 | + | |
17 | +package eu.omp.irap.vespa.epntapclient; | |
18 | + | |
19 | +import java.util.List; | |
20 | + | |
21 | +/** | |
22 | + * @author N. Jourdane | |
23 | + */ | |
24 | +public interface EPNTAPInterface { | |
25 | + | |
26 | + /** returns a set of VOResource elements (one per EPN-TAP service) */ | |
27 | + void getEPNVOResources(); | |
28 | + | |
29 | + /** | |
30 | + * Returns a set of VOREsource elements (one per EPN-TAP service corresponding to the | |
31 | + * keywords).The way keywords are defined is still to be defined. | |
32 | + */ | |
33 | + void getEPNVOResources(List<String> keywords); | |
34 | + | |
35 | + /** returns the VOResource element of the service identified by the ivoID. */ | |
36 | + void getEPNVOresource(String ivoid); | |
37 | + | |
38 | + /** | |
39 | + * returns a VOTable containing the list of EPN-TAP services and their attributes (from a | |
40 | + * predefined list) | |
41 | + */ | |
42 | + void getEPNServices(); | |
43 | + | |
44 | + /** | |
45 | + * returns a VOTable containing the list of EPN-TAP services and their attributes (from the list | |
46 | + * of attributes) | |
47 | + */ | |
48 | + void getEPNServices(List<String> attributes); | |
49 | + | |
50 | + /** | |
51 | + * returns a VOTable containing the list of EPN-TAP services corresponding to the keywords and | |
52 | + * their attributes (from the list of attributes) | |
53 | + */ | |
54 | + void getEPNServices(List<String> keywords, List<String> attributes); | |
55 | + | |
56 | + /** | |
57 | + * returns a VOTable containing the attributes of the corresponding service (from a predefined | |
58 | + * list) | |
59 | + */ | |
60 | + void getEPNService(String ivoID); | |
61 | + | |
62 | + /** | |
63 | + * returns a VOTable containing the attributes of the corresponding service (from the list of | |
64 | + * attributes) | |
65 | + */ | |
66 | + void getEPNService(String ivoID, List<String> attributes); | |
67 | + | |
68 | + /** returns the name of the EPNCore Table related to a service. */ | |
69 | + void getEPNCoreTableName(String service_ivoid); | |
70 | + | |
71 | + /** returns the Access URL of an EPN-TAP Service. */ | |
72 | + void getTAPURL(String service_ivoid); | |
73 | + | |
74 | + /** | |
75 | + * returns the list of granules which are compliant with the ADQL Query, in VOTable format . | |
76 | + * TAPURL is build from elements taken in VOResource. "ADQLQuery" is created by the Client. It | |
77 | + * is a full query containing the name of the EPNCore table, taken in VOResource. | |
78 | + */ | |
79 | + void sendADQLQuery(String TAPURL, String ADQLQuery); | |
80 | + | |
81 | + /** | |
82 | + * returns the list of granules which are compliant with the Query, in VOTable format. "Query" | |
83 | + * is not an ADQL query. It is taken from a list of predefined queries. This list must be | |
84 | + * created. | |
85 | + */ | |
86 | + void sendQuery(String TAPURL, String schema_name, String Query); | |
87 | +} | ... | ... |
src/main/java/eu/omp/irap/vespa/epntapclient/view/Event.java deleted
... | ... | @@ -1,33 +0,0 @@ |
1 | -/* | |
2 | - * This file is a part of EpnTAPClient. | |
3 | - * This program aims to provide EPN-TAP support for software clients, like CASSIS spectrum analyzer. | |
4 | - * See draft specifications: https://voparis-confluence.obspm.fr/pages/viewpage.action?pageId=559861 | |
5 | - * Copyright (C) 2016 Institut de Recherche en Astrophysique et Planétologie. | |
6 | - * | |
7 | - * This program is free software: you can | |
8 | - * redistribute it and/or modify it under the terms of the GNU General Public License as published | |
9 | - * by the Free Software Foundation, either version 3 of the License, or (at your option) any later | |
10 | - * version. This program is distributed in the hope that it will be useful, but WITHOUT ANY | |
11 | - * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | |
12 | - * PURPOSE. See the GNU General Public License for more details. You should have received a copy of | |
13 | - * the GNU General Public License along with this program. If not, see | |
14 | - * <http://www.gnu.org/licenses/>. | |
15 | - */ | |
16 | - | |
17 | -package eu.omp.irap.vespa.epntapclient.view; | |
18 | - | |
19 | -/** | |
20 | - * @author N. Jourdane | |
21 | - */ | |
22 | -public enum Event { | |
23 | - /** When a service is selected on the service panel. */ | |
24 | - SERVICE_SELECTED, | |
25 | - /** When the `Send query` button is clicked. */ | |
26 | - SEND_BUTTON_CLICKED, | |
27 | - /** When the `Download VOTable` button is clicked. */ | |
28 | - DOWNLOAD_BUTTON_CLICKED, | |
29 | - /** When a parameter is removed on the parameter panel. */ | |
30 | - PARAMETER_REMOVED, | |
31 | - /** When a parameter is updated to a valid value on the parameter panel. */ | |
32 | - PARAMETER_CHANGED; | |
33 | -} |