public class ContourPlotTest extends Object
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights
reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
ContourPlotTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
accelerationContourTest()
Test the AccelerationContourPlot.
|
void |
densityContourTest()
Test the DensityContourPlot.
|
void |
flowContourTest()
Test the FlowContourPlot.
|
static void |
main(String[] args)
Run the DensityContourPlot stand-alone for profiling
|
void |
speedContourTest()
Test the SpeedContourPlot.
|
static void |
standardContourTests(ContourPlot cp,
Lane lane,
double expectedZValue,
double expectedZValueWithTraffic)
Test various properties of a ContourPlot that has no observed data added.
|
public final void accelerationContourTest()
throws RemoteException,
NetworkException,
nl.tudelft.simulation.dsol.SimRuntimeException,
NamingException,
GTUException
NamingExceptionnl.tudelft.simulation.dsol.SimRuntimeExceptionNetworkExceptionRemoteExceptionGTUExceptionpublic final void densityContourTest()
throws RemoteException,
NetworkException,
nl.tudelft.simulation.dsol.SimRuntimeException,
NamingException,
GTUException
NamingExceptionnl.tudelft.simulation.dsol.SimRuntimeExceptionNetworkExceptionRemoteExceptionGTUExceptionpublic final void flowContourTest()
throws RemoteException,
NetworkException,
nl.tudelft.simulation.dsol.SimRuntimeException,
NamingException,
GTUException
NamingExceptionnl.tudelft.simulation.dsol.SimRuntimeExceptionNetworkExceptionRemoteExceptionGTUExceptionpublic final void speedContourTest()
throws RemoteException,
NetworkException,
nl.tudelft.simulation.dsol.SimRuntimeException,
NamingException,
GTUException
NamingExceptionnl.tudelft.simulation.dsol.SimRuntimeExceptionNetworkExceptionRemoteExceptionGTUExceptionpublic static void standardContourTests(ContourPlot cp, Lane lane, double expectedZValue, double expectedZValueWithTraffic) throws NetworkException, RemoteException, nl.tudelft.simulation.dsol.SimRuntimeException, NamingException, GTUException
cp - ContourPlot; the ContourPlot to testlane - TODOexpectedZValue - double; the value that getZ and getZValue should return for a valid item when no car has
passedexpectedZValueWithTraffic - double; the value that getZ and getZValue should return a valid item where a car
has travelled at constant speed of 50 km/h. Supply Double.NaN if the value varies but differs from the
value expected when no car has passedNetworkExceptionRemoteExceptionNamingExceptionnl.tudelft.simulation.dsol.SimRuntimeExceptionGTUExceptionpublic static void main(String[] args) throws RemoteException, NetworkException, nl.tudelft.simulation.dsol.SimRuntimeException, NamingException, GTUException
args - RemoteExceptionNetworkExceptionnl.tudelft.simulation.dsol.SimRuntimeExceptionNamingExceptionGTUExceptionCopyright © 2014–2015 Delft University of Technology. All rights reserved.