Statistics
| Revision:

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 / DefaultLrsCalibrateRouteAlgorithmParams.java @ 9

History | View | Annotate | Download (7.4 KB)

1
/* 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
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
28
import org.gvsig.lrs.lib.api.DistanceUnits;
29
import org.gvsig.lrs.lib.api.LrsCalibrateRouteAlgorithmParams;
30
import org.gvsig.lrs.lib.api.LrsMeasureCalculationMethods;
31

    
32

    
33
/**
34
 * @author dmartinez
35
 *
36
 */
37
public class DefaultLrsCalibrateRouteAlgorithmParams implements LrsCalibrateRouteAlgorithmParams {
38

    
39
    private FeatureStore sourceFeatureStore;
40
    private FeatureAttributeDescriptor idRouteField;
41
    private NewFeatureStoreParameters newFeatureStoreParameters;
42
    private FeatureStore calibratePointFeatureStore;
43
    private FeatureAttributeDescriptor calibratePointIdRouteField;
44
    private FeatureAttributeDescriptor fromMeasureField;
45
    private LrsMeasureCalculationMethods measureCalculationMethods;
46
    private DistanceUnits measureUnits;
47
    private double searchRadius = 0.0;
48
    private boolean interpolateBetweenCalibrationPoints=false;
49
    private boolean extrapolateBeforeCalibrationPoints=false;
50
    private boolean extrapolateAfterCalibrationPoints=false;
51
    private boolean ignoreSpatialGaps=false;
52
    private boolean includeAll=false;
53
    private final String NAME = "LrsCalibrateRouteAlgorithm";
54
    private final String DESCRIPTION = "Algorithm to calibrate routes with linear reference system.";
55

    
56

    
57

    
58
    /**
59
     *
60
     */
61
    public DefaultLrsCalibrateRouteAlgorithmParams() {
62
        searchRadius = 0.0;
63
    }
64

    
65
    /* (non-Javadoc)
66
     * @see org.gvsig.lrs.lib.api.LrsAlgorithmParams#getName()
67
     */
68
    public String getName() {
69
        return NAME;
70
    }
71

    
72
    /* (non-Javadoc)
73
     * @see org.gvsig.lrs.lib.api.LrsAlgorithmParams#getDescription()
74
     */
75
    public String getDescription() {
76
        return DESCRIPTION;
77
    }
78

    
79
    /*
80
     * (non-Javadoc)
81
     * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getSourceFeatureStore()
82
     */
83
    public FeatureStore getSourceFeatureStore() {
84
        return sourceFeatureStore;
85
    }
86

    
87

    
88
    /*
89
     * (non-Javadoc)
90
     * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setSourceFeatureStore(org.gvsig.fmap.dal.feature.FeatureStore)
91
     */
92
    public void setSourceFeatureStore(FeatureStore sourceFeatureStore) {
93
        this.sourceFeatureStore = sourceFeatureStore;
94
    }
95

    
96
    /*
97
     * (non-Javadoc)
98
     * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getIdRouteField()
99
     */
100
    public FeatureAttributeDescriptor getIdRouteField() {
101
        return idRouteField;
102
    }
103

    
104

    
105
    /*
106
     * (non-Javadoc)
107
     * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setIdRouteField(org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor)
108
     */
109
    public void setIdRouteField(FeatureAttributeDescriptor idRouteField) {
110
        this.idRouteField = idRouteField;
111
    }
112

    
113
    /*
114
     * (non-Javadoc)
115
     * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getFromMeasureField()
116
     */
117
    public FeatureAttributeDescriptor getFromMeasureField() {
118
        return fromMeasureField;
119
    }
120

    
121
    /*
122
     * (non-Javadoc)
123
     * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setFromMeasureField(org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor)
124
     */
125
    public void setFromMeasureField(FeatureAttributeDescriptor fromMeasureField) {
126
        this.fromMeasureField = fromMeasureField;
127
    }
128

    
129
    /*
130
     * (non-Javadoc)
131
     * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#isIgnoreSpatialGaps()
132
     */
133
    public boolean ignoreSpatialGaps() {
134
        return ignoreSpatialGaps;
135
    }
136

    
137
    /*
138
     * (non-Javadoc)
139
     * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setIgnoreSpatialGaps(boolean)
140
     */
141
    public void setIgnoreSpatialGaps(boolean ignoreSpatialGaps) {
142
        this.ignoreSpatialGaps = ignoreSpatialGaps;
143
    }
144

    
145
    public NewFeatureStoreParameters getNewFeatureStoreParameters() {
146
        return this.newFeatureStoreParameters;
147
    }
148

    
149
    public void setNewFeatureStoreParameters(
150
        NewFeatureStoreParameters newFeatureStoreParameters) {
151
        this.newFeatureStoreParameters = newFeatureStoreParameters;
152
    }
153

    
154

    
155
    public FeatureStore getCalibratePointFeatureStore() {
156
        return calibratePointFeatureStore;
157
    }
158

    
159

    
160
    public void setCalibratePointFeatureStore(
161
        FeatureStore calibratePointFeatureStore) {
162
        this.calibratePointFeatureStore = calibratePointFeatureStore;
163
    }
164

    
165

    
166
    public FeatureAttributeDescriptor getCalibratePointIdRouteField() {
167
        return calibratePointIdRouteField;
168
    }
169

    
170

    
171
    public void setCalibratePointIdRouteField(
172
        FeatureAttributeDescriptor calibratePointIdRouteField) {
173
        this.calibratePointIdRouteField = calibratePointIdRouteField;
174
    }
175

    
176

    
177
    public LrsMeasureCalculationMethods getMeasureCalculationMethods() {
178
        return measureCalculationMethods;
179
    }
180

    
181

    
182
    public void setMeasureCalculationMethods(
183
        LrsMeasureCalculationMethods measureCalculationMethods) {
184
        this.measureCalculationMethods = measureCalculationMethods;
185
    }
186

    
187

    
188
    public DistanceUnits getMeasureUnits() {
189
        return measureUnits;
190
    }
191

    
192

    
193
    public void setMeasureUnits(DistanceUnits measureUnits) {
194
        this.measureUnits = measureUnits;
195
    }
196

    
197

    
198
    public double getSearchRadius() {
199
        return searchRadius;
200
    }
201

    
202

    
203
    public void setSearchRadius(double searchRadius) {
204
        this.searchRadius = searchRadius;
205
    }
206

    
207

    
208
    public boolean interpolateBetweenCalibrationPoints() {
209
        return interpolateBetweenCalibrationPoints;
210
    }
211

    
212

    
213
    public void setInterpolateBetweenCalibrationPoints(
214
        boolean interpolateBetweenCalibrationPoints) {
215
        this.interpolateBetweenCalibrationPoints =
216
            interpolateBetweenCalibrationPoints;
217
    }
218

    
219

    
220
    public boolean extrapolateBeforeCalibrationPoints() {
221
        return extrapolateBeforeCalibrationPoints;
222
    }
223

    
224

    
225
    public void setExtrapolateBeforeCalibrationPoints(
226
        boolean extrapolateBeforeCalibrationPoints) {
227
        this.extrapolateBeforeCalibrationPoints =
228
            extrapolateBeforeCalibrationPoints;
229
    }
230

    
231

    
232
    public boolean extrapolateAfterCalibrationPoints() {
233
        return extrapolateAfterCalibrationPoints;
234
    }
235

    
236

    
237
    public void setExtrapolateAfterCalibrationPoints(
238
        boolean extrapolateAfterCalibrationPoints) {
239
        this.extrapolateAfterCalibrationPoints = extrapolateAfterCalibrationPoints;
240
    }
241

    
242

    
243
    public boolean includeAll() {
244
        return includeAll;
245
    }
246

    
247

    
248
    public void setIncludeAll(boolean includeAll) {
249
        this.includeAll = includeAll;
250
    }
251

    
252

    
253
}