public class GTUTest extends Object implements OTSModelInterface
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
nl.tudelft.simulation.dsol.DSOLModel.CalendarDouble, nl.tudelft.simulation.dsol.DSOLModel.CalendarFloat, nl.tudelft.simulation.dsol.DSOLModel.CalendarLong, nl.tudelft.simulation.dsol.DSOLModel.TimeDouble, nl.tudelft.simulation.dsol.DSOLModel.TimeDoubleUnit, nl.tudelft.simulation.dsol.DSOLModel.TimeFloat, nl.tudelft.simulation.dsol.DSOLModel.TimeFloatUnit, nl.tudelft.simulation.dsol.DSOLModel.TimeLong, nl.tudelft.simulation.dsol.DSOLModel.TimeLongUnit
Constructor and Description |
---|
GTUTest() |
Modifier and Type | Method and Description |
---|---|
void |
constructModel(nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> simulator) |
OTSNetwork |
getNetwork() |
nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> |
getSimulator() |
void |
testAbstractGTU()
Test the constructor.
|
public final void testAbstractGTU() throws GTUException, nl.tudelft.simulation.dsol.SimRuntimeException, NetworkException, NamingException, RemoteException, OTSGeometryException
GTUException
- should not happen uncaught; if it does the test has failedNetworkException
- should not happen uncaught; if it does the test has failednl.tudelft.simulation.dsol.SimRuntimeException
- should not happen uncaught; if it does the test has failedNamingException
- should not happen uncaught; if it does the test has failedRemoteException
- should not happen uncaught; if it does the test has failedOTSGeometryException
- should not happen uncaught; if it does the test has failedpublic void constructModel(nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> simulator) throws nl.tudelft.simulation.dsol.SimRuntimeException, RemoteException
constructModel
in interface nl.tudelft.simulation.dsol.DSOLModel<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>
nl.tudelft.simulation.dsol.SimRuntimeException
RemoteException
public final nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble> getSimulator() throws RemoteException
getSimulator
in interface nl.tudelft.simulation.dsol.DSOLModel<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,OTSSimTimeDouble>
RemoteException
public final OTSNetwork getNetwork()
getNetwork
in interface OTSModelInterface
Copyright © 2014–2017 Delft University of Technology. All rights reserved.