svn-gvsig-desktop / branches / v2_0_0_prep / extensions / org.gvsig.geocoding.extension / src / org / gvsig / geocoding / gui / IGeocodingModel.java @ 32526
History | View | Annotate | Download (4.29 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
|
23 |
/*
|
24 |
* AUTHORS (In addition to CIT):
|
25 |
* 2008 Prodevelop S.L. main developer
|
26 |
*/
|
27 |
|
28 |
package org.gvsig.geocoding.gui; |
29 |
|
30 |
import java.io.File; |
31 |
import java.util.List; |
32 |
import java.util.Set; |
33 |
|
34 |
|
35 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
36 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
37 |
import org.gvsig.geocoding.pattern.GeocodingPattern; |
38 |
import org.gvsig.geocoding.result.GeocodingResult; |
39 |
|
40 |
/**
|
41 |
* interface of the extensi?n model
|
42 |
*
|
43 |
* @author <a href="mailto:jsanz@prodevelop.es"> Jorge Gaspar Sanz Salinas</a>
|
44 |
* @author <a href="mailto:vsanjaime@prodevelop.es"> Vicente Sanjaime Calvet</a>
|
45 |
*/
|
46 |
public interface IGeocodingModel { |
47 |
|
48 |
/**
|
49 |
* Default parameters of search
|
50 |
*/
|
51 |
|
52 |
public static final int DEFMAX = 5; |
53 |
public static final int DEFQUALI = 80; |
54 |
|
55 |
/**
|
56 |
* This method gets the geocoding pattern from the model
|
57 |
*
|
58 |
* @return
|
59 |
*/
|
60 |
public GeocodingPattern getPattern();
|
61 |
|
62 |
/**
|
63 |
* This method sets the Geocoding Pattern
|
64 |
*
|
65 |
* @param pat
|
66 |
*/
|
67 |
public void setPattern(GeocodingPattern pat); |
68 |
|
69 |
/**
|
70 |
* This method gets the layer source
|
71 |
*
|
72 |
* @return
|
73 |
*/
|
74 |
public FLyrVect getLyr();
|
75 |
|
76 |
/**
|
77 |
* This method sets the layer source
|
78 |
*
|
79 |
* @param lyr
|
80 |
*/
|
81 |
public void setLyr(FLyrVect lyr); |
82 |
|
83 |
/**
|
84 |
* Save the pattern file
|
85 |
*
|
86 |
* @param file
|
87 |
*/
|
88 |
public void setPatternFile(File file); |
89 |
|
90 |
/**
|
91 |
* Get the pattern file
|
92 |
*
|
93 |
* @return
|
94 |
*/
|
95 |
public File getPatternFile(); |
96 |
|
97 |
/**
|
98 |
* @return the one results
|
99 |
*/
|
100 |
public Set<GeocodingResult> getOneGroupResults(int index); |
101 |
|
102 |
/**
|
103 |
* @return the results list
|
104 |
*/
|
105 |
public List<Set<GeocodingResult>> getAllResults(); |
106 |
|
107 |
/**
|
108 |
* @param one
|
109 |
* group of results the results to set
|
110 |
*/
|
111 |
public void setOneGroupResults(Set<GeocodingResult> results); |
112 |
|
113 |
/**
|
114 |
* @param one
|
115 |
* group of results the results to set
|
116 |
*/
|
117 |
public void setAllResults(List<Set<GeocodingResult>> results); |
118 |
|
119 |
/**
|
120 |
* @return the simple
|
121 |
*/
|
122 |
public boolean isSimple(); |
123 |
|
124 |
/**
|
125 |
* @param simple
|
126 |
* the simple to set
|
127 |
*/
|
128 |
public void setSimple(boolean simple); |
129 |
|
130 |
/**
|
131 |
* set list of field descriptors of selected table
|
132 |
*
|
133 |
* @param descs
|
134 |
*/
|
135 |
public void setListDescriptorSelectedTable( |
136 |
List<String> descs); |
137 |
|
138 |
/**
|
139 |
* get list fields descriptor selected table
|
140 |
*
|
141 |
* @return
|
142 |
*/
|
143 |
public List<String> getListDescriptorSelectedTable(); |
144 |
|
145 |
/**
|
146 |
* get store of selected table
|
147 |
*
|
148 |
* @return
|
149 |
*/
|
150 |
public FeatureStore getSelectedTableStore();
|
151 |
|
152 |
/**
|
153 |
* set store of selected table
|
154 |
*
|
155 |
* @param selectedTableStore
|
156 |
*/
|
157 |
public void setSelectedTableStore(FeatureStore selectedTableStore); |
158 |
|
159 |
/**
|
160 |
* Add one result to list of results
|
161 |
*
|
162 |
* @param result
|
163 |
*/
|
164 |
public void addResult(Set<GeocodingResult> result); |
165 |
|
166 |
/**
|
167 |
* Clear list of geocoding results
|
168 |
*/
|
169 |
public void clearResults(); |
170 |
|
171 |
/**
|
172 |
* set number of result of results list showed
|
173 |
*
|
174 |
* @param i
|
175 |
*/
|
176 |
public void setNumResultShowed(int i); |
177 |
|
178 |
/**
|
179 |
* get number of result of the results list showed
|
180 |
*
|
181 |
* @return
|
182 |
*/
|
183 |
public int getNumResultShowed(); |
184 |
|
185 |
/**
|
186 |
* get selected results export elements
|
187 |
*
|
188 |
* @return
|
189 |
*/
|
190 |
public Integer[] getExportElements(); |
191 |
|
192 |
/**
|
193 |
* set selected results export elements
|
194 |
*
|
195 |
* @param exportElements
|
196 |
*/
|
197 |
public void setExportElements(Integer[] exportElements); |
198 |
|
199 |
/**
|
200 |
* set descriptor id field of massive table
|
201 |
* @param descriptor
|
202 |
*/
|
203 |
public void setIdMasiveTable(String descriptor); |
204 |
|
205 |
/**
|
206 |
* get descriptor id field of massive table
|
207 |
* @return
|
208 |
*/
|
209 |
public String getIdMasiveTable(); |
210 |
|
211 |
|
212 |
|
213 |
|
214 |
|
215 |
|
216 |
} |