| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_262) on Thu Oct 29 15:52:02 GMT 2020 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>Connection (Eclipse MOSAIC Parent 20.0 API)</title> |
| <meta name="date" content="2020-10-29"> |
| <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="Connection (Eclipse MOSAIC Parent 20.0 API)"; |
| } |
| } |
| 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}; |
| 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="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Connection.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-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/eclipse/mosaic/lib/database/road/Connection.html" target="_top">Frames</a></li> |
| <li><a href="Connection.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>Field | </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>Field | </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">org.eclipse.mosaic.lib.database.road</div> |
| <h2 title="Class Connection" class="title">Class Connection</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.eclipse.mosaic.lib.database.road.Connection</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">Connection</span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">This represents an abstraction layer on top of a <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Way.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Way</code></a>. A connection is a directed |
| part of a way that connects two intersection nodes.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== 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="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#Connection-java.lang.String-org.eclipse.mosaic.lib.database.road.Way-">Connection</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id, |
| <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Way.html" title="class in org.eclipse.mosaic.lib.database.road">Way</a> way)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#Connection-java.lang.String-org.eclipse.mosaic.lib.database.road.Way-boolean-">Connection</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id, |
| <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Way.html" title="class in org.eclipse.mosaic.lib.database.road">Way</a> way, |
| boolean isBackward)</code> |
| <div class="block">Default constructor.</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>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#addIncomingConnection-org.eclipse.mosaic.lib.database.road.Connection-">addIncomingConnection</a></span>(<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a> connection)</code> |
| <div class="block">Adds a connection through that this connection can be accessed.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#addNode-org.eclipse.mosaic.lib.database.road.Node-">addNode</a></span>(<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road">Node</a> node)</code> |
| <div class="block">Adds a <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Node</code></a> belonging to this connection.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#addNodes-java.util.List-">addNodes</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road">Node</a>> node)</code> |
| <div class="block">Adds all given <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Node</code></a>s belonging to this connection.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#addOutgoingConnection-org.eclipse.mosaic.lib.database.road.Connection-">addOutgoingConnection</a></span>(<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a> connection)</code> |
| <div class="block">Adds a connection that is accessible through this one.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#applyTurnRestriction-org.eclipse.mosaic.lib.database.road.Restriction.Type-org.eclipse.mosaic.lib.database.road.Connection-">applyTurnRestriction</a></span>(<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Restriction.Type.html" title="enum in org.eclipse.mosaic.lib.database.road">Restriction.Type</a> type, |
| <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a> target)</code> |
| <div class="block">This applies a turn restriction to the connection.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road">Node</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getFrom--">getFrom</a></span>()</code> |
| <div class="block">This returns the <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Node</code></a> the connection starts from.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getId--">getId</a></span>()</code> |
| <div class="block">Returns the ID of this connection.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getIncomingConnections--">getIncomingConnections</a></span>()</code> |
| <div class="block">Returns the list of connections that lead into this connection..</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getLanes--">getLanes</a></span>()</code> |
| <div class="block">Returns the number of lanes this Connection presents.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getLength--">getLength</a></span>()</code> |
| <div class="block">This connections length in meters.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getMaxSpeedInKmh--">getMaxSpeedInKmh</a></span>()</code> |
| <div class="block">Gets the maximum speed allowed on this connection in km/h.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>double</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getMaxSpeedInMs--">getMaxSpeedInMs</a></span>()</code> |
| <div class="block">Gets the maximum speed allowed on this connection in m/s.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road">Node</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getNodes--">getNodes</a></span>()</code> |
| <div class="block">These are the <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Node</code></a>s that are part of this connection.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getOutgoingConnections--">getOutgoingConnections</a></span>()</code> |
| <div class="block">Returns the connections that are accessible through this one.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road">Node</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getTo--">getTo</a></span>()</code> |
| <div class="block">This returns the <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Node</code></a> that the connections ends at.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Way.html" title="class in org.eclipse.mosaic.lib.database.road">Way</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#getWay--">getWay</a></span>()</code> |
| <div class="block">This returns the <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Way.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Way</code></a> this connection belongs to.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#setLanes-int-">setLanes</a></span>(int lanes)</code> |
| <div class="block">Sets the number of lanes for this connection.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html#setLength-double-">setLength</a></span>(double length)</code> |
| <div class="block">Sets the connections length in meters.</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.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="Connection-java.lang.String-org.eclipse.mosaic.lib.database.road.Way-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>Connection</h4> |
| <pre>public Connection(<a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id, |
| <a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Way.html" title="class in org.eclipse.mosaic.lib.database.road">Way</a> way)</pre> |
| </li> |
| </ul> |
| <a name="Connection-java.lang.String-org.eclipse.mosaic.lib.database.road.Way-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>Connection</h4> |
| <pre>public Connection(<a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> id, |
| <a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Way.html" title="class in org.eclipse.mosaic.lib.database.road">Way</a> way, |
| boolean isBackward)</pre> |
| <div class="block">Default constructor.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>id</code> - Unique identifier of the connection.</dd> |
| <dd><code>way</code> - Way represents a number of edges in the network graph.</dd> |
| <dd><code>isBackward</code> - if this connection represents the forward or backward direction of the way</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="getId--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getId</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getId()</pre> |
| <div class="block">Returns the ID of this connection.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Unique identifier of the connection.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getWay--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getWay</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| public <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Way.html" title="class in org.eclipse.mosaic.lib.database.road">Way</a> getWay()</pre> |
| <div class="block">This returns the <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Way.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Way</code></a> this connection belongs to.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The way of the connection.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getFrom--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFrom</h4> |
| <pre>public <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road">Node</a> getFrom()</pre> |
| <div class="block">This returns the <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Node</code></a> the connection starts from.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Null if no from node exist, otherwise the node.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getTo--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTo</h4> |
| <pre>public <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road">Node</a> getTo()</pre> |
| <div class="block">This returns the <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Node</code></a> that the connections ends at.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Null if no to node exist, otherwise the node.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLanes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLanes</h4> |
| <pre>public int getLanes()</pre> |
| <div class="block">Returns the number of lanes this Connection presents.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Number of the lanes.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getLength--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getLength</h4> |
| <pre>public double getLength()</pre> |
| <div class="block">This connections length in meters.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The length of the connection.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getMaxSpeedInKmh--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMaxSpeedInKmh</h4> |
| <pre>public double getMaxSpeedInKmh()</pre> |
| <div class="block">Gets the maximum speed allowed on this connection in km/h.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The speed in [km/h].</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getMaxSpeedInMs--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getMaxSpeedInMs</h4> |
| <pre>public double getMaxSpeedInMs()</pre> |
| <div class="block">Gets the maximum speed allowed on this connection in m/s.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>The speed in [m/s].</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getNodes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getNodes</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road">Node</a>> getNodes()</pre> |
| <div class="block">These are the <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Node</code></a>s that are part of this connection. |
| Beware that the order is important.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>List of Nodes representing a connection.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getOutgoingConnections--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getOutgoingConnections</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a>> getOutgoingConnections()</pre> |
| <div class="block">Returns the connections that are accessible through this one.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>List of accessible / upcoming connections.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getIncomingConnections--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getIncomingConnections</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a>> getIncomingConnections()</pre> |
| <div class="block">Returns the list of connections that lead into this connection..</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>List of incoming connections</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setLength-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setLength</h4> |
| <pre>public <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a> setLength(double length)</pre> |
| <div class="block">Sets the connections length in meters.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>length</code> - Length to set.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setLanes-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setLanes</h4> |
| <pre>public <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a> setLanes(int lanes)</pre> |
| <div class="block">Sets the number of lanes for this connection. |
| This overrides eventual values copied from the <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Way.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Way</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>lanes</code> - Lanes to set.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addNode-org.eclipse.mosaic.lib.database.road.Node-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addNode</h4> |
| <pre>public void addNode(<a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road">Node</a> node)</pre> |
| <div class="block">Adds a <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Node</code></a> belonging to this connection. Be aware that the order of nodes is vital |
| to the order of edges belonging to this connection.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>node</code> - Node to add.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addNodes-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addNodes</h4> |
| <pre>public void addNodes(<a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road">Node</a>> node)</pre> |
| <div class="block">Adds all given <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><code>Node</code></a>s belonging to this connection. Be aware that the order of nodes |
| is vital to the order of edges belonging to this connection.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>node</code> - Nodes to add.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addOutgoingConnection-org.eclipse.mosaic.lib.database.road.Connection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addOutgoingConnection</h4> |
| <pre>public void addOutgoingConnection(<a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a> connection)</pre> |
| <div class="block">Adds a connection that is accessible through this one.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>connection</code> - Outgoing connection to add.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="addIncomingConnection-org.eclipse.mosaic.lib.database.road.Connection-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addIncomingConnection</h4> |
| <pre>public void addIncomingConnection(<a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a> connection)</pre> |
| <div class="block">Adds a connection through that this connection can be accessed.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>connection</code> - Incoming connection to add.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="applyTurnRestriction-org.eclipse.mosaic.lib.database.road.Restriction.Type-org.eclipse.mosaic.lib.database.road.Connection-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>applyTurnRestriction</h4> |
| <pre>public void applyTurnRestriction(<a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Restriction.Type.html" title="enum in org.eclipse.mosaic.lib.database.road">Restriction.Type</a> type, |
| <a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nonnull.html?is-external=true" title="class or interface in javax.annotation">@Nonnull</a> |
| <a href="../../../../../../org/eclipse/mosaic/lib/database/road/Connection.html" title="class in org.eclipse.mosaic.lib.database.road">Connection</a> target)</pre> |
| <div class="block">This applies a turn restriction to the connection. Restrictions can be of type 'only' |
| or 'not' which will cause the outgoing connections to be either trimmed down to the target |
| or the target will be removed from the outgoing connections.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>type</code> - either 'only' or 'not'</dd> |
| <dd><code>target</code> - the connection</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="../../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Connection.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-all.html">Index</a></li> |
| <li><a href="../../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li>Prev Class</li> |
| <li><a href="../../../../../../org/eclipse/mosaic/lib/database/road/Node.html" title="class in org.eclipse.mosaic.lib.database.road"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../../index.html?org/eclipse/mosaic/lib/database/road/Connection.html" target="_top">Frames</a></li> |
| <li><a href="Connection.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>Field | </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>Field | </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 ======= --> |
| <p class="legalCopy"><small>Copyright © 2020 <a href="https://www.fokus.fraunhofer.de/">Fraunhofer FOKUS</a>. All rights reserved.</small></p> |
| </body> |
| </html> |