Class TestSampler
java.lang.Object
org.opentrafficsim.kpi.sampling.Sampler<TestGtuData,TestLaneData>
org.opentrafficsim.kpi.sampling.impl.TestSampler
Test Sampler class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Entry of initialization and finalization. -
Constructor Summary
ConstructorsConstructorDescriptionTestSampler
(Set<ExtendedDataType<?, ?, ?, ? super TestGtuData>> extendedDataTypes, Set<FilterDataType<?, ? super TestGtuData>> filterDataTypes, TestSimulator simulator) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns the moments of finalization.getInits()
Returns the moments of initialization.void
initRecording
(TestLaneData lane) org.djunits.value.vdouble.scalar.Time
now()
void
scheduleStartRecording
(org.djunits.value.vdouble.scalar.Time time, TestLaneData lane) void
scheduleStopRecording
(org.djunits.value.vdouble.scalar.Time time, TestLaneData lane) Methods inherited from class org.opentrafficsim.kpi.sampling.Sampler
addGtu, addGtuWithSnapshot, contains, equals, getSamplerData, hashCode, registerSpaceTimeRegion, removeGtu, removeGtuWithSnapshot, snapshot, startRecording, stopRecording
-
Constructor Details
-
TestSampler
public TestSampler(Set<ExtendedDataType<?, ?, ?, ? super TestGtuData>> extendedDataTypes, Set<FilterDataType<?, ? super TestGtuData>> filterDataTypes, TestSimulator simulator) Constructor.- Parameters:
extendedDataTypes
- extended data typesfilterDataTypes
- filter data typessimulator
- simulator
-
-
Method Details
-
now
public org.djunits.value.vdouble.scalar.Time now()- Specified by:
now
in classSampler<TestGtuData,
TestLaneData>
-
scheduleStartRecording
- Specified by:
scheduleStartRecording
in classSampler<TestGtuData,
TestLaneData>
-
scheduleStopRecording
- Specified by:
scheduleStopRecording
in classSampler<TestGtuData,
TestLaneData>
-
initRecording
- Specified by:
initRecording
in classSampler<TestGtuData,
TestLaneData>
-
finalizeRecording
- Specified by:
finalizeRecording
in classSampler<TestGtuData,
TestLaneData>
-
getInits
Returns the moments of initialization.- Returns:
- moments of initialization
-
getFinals
Returns the moments of finalization.- Returns:
- moments of finalization
-