Class FunctionRequirements.Builder

    • Method Detail

      • valueRequirements

        public FunctionRequirements.Builder valueRequirements​(Set<? extends MarketDataId<?>> valueRequirements)
        Sets the market data identifiers of the values required for the calculation.
        Parameters:
        valueRequirements - the new value, not null
        Returns:
        this, for chaining, not null
      • valueRequirements

        @SafeVarargs
        public final FunctionRequirements.Builder valueRequirements​(MarketDataId<?>... valueRequirements)
        Sets the valueRequirements property in the builder from an array of objects.
        Parameters:
        valueRequirements - the new value, not null
        Returns:
        this, for chaining, not null
      • timeSeriesRequirements

        public FunctionRequirements.Builder timeSeriesRequirements​(Set<ObservableId> timeSeriesRequirements)
        Sets the market data identifiers of the time-series of required for the calculation.
        Parameters:
        timeSeriesRequirements - the new value, not null
        Returns:
        this, for chaining, not null
      • timeSeriesRequirements

        public FunctionRequirements.Builder timeSeriesRequirements​(ObservableId... timeSeriesRequirements)
        Sets the timeSeriesRequirements property in the builder from an array of objects.
        Parameters:
        timeSeriesRequirements - the new value, not null
        Returns:
        this, for chaining, not null
      • outputCurrencies

        public FunctionRequirements.Builder outputCurrencies​(Set<Currency> outputCurrencies)
        Sets the currencies used in the calculation results.

        This cause FX rates to be requested that allow conversion between the currencies specified and the reporting currency. It will be possible to obtain any FX rate pair for these currencies.

        Parameters:
        outputCurrencies - the new value, not null
        Returns:
        this, for chaining, not null
      • outputCurrencies

        public FunctionRequirements.Builder outputCurrencies​(Currency... outputCurrencies)
        Sets the outputCurrencies property in the builder from an array of objects.
        Parameters:
        outputCurrencies - the new value, not null
        Returns:
        this, for chaining, not null
      • observableSource

        public FunctionRequirements.Builder observableSource​(ObservableSource observableSource)
        Sets the source of market data for FX, quotes and other observable market data.

        This is used to control the source of observable market data. By default, this will be ObservableSource.NONE.

        Parameters:
        observableSource - the new value, not null
        Returns:
        this, for chaining, not null
      • toString

        public String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FunctionRequirements>