Class OpticalPathIntent.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • src

        public OpticalPathIntent.Builder src​(ConnectPoint src)
        Sets the source for the intent that will be built.
        Parameters:
        src - source to use for built intent
        Returns:
        this builder
      • dst

        public OpticalPathIntent.Builder dst​(ConnectPoint dst)
        Sets the destination for the intent that will be built.
        Parameters:
        dst - dest to use for built intent
        Returns:
        this builder
      • path

        public OpticalPathIntent.Builder path​(Path path)
        Sets the path for the intent that will be built.
        Parameters:
        path - path to use for built intent
        Returns:
        this builder
      • lambda

        public OpticalPathIntent.Builder lambda​(OchSignal lambda)
        Sets the optical channel (lambda) for the intent that will be built.
        Parameters:
        lambda - the optical channel
        Returns:
        this builder
      • signalType

        public OpticalPathIntent.Builder signalType​(OchSignalType signalType)
        Sets the optical signal type for the intent that will be built.
        Parameters:
        signalType - the optical signal type
        Returns:
        this builder
      • bidirectional

        public OpticalPathIntent.Builder bidirectional​(boolean isBidirectional)
        Sets the intent's direction.
        Parameters:
        isBidirectional - indicates if intent is bidirectional
        Returns:
        this builder
      • build

        public OpticalPathIntent build()
        Builds an optical path intent from the accumulated parameters.
        Returns:
        optical path intent