Revision 7985 trunk/extensions/extGraph_predes/src/com/iver/cit/gvsig/graph/core/AbstractNetSolver.java

View differences:

AbstractNetSolver.java
55 55
import com.vividsolutions.jts.geom.LineSegment;
56 56

  
57 57
public class AbstractNetSolver implements INetSolver {
58
	public static int numSolucGlobal = 0;
58 59
	/**
59 60
	 * Should be indexed. When a graph is created, it is a good
60 61
	 * opportunity to do that.
61 62
	 */
62 63
	protected FLyrVect lyrVect;
63 64
	protected IGraph graph;
64
	private ArrayList flags;
65
	protected ArrayList flags;
65 66
	
66 67
	
67 68
//	private GvNode findNode(double x, double y)
......
106 107
		
107 108
	}
108 109
	
109
	private Point2D getNearestPoint(Point2D point, IGeometry geom, double tolerance) {
110
	protected Point2D getNearestPoint(Point2D point, IGeometry geom, double tolerance) {
110 111
		Point2D resul = null;
111 112
		Coordinate c = new Coordinate(point.getX(), point.getY());
112 113
		
......
164 165
	 * @param flag
165 166
	 * @return
166 167
	 */
167
	int creaArcosVirtuales(GvFlag flag) {
168
	protected int creaArcosVirtuales(GvFlag flag) {
168 169
		
169 170
		return -1;
170 171
	}
......
198 199
		flag.setIdFlag(flags.size());
199 200
		return flag;
200 201
	}
201
	public ArrayList calculateRoute() 
202
	{
203
		if (flags.size() == 0)
204
			throw new RuntimeException("Please, add flags before");
205
		
206
		
207
		return null;
208
	}
209 202

  
210 203
	/* (non-Javadoc)
211 204
	 * @see com.iver.cit.gvsig.graph.core.INetSolver2#getFlags()
......
234 227
		this.lyrVect = lyrVect;
235 228
	}
236 229
	
230
	protected void reconstruyeTramo(int idArc) {
231
		// TODO Auto-generated method stub
232
		
233
	}
237 234

  
238 235
}
239 236

  

Also available in: Unified diff