public final class OTSRoadNetworkUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static OTSRoadNetwork |
clone(OTSRoadNetwork network,
String newId,
SimulatorInterface.TimeDoubleUnit oldSimulator,
OTSSimulatorInterface newSimulator)
Clone the OTSRoadNetwork.
|
static void |
destroy(OTSRoadNetwork network,
SimulatorInterface.TimeDoubleUnit simulator)
Remove all objects and animation in the road network.
|
public static OTSRoadNetwork clone(OTSRoadNetwork network, String newId, SimulatorInterface.TimeDoubleUnit oldSimulator, OTSSimulatorInterface newSimulator) throws NetworkException
network - OTSRoadNetwork; the network to clonenewId - String; the new id of the networkoldSimulator - SimulatorInterface.TimeDoubleUnit; the old simulator for this networknewSimulator - OTSSimulatorInterface; the new simulator for this networkNetworkException - in case the cloning failspublic static void destroy(OTSRoadNetwork network, SimulatorInterface.TimeDoubleUnit simulator)
network - OTSRoadNetwork; the network to destroysimulator - SimulatorInterface.TimeDoubleUnit; the simulator of the old networkCopyright © 2014–2019 Delft University of Technology. All rights reserved.