NETWORKID - the ID type of the Network, e.g., String.NODEID - the ID type of the Node, e.g., String.LINKID - the ID type of the Link, e.g., String.public abstract class ExpansionNetwork<NETWORKID,LINKID,NODEID> extends OTSNetwork<NETWORKID,LINKID,NODEID>
|
-------O--------
|
can be expanded into:
|
A
/|\
/ | \
-----B--C--D-----
\ | /
\|/
E
|
Node O in the example is expanded into the subnetwork consisting of nodes A, B, C, D, and E, and links AB, AC, AD, BC, CD,
BE, CE, and DE. It also means that when node expansion takes place, the links to node O have to be replaced. In the example
below:
X
|
Y------O-------Z
|
W
can be expanded into:
X
|
A
/|\
/ | \
Y----B--C--D----Z
\ | /
\|/
E
|
W
The node XO is replaced by XA, YO is replaced by YB, OZ is replaced by DZ, and OW is replaced by EW in the network. The
reverse takes place when we do node collapse.
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-26 01:01:13 +0200 (Sun, 26 Jul 2015) $, @version $Revision: 1155 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Constructor and Description |
|---|
ExpansionNetwork(NETWORKID id) |
addLink, addNode, addRoute, containsLink, containsLink, containsNode, containsNode, containsRoute, containsRoute, getId, getLink, getLink, getLink, getLinkMap, getNode, getNodeMap, getRoute, getRouteMap, getRoutesBetween, getShortestRouteBetween, removeLink, removeNode, removeRoutepublic ExpansionNetwork(NETWORKID id)
id - the network id.Copyright © 2014–2015 Delft University of Technology. All rights reserved.