root / branches / v2_0_0_prep / extensions / extGeocoding / src / org / gvsig / geocoding / gui / IGeocodingModel.java @ 27564
History | View | Annotate | Download (4.2 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. vsanjaime Programador
|
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 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
35 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
36 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
37 |
import org.gvsig.geocoding.pattern.Patterngeocoding; |
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 DEFACCU = 80; |
54 |
public static final int DEFQUALI = 80; |
55 |
|
56 |
/**
|
57 |
* This method gets the geocoding pattern from the model
|
58 |
*
|
59 |
* @return
|
60 |
*/
|
61 |
public Patterngeocoding getPattern();
|
62 |
|
63 |
/**
|
64 |
* This method sets the Geocoding Pattern
|
65 |
*
|
66 |
* @param pat
|
67 |
*/
|
68 |
public void setPattern(Patterngeocoding pat); |
69 |
|
70 |
/**
|
71 |
* This method gets the layer source
|
72 |
*
|
73 |
* @return
|
74 |
*/
|
75 |
public FLyrVect getLyr();
|
76 |
|
77 |
/**
|
78 |
* This method sets the layer source
|
79 |
*
|
80 |
* @param lyr
|
81 |
*/
|
82 |
public void setLyr(FLyrVect lyr); |
83 |
|
84 |
/**
|
85 |
* Save the pattern file
|
86 |
*
|
87 |
* @param file
|
88 |
*/
|
89 |
public void setPatternFile(File file); |
90 |
|
91 |
/**
|
92 |
* Get the pattern file
|
93 |
*
|
94 |
* @return
|
95 |
*/
|
96 |
public File getPatternFile(); |
97 |
|
98 |
/**
|
99 |
* @return the one results
|
100 |
*/
|
101 |
public Set<GeocodingResult> getOneGroupResults(int index); |
102 |
|
103 |
/**
|
104 |
* @return the results list
|
105 |
*/
|
106 |
public List<Set<GeocodingResult>> getAllResults(); |
107 |
|
108 |
/**
|
109 |
* @param one
|
110 |
* group of results the results to set
|
111 |
*/
|
112 |
public void setOneGroupResults(Set<GeocodingResult> results); |
113 |
|
114 |
/**
|
115 |
* @param one
|
116 |
* group of results the results to set
|
117 |
*/
|
118 |
public void setAllResults(List<Set<GeocodingResult>> results); |
119 |
|
120 |
/**
|
121 |
* @return the simple
|
122 |
*/
|
123 |
public boolean isSimple(); |
124 |
|
125 |
/**
|
126 |
* @param simple
|
127 |
* the simple to set
|
128 |
*/
|
129 |
public void setSimple(boolean simple); |
130 |
|
131 |
/**
|
132 |
* set list of field descriptors of selected table
|
133 |
*
|
134 |
* @param descs
|
135 |
*/
|
136 |
public void setListDescriptorSelectedTable( |
137 |
List<FeatureAttributeDescriptor> descs);
|
138 |
|
139 |
/**
|
140 |
* get list fields descriptor selected table
|
141 |
*
|
142 |
* @return
|
143 |
*/
|
144 |
public List<FeatureAttributeDescriptor> getListDescriptorSelectedTable(); |
145 |
|
146 |
/**
|
147 |
* get store of selected table
|
148 |
*
|
149 |
* @return
|
150 |
*/
|
151 |
public FeatureStore getSelectedTableStore();
|
152 |
|
153 |
/**
|
154 |
* set store of selected table
|
155 |
*
|
156 |
* @param selectedTableStore
|
157 |
*/
|
158 |
public void setSelectedTableStore(FeatureStore selectedTableStore); |
159 |
|
160 |
/**
|
161 |
* Add one result to list of results
|
162 |
*
|
163 |
* @param result
|
164 |
*/
|
165 |
public void addResult(Set<GeocodingResult> result); |
166 |
|
167 |
/**
|
168 |
* Clear list of geocoding results
|
169 |
*/
|
170 |
public void clearResults(); |
171 |
|
172 |
/**
|
173 |
* set number of result of results list showed
|
174 |
*
|
175 |
* @param i
|
176 |
*/
|
177 |
public void setNumResultShowed(int i); |
178 |
|
179 |
/**
|
180 |
* get number of result of the results list showed
|
181 |
*
|
182 |
* @return
|
183 |
*/
|
184 |
public int getNumResultShowed(); |
185 |
|
186 |
/**
|
187 |
* get selected results export elements
|
188 |
*
|
189 |
* @return
|
190 |
*/
|
191 |
public Integer[] getExportElements(); |
192 |
|
193 |
/**
|
194 |
* set selected results export elements
|
195 |
*
|
196 |
* @param exportElements
|
197 |
*/
|
198 |
public void setExportElements(Integer[] exportElements); |
199 |
|
200 |
} |