01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: * (C) 2002, Refractions Reserach Inc.
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation;
10: * version 2.1 of the License.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: */
17: package org.geotools.graph.traverse.basic;
18:
19: import org.geotools.graph.structure.Graphable;
20:
21: /**
22: * A GraphIterator that starts iteration from a specefied point.
23: *
24: * @author Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
25: *
26: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/extension/graph/src/main/java/org/geotools/graph/traverse/basic/SourceGraphIterator.java $
27: */
28: public abstract class SourceGraphIterator extends AbstractGraphIterator {
29:
30: /** source of the iteration **/
31: private Graphable m_source;
32:
33: /**
34: * Sets the source for the iteration.
35: *
36: * @param source The source of the iteration.
37: */
38: public void setSource(Graphable source) {
39: m_source = source;
40: }
41:
42: /**
43: * Returns the source of the iteration.
44: *
45: * @return The source of the iteration.
46: */
47: public Graphable getSource() {
48: return (m_source);
49: }
50:
51: }
|