<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="es"> <head> <!-- Generated by javadoc (1.8.0_92) on Mon Jul 11 02:23:29 CLT 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=utf8"> <title>Grafo.Vertex</title> <meta name="date" content="2016-07-11"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Grafo.Vertex"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../cl/cromer/estructuras/package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/Grafo.Vertex.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-files/index-1.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../cl/cromer/estructuras/Grafo.Tipos.html" title="class in cl.cromer.estructuras"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../cl/cromer/estructuras/Grafo.Visitor.html" title="interface in cl.cromer.estructuras"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?cl/cromer/estructuras/Grafo.Vertex.html" target="_top">Frames</a></li> <li><a href="Grafo.Vertex.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field.summary">Field</a> | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li><a href="#field.detail">Field</a> | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">cl.cromer.estructuras</div> <h2 title="Class Grafo.Vertex" class="title">Class Grafo.Vertex<T></h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>cl.cromer.estructuras.Grafo.Vertex<T></li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> <dd><code>T</code> - Generic object</dd> </dl> <dl> <dt>Enclosing class:</dt> <dd><a href="../../../cl/cromer/estructuras/Grafo.html" title="class in cl.cromer.estructuras">Grafo</a></dd> </dl> <hr> <br> <pre>public static final class <span class="typeNameLabel">Grafo.Vertex<T></span> extends java.lang.Object</pre> <div class="block">A named graph vertex with optional data.</div> <dl> <dt><span class="simpleTagLabel">Version:</span></dt> <dd>$Revision$</dd> <dt><span class="simpleTagLabel">Author:</span></dt> <dd>Scott.Stark@jboss.org</dd> </dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field.summary"> <!-- --> </a> <h3>Field Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> <caption><span>Fields</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>private <a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#data">data</a></span></code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private java.util.List<<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#incomingEdges">incomingEdges</a></span></code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>private boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#mark">mark</a></span></code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#markState">markState</a></span></code> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>private java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#name">name</a></span></code> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>private java.util.List<<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#outgoingEdges">outgoingEdges</a></span></code> </td> </tr> </table> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#Vertex--">Vertex</a></span>()</code> <div class="block">Calls this(null, null).</div> </td> </tr> <tr class="rowColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#Vertex-java.lang.String-">Vertex</a></span>(java.lang.String n)</code> <div class="block">Create a vertex with the given name and no data</div> </td> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#Vertex-java.lang.String-T-">Vertex</a></span>(java.lang.String n, <a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a> data)</code> <div class="block">Create a Vertex with name n and given data</div> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#addEdge-cl.cromer.estructuras.Grafo.Edge-">addEdge</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> e)</code> <div class="block">Add an edge to the vertex.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#addIncomingEdge-cl.cromer.estructuras.Grafo.Vertex-int-">addIncomingEdge</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> from, int cost)</code> <div class="block">Add an incoming edge starting at from</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#addOutgoingEdge-cl.cromer.estructuras.Grafo.Vertex-int-">addOutgoingEdge</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> to, int cost)</code> <div class="block">Add an outgoing edge ending at to.</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#clearMark--">clearMark</a></span>()</code> <div class="block">Clear the visited mark flag.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#cost-cl.cromer.estructuras.Grafo.Vertex-">cost</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> dest)</code> <div class="block">What is the cost from this vertext to the dest vertex.</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code><a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#findEdge-cl.cromer.estructuras.Grafo.Edge-">findEdge</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> e)</code> <div class="block">Search the outgoing edges for a match to e.</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code><a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#findEdge-cl.cromer.estructuras.Grafo.Vertex-">findEdge</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> dest)</code> <div class="block">Search the outgoing edges looking for an edge whose's edge.to == dest.</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#getData--">getData</a></span>()</code> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code><a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#getIncomingEdge-int-">getIncomingEdge</a></span>(int i)</code> <div class="block">Get the ith incoming edge</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#getIncomingEdgeCount--">getIncomingEdgeCount</a></span>()</code> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>java.util.List</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#getIncomingEdges--">getIncomingEdges</a></span>()</code> <div class="block">Get the incoming edges</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#getMarkState--">getMarkState</a></span>()</code> <div class="block">Get the mark state value.</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#getName--">getName</a></span>()</code> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code><a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#getOutgoingEdge-int-">getOutgoingEdge</a></span>(int i)</code> <div class="block">Get the ith outgoing edge</div> </td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#getOutgoingEdgeCount--">getOutgoingEdgeCount</a></span>()</code> </td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code>java.util.List</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#getOutgoingEdges--">getOutgoingEdges</a></span>()</code> <div class="block">Get the outgoing edges</div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#hasEdge-cl.cromer.estructuras.Grafo.Edge-">hasEdge</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> e)</code> <div class="block">Check the vertex for either an incoming or outgoing edge mathcing e.</div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#hasEdge-cl.cromer.estructuras.Grafo.Vertex-">hasEdge</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> dest)</code> <div class="block">Is there an outgoing edge ending at dest.</div> </td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#mark--">mark</a></span>()</code> <div class="block">Set the vertex mark flag.</div> </td> </tr> <tr id="i19" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#remove-cl.cromer.estructuras.Grafo.Edge-">remove</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> e)</code> <div class="block">Remove an edge from this vertex</div> </td> </tr> <tr id="i20" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#setData-T-">setData</a></span>(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a> data)</code> </td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#setMarkState-int-">setMarkState</a></span>(int state)</code> <div class="block">Set the mark state to state.</div> </td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#toString--">toString</a></span>()</code> </td> </tr> <tr id="i23" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#visit--">visit</a></span>()</code> <div class="block">Visit the vertex and set the mark flag to true.</div> </td> </tr> <tr id="i24" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../cl/cromer/estructuras/Grafo.Vertex.html#visited--">visited</a></span>()</code> <div class="block">Has this vertex been marked during a visit</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ FIELD DETAIL =========== --> <ul class="blockList"> <li class="blockList"><a name="field.detail"> <!-- --> </a> <h3>Field Detail</h3> <a name="incomingEdges"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>incomingEdges</h4> <pre>private java.util.List<<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>>> incomingEdges</pre> </li> </ul> <a name="outgoingEdges"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>outgoingEdges</h4> <pre>private java.util.List<<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>>> outgoingEdges</pre> </li> </ul> <a name="name"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>name</h4> <pre>private java.lang.String name</pre> </li> </ul> <a name="mark"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>mark</h4> <pre>private boolean mark</pre> </li> </ul> <a name="markState"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>markState</h4> <pre>private int markState</pre> </li> </ul> <a name="data"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>data</h4> <pre>private <a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a> data</pre> </li> </ul> </li> </ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="Vertex--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Vertex</h4> <pre>public Vertex()</pre> <div class="block">Calls this(null, null).</div> </li> </ul> <a name="Vertex-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>Vertex</h4> <pre>public Vertex(java.lang.String n)</pre> <div class="block">Create a vertex with the given name and no data</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>n</code> - - return n</dd> </dl> </li> </ul> <a name="Vertex-java.lang.String-java.lang.Object-"> <!-- --> </a><a name="Vertex-java.lang.String-T-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>Vertex</h4> <pre>public Vertex(java.lang.String n, <a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a> data)</pre> <div class="block">Create a Vertex with name n and given data</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>n</code> - - name of vertex</dd> <dd><code>data</code> - - data associated with vertex</dd> </dl> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="getName--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getName</h4> <pre>public java.lang.String getName()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the possibly null name of the vertex</dd> </dl> </li> </ul> <a name="getData--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getData</h4> <pre>public <a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a> getData()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the possibly null data of the vertex</dd> </dl> </li> </ul> <a name="setData-java.lang.Object-"> <!-- --> </a><a name="setData-T-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setData</h4> <pre>public void setData(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a> data)</pre> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>data</code> - The data to set.</dd> </dl> </li> </ul> <a name="addEdge-cl.cromer.estructuras.Grafo.Edge-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addEdge</h4> <pre>public boolean addEdge(<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> e)</pre> <div class="block">Add an edge to the vertex. If edge.from is this vertex, its an outgoing edge. If edge.to is this vertex, its an incoming edge. If neither from or to is this vertex, the edge is not added.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>e</code> - - the edge to add</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if the edge was added, false otherwise</dd> </dl> </li> </ul> <a name="addOutgoingEdge-cl.cromer.estructuras.Grafo.Vertex-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addOutgoingEdge</h4> <pre>public void addOutgoingEdge(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> to, int cost)</pre> <div class="block">Add an outgoing edge ending at to.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>to</code> - - the destination vertex</dd> <dd><code>cost</code> - the edge cost</dd> </dl> </li> </ul> <a name="addIncomingEdge-cl.cromer.estructuras.Grafo.Vertex-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>addIncomingEdge</h4> <pre>public void addIncomingEdge(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> from, int cost)</pre> <div class="block">Add an incoming edge starting at from</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>from</code> - - the starting vertex</dd> <dd><code>cost</code> - the edge cost</dd> </dl> </li> </ul> <a name="hasEdge-cl.cromer.estructuras.Grafo.Edge-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasEdge</h4> <pre>public boolean hasEdge(<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> e)</pre> <div class="block">Check the vertex for either an incoming or outgoing edge mathcing e.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>e</code> - the edge to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true it has an edge</dd> </dl> </li> </ul> <a name="remove-cl.cromer.estructuras.Grafo.Edge-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>remove</h4> <pre>public boolean remove(<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> e)</pre> <div class="block">Remove an edge from this vertex</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>e</code> - - the edge to remove</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if the edge was removed, false if the edge was not connected to this vertex</dd> </dl> </li> </ul> <a name="getIncomingEdgeCount--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getIncomingEdgeCount</h4> <pre>public int getIncomingEdgeCount()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the count of incoming edges</dd> </dl> </li> </ul> <a name="getIncomingEdge-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getIncomingEdge</h4> <pre>public <a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> getIncomingEdge(int i)</pre> <div class="block">Get the ith incoming edge</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>i</code> - the index into incoming edges</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>ith incoming edge</dd> </dl> </li> </ul> <a name="getIncomingEdges--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getIncomingEdges</h4> <pre>public java.util.List getIncomingEdges()</pre> <div class="block">Get the incoming edges</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>incoming edge list</dd> </dl> </li> </ul> <a name="getOutgoingEdgeCount--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOutgoingEdgeCount</h4> <pre>public int getOutgoingEdgeCount()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the count of incoming edges</dd> </dl> </li> </ul> <a name="getOutgoingEdge-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOutgoingEdge</h4> <pre>public <a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> getOutgoingEdge(int i)</pre> <div class="block">Get the ith outgoing edge</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>i</code> - the index into outgoing edges</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>ith outgoing edge</dd> </dl> </li> </ul> <a name="getOutgoingEdges--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getOutgoingEdges</h4> <pre>public java.util.List getOutgoingEdges()</pre> <div class="block">Get the outgoing edges</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>outgoing edge list</dd> </dl> </li> </ul> <a name="findEdge-cl.cromer.estructuras.Grafo.Vertex-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findEdge</h4> <pre>public <a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> findEdge(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> dest)</pre> <div class="block">Search the outgoing edges looking for an edge whose's edge.to == dest.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>dest</code> - the destination</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the outgoing edge going to dest if one exists, null otherwise.</dd> </dl> </li> </ul> <a name="findEdge-cl.cromer.estructuras.Grafo.Edge-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findEdge</h4> <pre>public <a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> findEdge(<a href="../../../cl/cromer/estructuras/Grafo.Edge.html" title="class in cl.cromer.estructuras">Grafo.Edge</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> e)</pre> <div class="block">Search the outgoing edges for a match to e.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>e</code> - - the edge to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>e if its a member of the outgoing edges, null otherwise.</dd> </dl> </li> </ul> <a name="cost-cl.cromer.estructuras.Grafo.Vertex-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>cost</h4> <pre>public int cost(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> dest)</pre> <div class="block">What is the cost from this vertext to the dest vertex.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>dest</code> - - the destination vertex.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Return Integer.MAX_VALUE if we have no edge to dest, 0 if dest is this vertex, the cost of the outgoing edge otherwise.</dd> </dl> </li> </ul> <a name="hasEdge-cl.cromer.estructuras.Grafo.Vertex-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasEdge</h4> <pre>public boolean hasEdge(<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="class in cl.cromer.estructuras">Grafo.Vertex</a><<a href="../../../cl/cromer/estructuras/Grafo.Vertex.html" title="type parameter in Grafo.Vertex">T</a>> dest)</pre> <div class="block">Is there an outgoing edge ending at dest.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>dest</code> - - the vertex to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>true if there is an outgoing edge ending at vertex, false otherwise.</dd> </dl> </li> </ul> <a name="visited--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>visited</h4> <pre>public boolean visited()</pre> <div class="block">Has this vertex been marked during a visit</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>true is visit has been called</dd> </dl> </li> </ul> <a name="mark--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>mark</h4> <pre>public void mark()</pre> <div class="block">Set the vertex mark flag.</div> </li> </ul> <a name="setMarkState-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setMarkState</h4> <pre>public void setMarkState(int state)</pre> <div class="block">Set the mark state to state.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>state</code> - the state</dd> </dl> </li> </ul> <a name="getMarkState--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getMarkState</h4> <pre>public int getMarkState()</pre> <div class="block">Get the mark state value.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>the mark state</dd> </dl> </li> </ul> <a name="visit--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>visit</h4> <pre>public void visit()</pre> <div class="block">Visit the vertex and set the mark flag to true.</div> </li> </ul> <a name="clearMark--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>clearMark</h4> <pre>public void clearMark()</pre> <div class="block">Clear the visited mark flag.</div> </li> </ul> <a name="toString--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>toString</h4> <pre>public java.lang.String toString()</pre> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code>toString</code> in class <code>java.lang.Object</code></dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>a string form of the vertex with in and out edges.</dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../cl/cromer/estructuras/package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/Grafo.Vertex.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-files/index-1.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../cl/cromer/estructuras/Grafo.Tipos.html" title="class in cl.cromer.estructuras"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../cl/cromer/estructuras/Grafo.Visitor.html" title="interface in cl.cromer.estructuras"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?cl/cromer/estructuras/Grafo.Vertex.html" target="_top">Frames</a></li> <li><a href="Grafo.Vertex.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li><a href="#field.summary">Field</a> | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li><a href="#field.detail">Field</a> | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>