Interface TrafficPattern.Builder

    • Method Detail

      • trafficType

        TrafficPattern.Builder trafficType​(String trafficType)

        Defines the traffic patterns. Choose either PHASES or STAIRS.

        Parameters:
        trafficType - Defines the traffic patterns. Choose either PHASES or STAIRS.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TrafficType, TrafficType
      • trafficType

        TrafficPattern.Builder trafficType​(TrafficType trafficType)

        Defines the traffic patterns. Choose either PHASES or STAIRS.

        Parameters:
        trafficType - Defines the traffic patterns. Choose either PHASES or STAIRS.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TrafficType, TrafficType
      • phases

        TrafficPattern.Builder phases​(Collection<Phase> phases)

        Defines the phases traffic specification.

        Parameters:
        phases - Defines the phases traffic specification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phases

        TrafficPattern.Builder phases​(Phase... phases)

        Defines the phases traffic specification.

        Parameters:
        phases - Defines the phases traffic specification.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phases

        TrafficPattern.Builder phases​(Consumer<Phase.Builder>... phases)

        Defines the phases traffic specification.

        This is a convenience method that creates an instance of the Phase.Builder avoiding the need to create one manually via Phase.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #phases(List).

        Parameters:
        phases - a consumer that will call methods on Phase.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #phases(java.util.Collection)
      • stairs

        TrafficPattern.Builder stairs​(Stairs stairs)

        Defines the stairs traffic pattern.

        Parameters:
        stairs - Defines the stairs traffic pattern.
        Returns:
        Returns a reference to this object so that method calls can be chained together.