Statistics
| Revision:

svn-gvsig-desktop / tags / Root_v06 / extensions / extWCS / src / com / iver / cit / gvsig / fmap / layers / WCSParameterModel.java @ 4811

History | View | Annotate | Download (3.87 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
*
3
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
*
19
* For more information, contact:
20
*
21
*  Generalitat Valenciana
22
*   Conselleria d'Infraestructures i Transport
23
*   Av. Blasco Ib??ez, 50
24
*   46010 VALENCIA
25
*   SPAIN
26
*
27
*      +34 963862235
28
*   gvsig@gva.es
29
*      www.gvsig.gva.es
30
*
31
*    or
32
*
33
*   IVER T.I. S.A
34
*   Salamanca 50
35
*   46005 Valencia
36
*   Spain
37
*
38
*   +34 963163400
39
*   dac@iver.es
40
*/
41
package com.iver.cit.gvsig.fmap.layers;
42

    
43
import java.util.ArrayList;
44
import java.util.Iterator;
45

    
46
import es.uji.lsi.wcs.XmlWcsParsing.SingleValue;
47

    
48
/**
49
 * Class that holds the info about the parameters that a coverage may have.
50
 * It only support the single value type parameters.
51
 * 
52
 * TODO Write the support for interval value parameters
53
 * 
54
 * Clase que contiene la informaci?n de los par?metros que puede contener una
55
 * cobertura.
56

57
 * @author jaume - jaume.dominguez@iver.es
58
 *
59
 */
60
public class WCSParameterModel {
61
        private String name;
62
        private ArrayList lista_valores_simples;
63
        private double min;
64
        private double max;
65
        private double res;
66
        private String type;
67
        
68
        /**
69
         * Returns an ArrayList containing a list of single value list.
70
         * @return Returns the lista_valores_simples.
71
         */
72
        public ArrayList getLista_valores_simples() {
73
                return this.lista_valores_simples;
74
        }
75
        /**
76
         * Sets the SINGLE value list of the parameter.
77
         * 
78
         * Establece la lista de valores SIMPLES del par?metro en cuesti?n
79
         * @param lista_valores_simples The lista_valores_simples to set.
80
         */
81
        public void setLista_valores_simples(ArrayList lista_valores_simples) {
82
                ArrayList valores = new ArrayList();
83
                Iterator it = lista_valores_simples.iterator();
84
                while (it.hasNext()){
85
                        SingleValue sv = (SingleValue) it.next();
86
                        valores.add(sv.getValue());
87
                }
88
                this.lista_valores_simples = valores;
89
        }
90
        /**
91
         * Returns the parameter's name.
92
         * 
93
         * @return Returns the name.
94
         */
95
        public String getName() {
96
                return name;
97
        }
98
        /**
99
         * Sets the parameter's name
100
         * 
101
         * @param name The name to set.
102
         */
103
        public void setName(String name) {
104
                this.name = name;
105
        }
106
        
107
        /**
108
         * Returns the parameter's type (currently only "singleValue" is supported)
109
         * @return Returns the type.
110
         */
111
        public String getType() {
112
                return type;
113
        }
114
        /**
115
         * Sets the parameter's type (curretly only "singleValue" is supported)
116
         * @param type The type to set.
117
         */
118
        public void setType(String type) {
119
                this.type = type;
120
        }
121
        /** 
122
         * returns the max value allowed for this parameter
123
         * 
124
         * @return double
125
         */
126
        public double getMax() {
127
                return max;
128
        }
129
        
130
        /**
131
         * sets the max value allowed for this parameter
132
         * @param min
133
         */
134
        
135
        public void setMax(double max) {
136
                this.max = max;
137
        }
138
        
139
        /**
140
         * returns the min value allowed for this parameter
141
         * @return double
142
         */
143
        public double getMin() {
144
                return min;
145
        }
146
        
147
        /**
148
         * sets the min value allowed for this parameter
149
         * @param min
150
         */
151
        public void setMin(double min) {
152
                this.min = min;
153
        }
154
        
155
        /**
156
         * returns the resolution value supported by this parameter
157
         * @return
158
         */
159
        public double getRes() {
160
                return res;
161
        }
162
        
163
        /**
164
         * sets the resolution supported by this parameter
165
         * @param res
166
         */
167
        public void setRes(double res) {
168
                this.res = res;
169
        }
170
        
171
}