01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, Geotools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or (at your option) any later version.
10: *
11: * This library 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 GNU
14: * Lesser General Public License for more details.
15: *
16: * Created on Jan 24, 2004
17: */
18: package org.geotools.validation.network;
19:
20: import java.util.Map;
21:
22: import org.geotools.validation.DefaultIntegrityValidation;
23: import org.geotools.validation.ValidationResults;
24:
25: import com.vividsolutions.jts.geom.Envelope;
26:
27: /**
28: * StarNodeValidation purpose.
29: *
30: * <p>
31: * TODO fill this in.
32: * </p>
33: *
34: * @author dzwiers, Refractions Research, Inc.
35: * @author $Author: dmzwiers $ (last modification)
36: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/extension/validation/src/main/java/org/geotools/validation/network/AngleSizeValidation.java $
37: * @version $Id: AngleSizeValidation.java 20884 2006-08-07 14:10:46Z jgarnett $
38: */
39: public class AngleSizeValidation extends DefaultIntegrityValidation {
40:
41: private int angle;
42:
43: /**
44: * StarNodeValidation constructor.
45: *
46: * <p>
47: * Description
48: * </p>
49: */
50: public AngleSizeValidation() {
51: super ();
52: // TODO Auto-generated constructor stub
53: }
54:
55: /**
56: * Check FeatureType for ...
57: *
58: * <p>
59: * Detailed description...
60: * </p>
61: *
62: * @param layers Map of FeatureSource by "dataStoreID:typeName"
63: * @param envelope The bounding box that encloses the unvalidated data
64: * @param results Used to coallate results information
65: *
66: * @return <code>true</code> if all the features pass this test.
67: *
68: * @throws Exception DOCUMENT ME!
69: */
70: public boolean validate(Map layers, Envelope envelope,
71: ValidationResults results) throws Exception {
72: results.warning(null, "Validation not yet implemented");
73: // TODO fill me in!
74: return false;
75: }
76:
77: /**
78: * Access angle property.
79: *
80: * @return Returns the angle.
81: */
82: public int getAngle() {
83: return angle;
84: }
85:
86: /**
87: * Set angle to angle.
88: *
89: * @param angle The angle to set.
90: */
91: public void setAngle(int angle) {
92: this.angle = angle;
93: }
94: }
|