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,
                    GTUType<?> gtuType,
                    double expectedZValue,
                    double expectedZValueWithTraffic)
Test various properties of a ContourPlot that has no observed data added. 
 | 
public final void accelerationContourTest()
                                   throws Exception
Exception - when something goes wrong (should not happen)public final void densityContourTest()
                              throws Exception
Exception - when something goes wrong (should not happen)public final void flowContourTest()
                           throws Exception
Exception - when something goes wrong (should not happen)public final void speedContourTest()
                            throws Exception
Exception - when something goes wrong (should not happen)public static void standardContourTests(ContourPlot cp, Lane lane, GTUType<?> gtuType, double expectedZValue, double expectedZValueWithTraffic) throws Exception
cp - ContourPlot; the ContourPlot to testlane - Lane; the lane on which the test GTUs are rungtuType - GTUType<?>; the type of GTUexpectedZValue - 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 traveled at constant speed of 50 km/h. Supply Double.NaN if the value varies but differs from the
            value expected when no car has passedException - when something goes wrong (should not happen)Copyright © 2014–2015 Delft University of Technology. All rights reserved.