gvsig-lrs / org.gvsig.lrs / trunk / org.gvsig.lrs / org.gvsig.lrs.lib / org.gvsig.lrs.lib.impl / src / main / java / org / gvsig / lrs / lib / impl / DefaultLrsCreateRouteAlgorithmParams.java @ 9
History | View | Annotate | Download (7.15 KB)
1 | 6 | fdiaz | /* gvSIG. Desktop Geographic Information System.
|
---|---|---|---|
2 | *
|
||
3 | * Copyright ? 2007-2015 gvSIG Association
|
||
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., 51 Franklin Street, Fifth Floor, Boston,
|
||
18 | * MA 02110-1301, USA.
|
||
19 | *
|
||
20 | * For any additional information, do not hesitate to contact us
|
||
21 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
22 | */
|
||
23 | package org.gvsig.lrs.lib.impl; |
||
24 | |||
25 | import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
||
26 | import org.gvsig.fmap.dal.feature.FeatureStore; |
||
27 | 9 | dmartinezizquierdo | import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
28 | 6 | fdiaz | import org.gvsig.lrs.lib.api.LrsCoordinatesPriority; |
29 | import org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams; |
||
30 | import org.gvsig.lrs.lib.api.LrsSourceOfMeasures; |
||
31 | |||
32 | |||
33 | /**
|
||
34 | * @author fdiaz
|
||
35 | *
|
||
36 | */
|
||
37 | public class DefaultLrsCreateRouteAlgorithmParams implements LrsCreateRouteAlgorithmParams { |
||
38 | |||
39 | private FeatureStore sourceFeatureStore;
|
||
40 | private FeatureAttributeDescriptor idRouteField;
|
||
41 | 9 | dmartinezizquierdo | private NewFeatureStoreParameters newFeatureStoreParameters;
|
42 | 6 | fdiaz | private LrsSourceOfMeasures sourceOfMeasures;
|
43 | private FeatureAttributeDescriptor fromMeasureField;
|
||
44 | private FeatureAttributeDescriptor toMeasureField;
|
||
45 | private LrsCoordinatesPriority coordinatePriority;
|
||
46 | private double measureFactor = 1.0; |
||
47 | private double measureOffset = 0.0; |
||
48 | private boolean ignoreSpatialGaps; |
||
49 | private final String NAME = "LrsCreateRouteAlgorithm"; |
||
50 | private final String DESCRIPTION = "Algorithm to create routes with linear reference system."; |
||
51 | |||
52 | |||
53 | |||
54 | /**
|
||
55 | *
|
||
56 | */
|
||
57 | public DefaultLrsCreateRouteAlgorithmParams() {
|
||
58 | measureFactor = 1.0;
|
||
59 | measureOffset = 0.0;
|
||
60 | } |
||
61 | |||
62 | /* (non-Javadoc)
|
||
63 | * @see org.gvsig.lrs.lib.api.LrsAlgorithmParams#getName()
|
||
64 | */
|
||
65 | public String getName() { |
||
66 | return NAME;
|
||
67 | } |
||
68 | |||
69 | /* (non-Javadoc)
|
||
70 | * @see org.gvsig.lrs.lib.api.LrsAlgorithmParams#getDescription()
|
||
71 | */
|
||
72 | public String getDescription() { |
||
73 | return DESCRIPTION;
|
||
74 | } |
||
75 | |||
76 | /*
|
||
77 | * (non-Javadoc)
|
||
78 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getSourceFeatureStore()
|
||
79 | */
|
||
80 | public FeatureStore getSourceFeatureStore() {
|
||
81 | return sourceFeatureStore;
|
||
82 | } |
||
83 | |||
84 | |||
85 | /*
|
||
86 | * (non-Javadoc)
|
||
87 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setSourceFeatureStore(org.gvsig.fmap.dal.feature.FeatureStore)
|
||
88 | */
|
||
89 | public void setSourceFeatureStore(FeatureStore sourceFeatureStore) { |
||
90 | this.sourceFeatureStore = sourceFeatureStore;
|
||
91 | } |
||
92 | |||
93 | /*
|
||
94 | * (non-Javadoc)
|
||
95 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getIdRouteField()
|
||
96 | */
|
||
97 | public FeatureAttributeDescriptor getIdRouteField() {
|
||
98 | return idRouteField;
|
||
99 | } |
||
100 | |||
101 | |||
102 | /*
|
||
103 | * (non-Javadoc)
|
||
104 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setIdRouteField(org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor)
|
||
105 | */
|
||
106 | public void setIdRouteField(FeatureAttributeDescriptor idRouteField) { |
||
107 | this.idRouteField = idRouteField;
|
||
108 | } |
||
109 | |||
110 | /*
|
||
111 | * (non-Javadoc)
|
||
112 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getSourceOfMeasures()
|
||
113 | */
|
||
114 | public LrsSourceOfMeasures getSourceOfMeasures() {
|
||
115 | return sourceOfMeasures;
|
||
116 | } |
||
117 | |||
118 | /*
|
||
119 | * (non-Javadoc)
|
||
120 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setSourceOfMeasures(org.gvsig.lrs.lib.api.SourceOfMeasures)
|
||
121 | */
|
||
122 | public void setSourceOfMeasures(LrsSourceOfMeasures sourceOfMeasures) { |
||
123 | this.sourceOfMeasures = sourceOfMeasures;
|
||
124 | } |
||
125 | |||
126 | /*
|
||
127 | * (non-Javadoc)
|
||
128 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getFromMeasureField()
|
||
129 | */
|
||
130 | public FeatureAttributeDescriptor getFromMeasureField() {
|
||
131 | return fromMeasureField;
|
||
132 | } |
||
133 | |||
134 | /*
|
||
135 | * (non-Javadoc)
|
||
136 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setFromMeasureField(org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor)
|
||
137 | */
|
||
138 | public void setFromMeasureField(FeatureAttributeDescriptor fromMeasureField) { |
||
139 | this.fromMeasureField = fromMeasureField;
|
||
140 | } |
||
141 | |||
142 | /*
|
||
143 | * (non-Javadoc)
|
||
144 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getToMeasureField()
|
||
145 | */
|
||
146 | public FeatureAttributeDescriptor getToMeasureField() {
|
||
147 | return toMeasureField;
|
||
148 | } |
||
149 | |||
150 | /*
|
||
151 | * (non-Javadoc)
|
||
152 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setToMeasureField(org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor)
|
||
153 | */
|
||
154 | public void setToMeasureField(FeatureAttributeDescriptor toMeasureField) { |
||
155 | this.toMeasureField = toMeasureField;
|
||
156 | } |
||
157 | |||
158 | /*
|
||
159 | * (non-Javadoc)
|
||
160 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getCoordinatePriority()
|
||
161 | */
|
||
162 | public LrsCoordinatesPriority getCoordinatePriority() {
|
||
163 | return coordinatePriority;
|
||
164 | } |
||
165 | |||
166 | /*
|
||
167 | * (non-Javadoc)
|
||
168 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setCoordinatePriority(org.gvsig.lrs.lib.api.CoordinatesPriority)
|
||
169 | */
|
||
170 | public void setCoordinatePriority(LrsCoordinatesPriority coordinatePriority) { |
||
171 | this.coordinatePriority = coordinatePriority;
|
||
172 | } |
||
173 | |||
174 | /*
|
||
175 | * (non-Javadoc)
|
||
176 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getMeasureFactor()
|
||
177 | */
|
||
178 | public double getMeasureFactor() { |
||
179 | return measureFactor;
|
||
180 | } |
||
181 | |||
182 | /*
|
||
183 | * (non-Javadoc)
|
||
184 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setMeasureFactor(double)
|
||
185 | */
|
||
186 | public void setMeasureFactor(double measureFactor) { |
||
187 | this.measureFactor = measureFactor;
|
||
188 | } |
||
189 | |||
190 | /*
|
||
191 | * (non-Javadoc)
|
||
192 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getMeasureOffset()
|
||
193 | */
|
||
194 | public double getMeasureOffset() { |
||
195 | return measureOffset;
|
||
196 | } |
||
197 | |||
198 | /*
|
||
199 | * (non-Javadoc)
|
||
200 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setMeasureOffset(double)
|
||
201 | */
|
||
202 | public void setMeasureOffset(double measureOffset) { |
||
203 | this.measureOffset = measureOffset;
|
||
204 | } |
||
205 | |||
206 | /*
|
||
207 | * (non-Javadoc)
|
||
208 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#isIgnoreSpatialGaps()
|
||
209 | */
|
||
210 | public boolean ignoreSpatialGaps() { |
||
211 | return ignoreSpatialGaps;
|
||
212 | } |
||
213 | |||
214 | /*
|
||
215 | * (non-Javadoc)
|
||
216 | * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setIgnoreSpatialGaps(boolean)
|
||
217 | */
|
||
218 | public void setIgnoreSpatialGaps(boolean ignoreSpatialGaps) { |
||
219 | this.ignoreSpatialGaps = ignoreSpatialGaps;
|
||
220 | } |
||
221 | |||
222 | 9 | dmartinezizquierdo | public NewFeatureStoreParameters getNewFeatureStoreParameters() {
|
223 | return this.newFeatureStoreParameters; |
||
224 | } |
||
225 | |||
226 | public void setNewFeatureStoreParameters( |
||
227 | NewFeatureStoreParameters newFeatureStoreParameters) { |
||
228 | this.newFeatureStoreParameters = newFeatureStoreParameters;
|
||
229 | } |
||
230 | |||
231 | 6 | fdiaz | } |