S - strategical plannerT - tactical plannerpublic class GTUTest<S extends org.opentrafficsim.core.gtu.plan.strategical.StrategicalPlanner,T extends org.opentrafficsim.core.gtu.plan.tactical.TacticalPlanner> extends Object implements org.opentrafficsim.core.dsol.OTSModelInterface
Copyright (c) 2013-2018 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| Modifier and Type | Field and Description |
|---|---|
org.opentrafficsim.core.gtu.GTU |
gtuOfStrategicalPlanner
GTU that will be returned when the fake strategical planner is asked for the associated GTU with getGTU.
|
| 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,nl.tudelft.simulation.dsol.simtime.SimTimeDoubleUnit> simulator) |
org.opentrafficsim.core.network.OTSNetwork |
getNetwork() |
nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,nl.tudelft.simulation.dsol.simtime.SimTimeDoubleUnit> |
getSimulator() |
void |
testAbstractGTU()
Test the constructor.
|
public org.opentrafficsim.core.gtu.GTU gtuOfStrategicalPlanner
public final void testAbstractGTU()
throws org.opentrafficsim.core.gtu.GTUException,
nl.tudelft.simulation.dsol.SimRuntimeException,
org.opentrafficsim.core.network.NetworkException,
NamingException,
RemoteException,
org.opentrafficsim.core.geometry.OTSGeometryException
GTUException - should not happen uncaught; if it does the test has failedorg.opentrafficsim.core.network.NetworkException - 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 failedorg.opentrafficsim.core.geometry.OTSGeometryException - 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,nl.tudelft.simulation.dsol.simtime.SimTimeDoubleUnit> simulator)
throws nl.tudelft.simulation.dsol.SimRuntimeException
constructModel in interface nl.tudelft.simulation.dsol.DSOLModel<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,nl.tudelft.simulation.dsol.simtime.SimTimeDoubleUnit>nl.tudelft.simulation.dsol.SimRuntimeExceptionpublic final nl.tudelft.simulation.dsol.simulators.SimulatorInterface<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,nl.tudelft.simulation.dsol.simtime.SimTimeDoubleUnit> getSimulator()
getSimulator in interface nl.tudelft.simulation.dsol.DSOLModel<org.djunits.value.vdouble.scalar.Time,org.djunits.value.vdouble.scalar.Duration,nl.tudelft.simulation.dsol.simtime.SimTimeDoubleUnit>public final org.opentrafficsim.core.network.OTSNetwork getNetwork()
getNetwork in interface org.opentrafficsim.core.dsol.OTSModelInterfaceCopyright © 2014–2018 Delft University of Technology. All rights reserved.