Class Link.Builder

  • Enclosing class:
    Link

    public static class Link.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Link.Builder id​(String id)
        ID of the link.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • source

        public Link.Builder source​(String source)
        ID of the source node.
        Parameters:
        source - the value to set
        Returns:
        this builder
      • destination

        public Link.Builder destination​(String destination)
        ID of the destination node.
        Parameters:
        destination - the value to set
        Returns:
        this builder
      • repeatCount

        public Link.Builder repeatCount​(Integer repeatCount)
        Number of times the link is repeated.
        Parameters:
        repeatCount - the value to set
        Returns:
        this builder
      • forwardingLoss

        public Link.Builder forwardingLoss​(Double forwardingLoss)
        Average packet loss.
        Parameters:
        forwardingLoss - the value to set
        Returns:
        this builder
      • delayInMilliseconds

        public Link.Builder delayInMilliseconds​(Double delayInMilliseconds)
        Difference of the packet response time between source and destination nodes, in milliseconds.
        Parameters:
        delayInMilliseconds - the value to set
        Returns:
        this builder
      • minDelayInMilliseconds

        public Link.Builder minDelayInMilliseconds​(Double minDelayInMilliseconds)
        Minimum delay in milliseconds.
        Parameters:
        minDelayInMilliseconds - the value to set
        Returns:
        this builder
      • maxDelayInMilliseconds

        public Link.Builder maxDelayInMilliseconds​(Double maxDelayInMilliseconds)
        Maximum delay in milliseconds.
        Parameters:
        maxDelayInMilliseconds - the value to set
        Returns:
        this builder
      • paths

        public Link.Builder paths​(List<String> paths)
        List of all path IDs of which this link is part of.
        Parameters:
        paths - the value to set
        Returns:
        this builder
      • build

        public Link build()