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.structure;
18:
19: import java.util.Iterator;
20:
21: /**
22: * Reperesents a component in a directed graph.
23: *
24: * @see DirectedGraph
25: *
26: * @author Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
27: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/extension/graph/src/main/java/org/geotools/graph/structure/DirectedGraphable.java $
28: */
29: public interface DirectedGraphable extends Graphable {
30:
31: /**
32: * Returns other components related through an <B>in</B> relationship.
33: *
34: * @return An iterator over the other directed components related through an
35: * in relationship.
36: *
37: * @see Graphable#getRelated()
38: */
39: public Iterator getInRelated();
40:
41: /**
42: * Returns other components related through an <B>out</B> relationship.
43: *
44: * @return An iterator over the other directed components related through an
45: * out relationship.
46: *
47: * @see Graphable#getRelated()
48: */
49: public Iterator getOutRelated();
50: }
|