⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basicgraph.html

📁 Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理信息系统。Geotools提供了OGC(Open Geospatial Consortium)规范的一个实现来作为他们的
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/basic/BasicGraph.html#initEdges()">initEdges</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initializes the edges in the graph by setting all visited flags to false and all visited counts to zero.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/basic/BasicGraph.html#initNodes()">initNodes</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initializes the nodes in the graph by setting all visited flags to false and all visited counts to zero.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/basic/BasicGraph.html#queryEdges(org.geotools.graph.structure.GraphVisitor)">queryEdges</A></B>(<A HREF="../../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure">GraphVisitor</A>&nbsp;visitor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a query against the edges of the graph. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/basic/BasicGraph.html#queryNodes(org.geotools.graph.structure.GraphVisitor)">queryNodes</A></B>(<A HREF="../../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure">GraphVisitor</A>&nbsp;visitor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Performs a query against the nodes of the graph. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/basic/BasicGraph.html#setEdges(java.util.Collection)">setEdges</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;edges)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the edge collection for the graph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/basic/BasicGraph.html#setNodes(java.util.Collection)">setNodes</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;nodes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the node collection of the graph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/basic/BasicGraph.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the string representation of the graph which is just the string representation of the edge and node collections.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/basic/BasicGraph.html#visitEdges(org.geotools.graph.structure.GraphVisitor)">visitEdges</A></B>(<A HREF="../../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure">GraphVisitor</A>&nbsp;visitor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Applies the visitor pattern to the edges of the graph.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/graph/structure/basic/BasicGraph.html#visitNodes(org.geotools.graph.structure.GraphVisitor)">visitNodes</A></B>(<A HREF="../../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure">GraphVisitor</A>&nbsp;visitor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Applies the visitor pattern to the nodes of the graph.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="BasicGraph()"><!-- --></A><H3>BasicGraph</H3><PRE>public <B>BasicGraph</B>()</PRE><DL><DD>Constructs an empty graph with edge and node collections uninitialized. Mainly for serializability purposes.<P></DL><HR><A NAME="BasicGraph(java.util.Collection, java.util.Collection)"><!-- --></A><H3>BasicGraph</H3><PRE>public <B>BasicGraph</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;nodes,                  <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;edges)</PRE><DL><DD>Constructs a graph from a collection of nodes and a collection of edges. The relationships between the nodes (edges) are already assumed to be  formed. Only the references to the node and edge collections are copied, not the underlying collections themselves.<P><DT><B>Parameters:</B><DD><CODE>nodes</CODE> - Collection of nodes to be contained by the graph.<DD><CODE>edges</CODE> - Collection of edges to be contained by the graph.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="setNodes(java.util.Collection)"><!-- --></A><H3>setNodes</H3><PRE>public void <B>setNodes</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;nodes)</PRE><DL><DD>Sets the node collection of the graph.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>nodes</CODE> - Collection of Node objects.</DL></DD></DL><HR><A NAME="getNodes()"><!-- --></A><H3>getNodes</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A> <B>getNodes</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/structure/Graph.html" title="interface in org.geotools.graph.structure">Graph</A></CODE></B></DD><DD>Returns the nodes of the graph.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/structure/Graph.html#getNodes()">getNodes</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/structure/Graph.html" title="interface in org.geotools.graph.structure">Graph</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A collection of Node objects.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/structure/Graph.html#getNodes()"><CODE>Graph.getNodes()</CODE></A></DL></DD></DL><HR><A NAME="setEdges(java.util.Collection)"><!-- --></A><H3>setEdges</H3><PRE>public void <B>setEdges</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;edges)</PRE><DL><DD>Sets the edge collection for the graph.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>edges</CODE> - Collection of Edge objects.</DL></DD></DL><HR><A NAME="getEdges()"><!-- --></A><H3>getEdges</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A> <B>getEdges</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/structure/Graph.html" title="interface in org.geotools.graph.structure">Graph</A></CODE></B></DD><DD>Returns the edges of the graph.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/structure/Graph.html#getEdges()">getEdges</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/structure/Graph.html" title="interface in org.geotools.graph.structure">Graph</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A collection of Edge objects.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/structure/Graph.html#getEdges()"><CODE>Graph.getEdges()</CODE></A></DL></DD></DL><HR><A NAME="queryNodes(org.geotools.graph.structure.GraphVisitor)"><!-- --></A><H3>queryNodes</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>queryNodes</B>(<A HREF="../../../../../org/geotools/graph/structure/GraphVisitor.html" title="interface in org.geotools.graph.structure">GraphVisitor</A>&nbsp;visitor)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../../org/geotools/graph/structure/Graph.html" title="interface in org.geotools.graph.structure">Graph</A></CODE></B></DD><DD>Performs a query against the nodes of the graph. Each Node object contained in the graph is passed to a GraphVisitor to determine if it meets the query criteria.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/geotools/graph/structure/Graph.html#queryNodes(org.geotools.graph.structure.GraphVisitor)">queryNodes</A></CODE> in interface <CODE><A HREF="../../../../../org/geotools/graph/structure/Graph.html" title="interface in org.geotools.graph.structure">Graph</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>visitor</CODE> - Determines if node meets query criteria.  Returns MEET_AND_CONTINUE to signal that the node meets the query criteria  and the query should continue.<BR> Returns MEET_AND_STOP to signal that the node meest the query criteria and the query should stop.<BR> FAIL_QUERY to signal that the node does NOT meet the query criteria.<DT><B>Returns:</B><DD>A collection of nodes that meet the query criteria.<DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/graph/structure/Graph.html#queryNodes(org.geotools.graph.structure.GraphVisitor)"><CODE>Graph.queryNodes(GraphVisitor)</CODE></A></DL></DD></DL><HR><A NAME="queryEdges(org.geotools.graph.structure.GraphVisitor)"><!-- --></A><H3>queryEdges</H3><PRE>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -