public final class OTSNetworkUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static OTSNetwork |
clone(OTSNetwork network,
String newId,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit oldSimulator,
OTSSimulatorInterface newSimulator)
Clone the OTSNetwork.
|
static void |
destroy(OTSNetwork network,
nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit simulator)
Remove all objects and animation in the network.
|
public static OTSNetwork clone(OTSNetwork network, String newId, nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit oldSimulator, OTSSimulatorInterface newSimulator) throws NetworkException
network - OTSNetwork; 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(OTSNetwork network, nl.tudelft.simulation.dsol.simulators.SimulatorInterface.TimeDoubleUnit simulator)
network - OTSNetwork; the network to destroysimulator - SimulatorInterface.TimeDoubleUnit; the simulator of the old networkCopyright © 2014–2019 Delft University of Technology. All rights reserved.