Revision 574

View differences:

org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/resources/META-INF/services/org.gvsig.tools.library.Library
1
org.gvsig.lrs.lib.api.LrsAlgorithmsLibrary
0 2

  
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsCoordinatesPriority.java
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.api;
24

  
25
import org.gvsig.tools.ToolsLocator;
26

  
27

  
28
/**
29
 * @author fdiaz
30
 *
31
 */
32
public enum LrsCoordinatesPriority {
33
    UP_LEFT("up_left",0),
34
    DOWN_LEFT("down_left",1),
35
    UP_RIGHT("up_right",2),
36
    DOWN_RIGHT("down_right",3);
37

  
38
    private final String name;
39
    private final int value;
40

  
41
    LrsCoordinatesPriority(String name, int value){
42
        this.name = name;
43
        this.value = value;
44
    }
45

  
46
    public String getName(){
47
        return this.name;
48
    }
49

  
50
    public int getValue(){
51
        return this.value;
52
    }
53

  
54
    public String toString(){
55
        return ToolsLocator.getI18nManager().getTranslation(name);
56
    }
57
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/MeasuresCalculator.java
1

  
2
package org.gvsig.lrs.lib.api;
3

  
4
import java.util.List;
5
import org.gvsig.fmap.geom.Geometry;
6
import org.gvsig.fmap.geom.primitive.Point;
7

  
8

  
9
public interface MeasuresCalculator {
10

  
11
    public void addControlPoints(List<Point> fixedPoints);
12

  
13
    public void calculate();
14
    public void calculate(LrsMeasureCalculationMethods calculationMethod, boolean before, boolean between, boolean after);
15

  
16
    public Geometry getResult();
17

  
18
    public void setMeasuresToDistances();
19

  
20
    public void setFirstMeasure(double mvalue);
21
    public void setLastMeasure(double mvalue);
22
	
23
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/exceptions/LrsException.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2014 gvSIG Association
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.lrs.lib.api.exceptions;
25

  
26

  
27
import org.gvsig.tools.exception.BaseException;
28

  
29
/**
30
 *
31
 * @author gvSIG team.
32
 *
33
 */
34
public class LrsException extends BaseException {
35

  
36
    /**
37
     *
38
     */
39
    private static final long serialVersionUID = -1043709801185809443L;
40

  
41
    private static final String MESSAGE =
42
        "An error has been produced in the LRS library";
43

  
44
    private static final String KEY = "_WasteException";
45

  
46
    /**
47
     * Constructor to be used in rare cases, usually you must create a new child
48
     * exception class for each case.
49
     * <strong>Don't use this constructor in child classes.</strong>
50
     */
51
    public LrsException() {
52
        super(MESSAGE, KEY, serialVersionUID);
53
    }
54

  
55
    /**
56
     * Constructor to be used in rare cases, usually you must create a new child
57
     * exception class for each case.
58
     * <p>
59
     * <strong>Don't use this constructor in child classes.</strong>
60
     * </p>
61
     *
62
     * @param cause
63
     *            the original cause of the exception
64
     */
65
    public LrsException(Exception cause) {
66
        super(MESSAGE, cause, KEY, serialVersionUID);
67
    }
68

  
69
    /**
70
     * @see BaseException#BaseException(String, String, long).
71
     * @param message
72
     *            the default messageFormat to describe the exception
73
     * @param key
74
     *            the key to use to search a localized messageFormnata
75
     * @param code
76
     *            the unique code to identify the exception
77
     */
78
    protected LrsException(String message, String key, long code) {
79
        super(message, key, code);
80
    }
81

  
82
    /**
83
     * @see BaseException#BaseException(String, Throwable, String, long).
84
     * @param message
85
     *            the default messageFormat to describe the exception
86
     * @param cause
87
     *            the original cause of the exception
88
     * @param key
89
     *            the key to use to search a localized messageFormnata
90
     * @param code
91
     *            the unique code to identify the exception
92
     */
93
    protected LrsException(String message, Throwable cause,
94
        String key, long code) {
95
        super(message, cause, key, code);
96
    }
97

  
98
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/exceptions/LrsCreateRouteException.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2014 gvSIG Association
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

  
25
package org.gvsig.lrs.lib.api.exceptions;
26

  
27
public class LrsCreateRouteException extends LrsException {
28

  
29
    /**
30
     *
31
     */
32
    private static final long serialVersionUID = -7593469257155358436L;
33

  
34
    private static final String MESSAGE =
35
        "Error creating routes.";
36

  
37
    private static final String KEY = "_LrsCreateRouteException";
38

  
39
    public LrsCreateRouteException(Throwable ex) {
40
        super(MESSAGE, ex, KEY, serialVersionUID);
41
    }
42

  
43
    public LrsCreateRouteException(String message, Throwable ex) {
44
        super(message, ex, KEY, serialVersionUID);
45
    }
46

  
47
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/exceptions/LrsCalibrateRouteException.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2014 gvSIG Association
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

  
25
package org.gvsig.lrs.lib.api.exceptions;
26

  
27
public class LrsCalibrateRouteException extends LrsException {
28

  
29
    /**
30
     *
31
     */
32
    private static final long serialVersionUID = -7593469257155358436L;
33

  
34
    private static final String MESSAGE =
35
        "Error calibrating routes.";
36

  
37
    private static final String KEY = "_LrsCalibrateRouteException";
38

  
39
    public LrsCalibrateRouteException(Throwable ex) {
40
        super(MESSAGE, ex, KEY, serialVersionUID);
41
    }
42

  
43
    public LrsCalibrateRouteException(String message, Throwable ex) {
44
        super(message, ex, KEY, serialVersionUID);
45
    }
46

  
47
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/exceptions/LrsGettingParametersException.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2014 gvSIG Association
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

  
25
package org.gvsig.lrs.lib.api.exceptions;
26

  
27
public class LrsGettingParametersException extends LrsException {
28

  
29

  
30
    /**
31
     *
32
     */
33
    private static final long serialVersionUID = 8201868527295813900L;
34

  
35
    private static final String MESSAGE =
36
        "An error has been produced getting algorithm parameters.";
37

  
38
    private static final String KEY = "_LrsGettingParametersException";
39

  
40
    public LrsGettingParametersException(Throwable ex) {
41
        super(MESSAGE, ex, KEY, serialVersionUID);
42
    }
43

  
44
    public LrsGettingParametersException(String message, Throwable ex) {
45
        super(message, ex, KEY, serialVersionUID);
46
    }
47

  
48
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/exceptions/LrsNeededParameterException.java
1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright ? 2007-2014 gvSIG Association
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

  
25
package org.gvsig.lrs.lib.api.exceptions;
26

  
27
public class LrsNeededParameterException extends LrsException {
28

  
29
    /**
30
     *
31
     */
32
    private static final long serialVersionUID = 3472690716035276175L;
33

  
34
    private static final String MESSAGE =
35
        "One or more of required parameters are empty.";
36

  
37
    private static final String KEY = "_LrsNeededParameterException";
38

  
39
    public LrsNeededParameterException(Throwable ex) {
40
        super(MESSAGE, ex, KEY, serialVersionUID);
41
    }
42

  
43
    public LrsNeededParameterException(String message, Throwable ex) {
44
        super(message, ex, KEY, serialVersionUID);
45
    }
46

  
47
}
0 48

  
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsCalibrateRouteAlgorithmParams.java
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.api;
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

  
29
/**
30
 * @author dmartinez
31
 *
32
 */
33
public interface LrsCalibrateRouteAlgorithmParams extends LrsAlgorithmParams {
34
    /**
35
     * @return the sourceFeatureStore
36
     */
37
    public FeatureStore getSourceFeatureStore();
38

  
39

  
40
    /**
41
     * @param sourceFeatureStore the sourceFeatureStore to set
42
     */
43
    public void setSourceFeatureStore(FeatureStore sourceFeatureStore);
44

  
45

  
46
    /**
47
     * @return the idRouteField
48
     */
49
    public FeatureAttributeDescriptor getIdRouteField();
50

  
51
    /**
52
     * @param idRouteField the idRouteField to set
53
     */
54
    public void setIdRouteField(FeatureAttributeDescriptor idRouteField);
55

  
56

  
57
    /**
58
     * @return the calibratePointFeatureStore
59
     */
60
    public FeatureStore getCalibratePointFeatureStore();
61

  
62
    /**
63
     * @param calibratePointFeatureStore the calibratePointFeatureStore to set
64
     */
65
    public void setCalibratePointFeatureStore(FeatureStore calibratePointFeatureStore);
66

  
67

  
68
    /**
69
     * @return the calibratePointIdRouteField
70
     */
71
    public FeatureAttributeDescriptor getCalibratePointIdRouteField();
72

  
73
    /**
74
     * @param calibratePointIdRouteField the calibratePointIdRouteField to set
75
     */
76
    public void setCalibratePointIdRouteField(FeatureAttributeDescriptor calibratePointIdRouteField);
77

  
78
    /**
79
     * @return the fromMeasureField
80
     */
81
    public FeatureAttributeDescriptor getFromMeasureField();
82

  
83
    /**
84
     * @param fromMeasureField the fromMeasureField to set
85
     */
86
    public void setFromMeasureField(FeatureAttributeDescriptor fromMeasureField);
87

  
88
    /**
89
     * @return the newFeatureStoreParameters
90
     */
91
    public NewFeatureStoreParameters getNewFeatureStoreParameters();
92

  
93
    /**
94
     * @param newFeatureStoreParameters
95
     *            the newFeatureStoreParameters to set
96
     */
97
    public void setNewFeatureStoreParameters(NewFeatureStoreParameters newFeatureStoreParameters);
98

  
99

  
100
    /**
101
     * @return the measureCalculationMethods
102
     */
103
    public LrsMeasureCalculationMethods getMeasureCalculationMethods();
104

  
105
    /**
106
     * @param measureCalculationMethods the measureCalculationMethods to set
107
     */
108
    public void setMeasureCalculationMethods(LrsMeasureCalculationMethods measureCalculationMethods);
109

  
110

  
111
    /**
112
     * @return the measureUnits
113
     */
114
    public DistanceUnits getMeasureUnits();
115

  
116
    /**
117
     * @param measureUnits the measureUnits to set
118
     */
119
    public void setMeasureUnits(DistanceUnits measureUnits);
120

  
121

  
122
    /**
123
     * @return the searchRadius
124
     */
125
    public double getSearchRadius();
126

  
127
    /**
128
     * @param searchRadius the searchRadius to set
129
     */
130
    public void setSearchRadius(double searchRadius);
131

  
132

  
133
    /**
134
     * @return the interpolateBetweenCalibrationPoints
135
     */
136
    public boolean interpolateBetweenCalibrationPoints();
137

  
138
    /**
139
     * @param interpolateBetweenCalibrationPoints the interpolateBetweenCalibrationPoints to set
140
     */
141
    public void setInterpolateBetweenCalibrationPoints(boolean interpolateBetweenCalibrationPoints);
142

  
143

  
144
    /**
145
     * @return the extrapolateBeforeCalibrationPoints
146
     */
147
    public boolean extrapolateBeforeCalibrationPoints();
148

  
149
    /**
150
     * @param extrapolateBeforeCalibrationPoints the extrapolateBeforeCalibrationPoints to set
151
     */
152
    public void setExtrapolateBeforeCalibrationPoints(boolean extrapolateBeforeCalibrationPoints);
153

  
154

  
155
    /**
156
     * @return the extrapolateAfterCalibrationPoints
157
     */
158
    public boolean extrapolateAfterCalibrationPoints();
159

  
160
    /**
161
     * @param extrapolateAfterCalibrationPoints the extrapolateAfterCalibrationPoints to set
162
     */
163
    public void setExtrapolateAfterCalibrationPoints(boolean extrapolateAfterCalibrationPoints);
164

  
165

  
166
    /**
167
     * @return the ignoreSpatialGaps
168
     */
169
    public boolean ignoreSpatialGaps();
170

  
171
    /**
172
     * @param ignoreSpatialGaps the ignoreSpatialGaps to set
173
     */
174
    public void setIgnoreSpatialGaps(boolean ignoreSpatialGaps);
175

  
176
    /**
177
     * @return the includeAll
178
     */
179
    public boolean includeAll();
180

  
181
    /**
182
     * @param includeAll the includeAll to set
183
     */
184
    public void setIncludeAll(boolean includeAll);
185

  
186

  
187
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsEditRouteCalibrationSelectIdRouteAlgorithmParams.java
1
/*
2
 * Copyright 2015 DiSiD Technologies S.L.L. All rights reserved.
3
 *
4
 * Project  : DiSiD org.gvsig.lrs.lib.api
5
 * SVN Id   : $Id$
6
 */
7
package org.gvsig.lrs.lib.api;
8

  
9
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
10

  
11
public interface LrsEditRouteCalibrationSelectIdRouteAlgorithmParams extends LrsAlgorithmParams{
12
    public FeatureAttributeDescriptor getIdRouteField();
13
    public void setIdRouteField(FeatureAttributeDescriptor idRouteField);
14

  
15
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsAlgorithm.java
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.api;
24

  
25
import org.gvsig.lrs.lib.api.exceptions.LrsException;
26
import org.gvsig.tools.dynobject.DynObject;
27
import org.gvsig.tools.service.Service;
28
import org.gvsig.tools.task.SimpleTaskStatus;
29

  
30

  
31
/**
32
 * @author fdiaz
33
 *
34
 */
35
public interface LrsAlgorithm extends Service{
36

  
37
    /**
38
     * Gets algorithm's parameters.
39
     *
40
     * @return A DynObject.
41
     */
42
    public LrsAlgorithmParams getParams();
43

  
44
    /**
45
     * Executes the algorithm
46
     * @throws LrsException
47
     *
48
     */
49
    public void execute(SimpleTaskStatus taskStatus) throws LrsException;
50

  
51
    /**
52
     * Sets parameters
53
     *
54
     * @param params
55
     * @throws IllegalArgumentException
56
     */
57
    public void setParams(LrsAlgorithmParams params) throws IllegalArgumentException;
58

  
59
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsEditRouteCalibrationAlgorithmParams.java
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.api;
24

  
25
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
26
import org.gvsig.fmap.geom.Geometry;
27

  
28
/**
29
 * @author dmartinez
30
 *
31
 */
32
public interface LrsEditRouteCalibrationAlgorithmParams extends LrsAlgorithmParams {
33
    /* (non-Javadoc)
34
     * @see org.gvsig.lrs.lib.api.LrsAlgorithmParams#getName()
35
     */
36
    public String getName();
37

  
38
    /* (non-Javadoc)
39
     * @see org.gvsig.lrs.lib.api.LrsAlgorithmParams#getDescription()
40
     */
41
    public String getDescription();
42

  
43
    /*
44
     * (non-Javadoc)
45
     * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#getIdRouteField()
46
     */
47
    public FeatureAttributeDescriptor getIdRouteField();
48

  
49
    /*
50
     * (non-Javadoc)
51
     * @see org.gvsig.lrs.lib.api.LrsCreateRouteAlgorithmParams#setIdRouteField(org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor)
52
     */
53
    public void setIdRouteField(FeatureAttributeDescriptor idRouteField);
54

  
55
    public String getSelectedRouteName();
56

  
57
    public void setSelectedRouteName(String selectedRouteName);
58

  
59
    public Geometry getModifiedGeometry();
60

  
61
    public void setModifiedGeometry(Geometry modifiedGeometry);
62
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsGenerateDynamicSegmentationAlgorithmParams.java
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.api;
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

  
29
/**
30
 * @author fdiaz
31
 *
32
 */
33
public interface LrsGenerateDynamicSegmentationAlgorithmParams extends LrsAlgorithmParams {
34

  
35
    public FeatureStore getSourceFeatureStore();
36

  
37

  
38
    public void setSourceFeatureStore(FeatureStore sourceFeatureStore);
39

  
40

  
41
    public FeatureAttributeDescriptor getIdRouteField();
42

  
43

  
44
    public void setIdRouteField(FeatureAttributeDescriptor idRouteField);
45

  
46

  
47
    public NewFeatureStoreParameters getNewFeatureStoreParameters();
48

  
49

  
50
    public void setNewFeatureStoreParameters(
51
        NewFeatureStoreParameters newFeatureStoreParameters);
52

  
53

  
54
    public FeatureStore getValueTableFeatureStore() ;
55

  
56

  
57
    public void setValueTableFeatureStore(FeatureStore valueTableFeatureStore);
58

  
59

  
60
    public FeatureAttributeDescriptor getValueTableIdRouteField();
61

  
62

  
63
    public void setValueTableIdRouteField(
64
        FeatureAttributeDescriptor valueTableIdRouteField);
65

  
66

  
67
    public FeatureAttributeDescriptor getLandmarkField();
68

  
69

  
70
    public void setLandmarkField(FeatureAttributeDescriptor landmarkField);
71

  
72

  
73
    public FeatureAttributeDescriptor getFinalLandmarkField();
74

  
75

  
76
    public void setFinalLandmarkField(
77
        FeatureAttributeDescriptor finalLandmarkField);
78

  
79

  
80
    public FeatureAttributeDescriptor getValueField();
81

  
82

  
83
    public void setValueField(FeatureAttributeDescriptor valueField);
84
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsAlgorithmParams.java
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.api;
24

  
25

  
26
/**
27
 * @author fdiaz
28
 *
29
 */
30
public interface LrsAlgorithmParams {
31

  
32

  
33
    /**
34
     *
35
     */
36
    String getName();
37

  
38
    /**
39
     *
40
     */
41
    String getDescription();
42

  
43

  
44
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsSourceOfMeasures.java
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.api;
24

  
25
import org.gvsig.tools.ToolsLocator;
26

  
27

  
28
/**
29
 * @author fdiaz
30
 *
31
 */
32
public enum LrsSourceOfMeasures {
33
    LENGTH("length",0),
34
    ONE_FIELD("one_field",1),
35
    TWO_FIELDS("two_fields",2);
36

  
37
    private final String name;
38
    private final int value;
39

  
40
    LrsSourceOfMeasures(String name, int value){
41
        this.name = name;
42
        this.value = value;
43
    }
44

  
45
    public String getName(){
46
        return this.name;
47
    }
48

  
49
    public int getValue(){
50
        return this.value;
51
    }
52

  
53
    public String toString(){
54
        return ToolsLocator.getI18nManager().getTranslation(name);
55
    }
56
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/DistanceUnits.java
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.api;
24

  
25
import org.gvsig.tools.ToolsLocator;
26

  
27

  
28
/**
29
 * @author fdiaz
30
 *
31
 */
32
public enum DistanceUnits {
33
    KILOMETER("Kilometer","Km",1000),
34
    METER("meter","m",1),
35
    CENTIMETER("centimeter","cm",0.01),
36
    MILLIMETER("millimeter","mm",0.001),
37
    MILE("mile","mi",1609.344),
38
    YARD("yard","Ya",0.9144),
39
    FOOT("foot","ft",0.3048),
40
    INCH("inch","in",0.0254);
41

  
42
    private final String name;
43
    private final String abrev;
44
    private final double transToMeter;
45

  
46
    DistanceUnits(String name, String abrev, double transToMeter){
47
        this.name = name;
48
        this.abrev = abrev;
49
        this.transToMeter = transToMeter;
50
    }
51

  
52
    public String getName(){
53
        return this.name;
54
    }
55

  
56
    public String getAbrev(){
57
        return this.abrev;
58
    }
59

  
60
    public double getTransToMeter(){
61
        return this.transToMeter;
62
    }
63

  
64
    public String toString(){
65
        return ToolsLocator.getI18nManager().getTranslation(name);
66
    }
67
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsAlgorithmsLocator.java
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.api;
24

  
25
import org.gvsig.tools.locator.AbstractLocator;
26
import org.gvsig.tools.locator.Locator;
27
import org.gvsig.tools.locator.LocatorException;
28

  
29

  
30
/**
31
 * @author fdiaz
32
 *
33
 */
34
public class LrsAlgorithmsLocator extends AbstractLocator {
35

  
36
    /**
37
     * LrsAlgorithms locator name
38
     */
39
    private static final String LOCATOR_NAME = "LrsAlgorithmsLocator";
40

  
41
    /**
42
     * LrsAlgorithms manager name
43
     */
44
    public static final String MANAGER_NAME = "LrsAlgorithmsManager";
45

  
46
    /**
47
     * LrsAlgorithms manager description
48
     */
49
    private static final String MANAGER_DESCRIPTION =
50
        "LrsAlgorithms Manager of gvSIG";
51

  
52

  
53
    /**
54
     * Unique instance
55
     */
56
    private static final LrsAlgorithmsLocator instance = new LrsAlgorithmsLocator();
57

  
58
    /* (non-Javadoc)
59
     * @see org.gvsig.tools.locator.Locator#getLocatorName()
60
     */
61
    public String getLocatorName() {
62
        return LOCATOR_NAME;
63
    }
64

  
65
    /**
66
     * Registers the Class implementing the LrsAlgorithmsManager interface.
67
     *
68
     * @param clazz
69
     *            implementing the LrsAlgorithmsManager interface
70
     */
71
    public static void registerLrsAlgorithmsManager(Class clazz){
72
        getInstance().register(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
73
    }
74

  
75
    /**
76
     * Registers the default Class implementing the LrsAlgorithmsManager interface
77
     *
78
     * @param clazz
79
     *            implementing the LrsAlgorithmsManager interface
80
     */
81
    public static void registerDefaultLrsAlgorithmsManager(Class clazz){
82
        getInstance().registerDefault(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
83
    }
84

  
85
    /**
86
     * Return a reference to LrsAlgorithmsManager.
87
     *
88
     * @return a reference to LrsAlgorithmsManager
89
     * @throws LocatorException
90
     *             if there is no access to the class or the class
91
     *             cannot be instantiated
92
     * @see Locator#get(String)
93
     */
94
    public static LrsAlgorithmsManager getLrsAlgorithmsManager() throws LocatorException {
95
        return (LrsAlgorithmsManager) getInstance().get(MANAGER_NAME);
96
    }
97

  
98
    /**
99
     * @return
100
     */
101
    public static Locator getInstance() {
102
        return instance;
103
    }
104

  
105
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsCreateRouteAlgorithmParams.java
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.api;
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

  
29
/**
30
 * @author fdiaz
31
 *
32
 */
33
public interface LrsCreateRouteAlgorithmParams extends LrsAlgorithmParams {
34

  
35

  
36
    /**
37
     * @return the sourceFeatureStore
38
     */
39
    public FeatureStore getSourceFeatureStore();
40

  
41
    /**
42
     * @param sourceFeatureStore the sourceFeatureStore to set
43
     */
44
    public void setSourceFeatureStore(FeatureStore sourceFeatureStore);
45

  
46
    /**
47
     * @return the idRouteField
48
     */
49
    public FeatureAttributeDescriptor getIdRouteField();
50

  
51
    /**
52
     * @param idRouteField the idRouteField to set
53
     */
54
    public void setIdRouteField(FeatureAttributeDescriptor idRouteField);
55

  
56
    /**
57
     * @return the newFeatureStoreParameters
58
     */
59
    public NewFeatureStoreParameters getNewFeatureStoreParameters();
60

  
61
    /**
62
     * @param newFeatureStoreParameters
63
     *            the newFeatureStoreParameters to set
64
     */
65
    public void setNewFeatureStoreParameters(NewFeatureStoreParameters newFeatureStoreParameters);
66

  
67
    /**
68
     * @return the sourceOfMeasures
69
     */
70
    public LrsSourceOfMeasures getSourceOfMeasures();
71

  
72
    /**
73
     * @param sourceOfMeasures the sourceOfMeasures to set
74
     */
75
    public void setSourceOfMeasures(LrsSourceOfMeasures sourceOfMeasures);
76

  
77
    /**
78
     * @return the fromMeasureField
79
     */
80
    public FeatureAttributeDescriptor getFromMeasureField();
81

  
82
    /**
83
     * @param fromMeasureField the fromMeasureField to set
84
     */
85
    public void setFromMeasureField(FeatureAttributeDescriptor fromMeasureField);
86

  
87
    /**
88
     * @return the toMeasureField
89
     */
90
    public FeatureAttributeDescriptor getToMeasureField();
91

  
92
    /**
93
     * @param toMeasureField the toMeasureField to set
94
     */
95
    public void setToMeasureField(FeatureAttributeDescriptor toMeasureField);
96

  
97
    /**
98
     * @return the coordinatePriority
99
     */
100
    public LrsCoordinatesPriority getCoordinatePriority();
101

  
102
    /**
103
     * @param coordinatePriority the coordinatePriority to set
104
     */
105
    public void setCoordinatePriority(LrsCoordinatesPriority coordinatePriority);
106

  
107
    /**
108
     * @return the measureFactor
109
     */
110
    public double getMeasureFactor();
111

  
112
    /**
113
     * @param measureFactor the measureFactor to set
114
     */
115
    public void setMeasureFactor(double measureFactor);
116

  
117
    /**
118
     * @return the measureOffset
119
     */
120
    public double getMeasureOffset();
121

  
122
    /**
123
     * @param measureOffset the measureOffset to set
124
     */
125
    public void setMeasureOffset(double measureOffset);
126

  
127
    /**
128
     * @return the ignoreSpatialGaps
129
     */
130
    public boolean ignoreSpatialGaps();
131

  
132
    /**
133
     * @param ignoreSpatialGaps the ignoreSpatialGaps to set
134
     */
135
    public void setIgnoreSpatialGaps(boolean ignoreSpatialGaps);
136

  
137
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsAlgorithmsLibrary.java
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.api;
24

  
25
import org.gvsig.tools.library.AbstractLibrary;
26
import org.gvsig.tools.library.LibraryException;
27
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
28

  
29

  
30
/**
31
 * @author fdiaz
32
 *
33
 */
34
public class LrsAlgorithmsLibrary extends AbstractLibrary {
35

  
36
    /* (non-Javadoc)
37
     * @see org.gvsig.tools.library.AbstractLibrary#doInitialize()
38
     */
39
    @Override
40
    protected void doInitialize() throws LibraryException {
41
        registerAsAPI(LrsAlgorithmsLibrary.class);
42
    }
43

  
44
    /* (non-Javadoc)
45
     * @see org.gvsig.tools.library.AbstractLibrary#doPostInitialize()
46
     */
47
    @Override
48
    protected void doPostInitialize() throws LibraryException {
49
        // Validate there is any implementation registered.
50
        LrsAlgorithmsManager manager = LrsAlgorithmsLocator.getLrsAlgorithmsManager();
51
        if (manager == null) {
52
            throw new ReferenceNotRegisteredException(
53
                LrsAlgorithmsLocator.MANAGER_NAME, LrsAlgorithmsLocator.getInstance());
54
        }
55
    }
56

  
57
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsShowMeasuresAlgorithmParams.java
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.api;
24

  
25

  
26
/**
27
 * @author dmartinez
28
 *
29
 */
30
public interface LrsShowMeasuresAlgorithmParams extends LrsAlgorithmParams {
31
    /**
32
     * @return the distance
33
     */
34
    public double getDistance();
35

  
36
    /**
37
     * @param distance the distance to set
38
     */
39
    public void setDistance(double distance);
40
}
org.gvsig.lrs/tags/org.gvsig.lrs-1.0.100/org.gvsig.lrs.lib/org.gvsig.lrs.lib.api/src/main/java/org/gvsig/lrs/lib/api/LrsAlgorithmsManager.java
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.api;
24

  
25
import org.cresques.cts.IProjection;
26

  
27
import org.gvsig.fmap.dal.exception.DataException;
28
import org.gvsig.fmap.dal.exception.InitializeException;
29
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
30
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
31
import org.gvsig.fmap.dal.feature.FeatureStore;
32
import org.gvsig.fmap.dal.feature.FeatureType;
33
import org.gvsig.fmap.geom.Geometry;
34
import org.gvsig.fmap.geom.exception.CreateGeometryException;
35
import org.gvsig.fmap.geom.operation.GeometryOperationException;
36
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException;
37
import org.gvsig.fmap.geom.primitive.Point;
38
import org.gvsig.fmap.geom.type.GeometryTypeNotSupportedException;
39
import org.gvsig.fmap.geom.type.GeometryTypeNotValidException;
40
import org.gvsig.tools.dynobject.DynObject;
41
import org.gvsig.tools.locator.LocatorException;
42
import org.gvsig.tools.service.Manager;
43

  
44

  
45
/**
46
 * @author fdiaz
47
 *
48
 */
49
public interface LrsAlgorithmsManager extends Manager{
50

  
51
    /**
52
     * Creates the appropriate algorithm to the parameters
53
     *
54
     * @param params
55
     * @return LrsAlgorithm
56
     */
57
    public LrsAlgorithm createLrsAlgorithm(LrsAlgorithmParams params);
58

  
59
    /*
60
     * Creates an LrsCreateRouteAlgorithmParams
61
     *
62
     * @return LrsCreateRouteAlgorithmParams
63
     */
64
    public LrsCreateRouteAlgorithmParams createLrsCreateRouteAlgorithmParams();
65

  
66
    /*
67
     * Creates an LrsCalibrateRouteAlgorithmParams
68
     *
69
     * @return LrsCalibrateRouteAlgorithmParams
70
     */
71
    public LrsCalibrateRouteAlgorithmParams createLrsCalibrateRouteAlgorithmParams();
72

  
73
    /*
74
     * Creates an LrsEditRouteCalibrationAlgorithmParams
75
     *
76
     * @return LrsEditRouteCalibrationAlgorithmParams
77
     */
78
    public LrsEditRouteCalibrationAlgorithmParams createLrsEditRouteCalibrationAlgorithmParams();
79

  
80
    /*
81
     * Creates an LrsEditRouteCalibrationSelectIdRouteAlgorithmParams
82
     *
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff