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 recordEntry of initialization and finalization. -
Constructor Summary
ConstructorsConstructorDescriptionTestSampler(Set<ExtendedDataType<?, ?, ?, ? super TestGtuData>> extendedDataTypes, Set<FilterDataType<?, ? super TestGtuData>> filterDataTypes, TestSimulator simulator) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the moments of finalization.getInits()Returns the moments of initialization.voidinitRecording(TestLaneData lane) org.djunits.value.vdouble.scalar.Timenow()voidscheduleStartRecording(org.djunits.value.vdouble.scalar.Time time, TestLaneData lane) voidscheduleStopRecording(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:
nowin classSampler<TestGtuData,TestLaneData>
-
scheduleStartRecording
- Specified by:
scheduleStartRecordingin classSampler<TestGtuData,TestLaneData>
-
scheduleStopRecording
- Specified by:
scheduleStopRecordingin classSampler<TestGtuData,TestLaneData>
-
initRecording
- Specified by:
initRecordingin classSampler<TestGtuData,TestLaneData>
-
finalizeRecording
- Specified by:
finalizeRecordingin classSampler<TestGtuData,TestLaneData>
-
getInits
Returns the moments of initialization.- Returns:
- moments of initialization
-
getFinals
Returns the moments of finalization.- Returns:
- moments of finalization
-