public abstract class ExpansionNetwork extends OTSNetwork
|
-------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-08-23 00:48:01 +0200 (Sun, 23 Aug 2015) $, @version $Revision: 1291 $, by $Author: averbraeck $,
initial version Aug 19, 2014
| Constructor and Description |
|---|
ExpansionNetwork(String 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(String id)
id - the network id.Copyright © 2014–2015 Delft University of Technology. All rights reserved.