Statistics
| Revision:

root / branches / v2_0_0_prep / extensions / extGeocoding / src / org / gvsig / geocoding / gui / IGeocodingModel.java @ 27464

History | View | Annotate | Download (3.94 KB)

1 26843 vsanjaime
/* 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 27377 vsanjaime
import java.util.Set;
33 26843 vsanjaime
34 27355 vsanjaime
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
35
import org.gvsig.fmap.dal.feature.FeatureStore;
36 26851 vsanjaime
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
37 27317 vsanjaime
import org.gvsig.geocoding.pattern.Patterngeocoding;
38
import org.gvsig.geocoding.result.GeocodingResult;
39 26843 vsanjaime
40
/**
41 27338 vsanjaime
 * interface of the extensi?n model
42 26843 vsanjaime
 *
43 27338 vsanjaime
 * @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 26843 vsanjaime
 */
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 26851 vsanjaime
98 26843 vsanjaime
        /**
99 27317 vsanjaime
         * @return the one results
100 26843 vsanjaime
         */
101 27377 vsanjaime
        public Set<GeocodingResult> getOneGroupResults(int index);
102 26843 vsanjaime
103
        /**
104 27317 vsanjaime
         * @return the results list
105 26843 vsanjaime
         */
106 27377 vsanjaime
        public List<Set<GeocodingResult>> getAllResults();
107 26851 vsanjaime
108 26843 vsanjaime
        /**
109 27317 vsanjaime
         * @param one
110
         *            group of results the results to set
111
         */
112 27377 vsanjaime
        public void setOneGroupResults(Set<GeocodingResult> results);
113 27317 vsanjaime
114
        /**
115
         * @param one
116
         *            group of results the results to set
117
         */
118 27377 vsanjaime
        public void setAllResults(List<Set<GeocodingResult>> results);
119 27317 vsanjaime
120
        /**
121 26843 vsanjaime
         * @return the simple
122
         */
123
        public boolean isSimple();
124
125
        /**
126 26851 vsanjaime
         * @param simple
127
         *            the simple to set
128 26843 vsanjaime
         */
129
        public void setSimple(boolean simple);
130
131 27355 vsanjaime
        /**
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
         * @return
149
         */
150
        public FeatureStore getSelectedTableStore();
151
152
        /**
153
         * set store of selected table
154
         * @param selectedTableStore
155
         */
156
        public void setSelectedTableStore(FeatureStore selectedTableStore);
157 27377 vsanjaime
158
        /**
159
         * Add one result to list of results
160
         * @param result
161
         */
162
        public void addResult(Set<GeocodingResult> result);
163
164
        /**
165
         * Clear list of geocoding results
166
         */
167
        public void clearResults();
168 27355 vsanjaime
169 27464 vsanjaime
        /**
170
         * set number of result of results list showed
171
         * @param i
172
         */
173
        public void setNumResultShowed(int i);
174
175
        /**
176
         * get number of result of the results list showed
177
         * @return
178
         */
179
        public int getNumResultShowed();
180
181 26843 vsanjaime
}