Package org.opentrafficsim.kpi.sampling
Class SamplerTest
java.lang.Object
org.opentrafficsim.kpi.sampling.SamplerTest
Tests sampler in various ways.
Copyright (c) 2024-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
crossSectionTest
(TestSampler sampler, TestLinkData link) Test FilterDataCrossSection.void
Test basic functions.void
Test initialization, finalization, and possible overlap between space-time regions.void
Test lots in a small two-lane, three-vehicle case.void
trajectoryAcceptListTest
(TestSampler sampler, TestLaneData lane) Test trajectoryAcceptListTest.
-
Constructor Details
-
SamplerTest
public SamplerTest()Constructor.
-
-
Method Details
-
testInitFinalize
@Test public void testInitFinalize()Test initialization, finalization, and possible overlap between space-time regions. -
testBasic
@Test public void testBasic()Test basic functions. -
testSmallDataCase
@Test public void testSmallDataCase()Test lots in a small two-lane, three-vehicle case. -
crossSectionTest
Test FilterDataCrossSection.- Parameters:
sampler
- samplerlink
- link
-
trajectoryAcceptListTest
Test trajectoryAcceptListTest.- Parameters:
sampler
- samplerlane
- lane to test on
-