Class RoadSampler.Factory

  • Enclosing class:
    RoadSampler

    public static final class RoadSampler.Factory
    extends Object
    Factory for RoadSampler.
    • Method Detail

      • registerExtendedDataType

        public RoadSampler.Factory registerExtendedDataType​(ExtendedDataType<?,​?,​?,​GtuData> extendedDataType)
        Register extended data type.
        Parameters:
        extendedDataType - ExtendedDataType<?, ?, ?, GtuData>; extended data type
        Returns:
        Factory; this factory
      • registerFilterDataType

        public RoadSampler.Factory registerFilterDataType​(FilterDataType<?> filterDataType)
        Register filter data type.
        Parameters:
        filterDataType - FilterDataType<?>; filter data type
        Returns:
        Factory; this factory
      • setFrequency

        public RoadSampler.Factory setFrequency​(Frequency frequency)
        Sets the frequency. If no frequency is set, a sampler is created that records on move events of GTU's.
        Parameters:
        frequency - Frequency; frequency
        Returns:
        Factory; this factory
      • create

        public RoadSampler create()
        Create sampler.
        Returns:
        RoadSampler; sampler