Class BuiltScenarioMarketData

    • Method Detail

      • containsValue

        public boolean containsValue​(MarketDataId<?> id)
        Description copied from interface: ScenarioMarketData
        Checks if this market data contains a value for the specified identifier.
        Specified by:
        containsValue in interface ScenarioMarketData
        Parameters:
        id - the identifier to find
        Returns:
        true if the market data contains a value for the identifier
      • getValue

        public <T> MarketDataBox<T> getValue​(MarketDataId<T> id)
        Description copied from interface: ScenarioMarketData
        Gets the market data value associated with the specified identifier.

        The result is a box that provides data for all scenarios. If this market data instance contains the identifier, the value will be returned. Otherwise, an exception will be thrown.

        Specified by:
        getValue in interface ScenarioMarketData
        Type Parameters:
        T - the type of the market data value
        Parameters:
        id - the identifier to find
        Returns:
        the market data value box providing data for all scenarios
      • findValue

        public <T> java.util.Optional<MarketDataBox<T>> findValue​(MarketDataId<T> id)
        Description copied from interface: ScenarioMarketData
        Finds the market data value associated with the specified identifier.

        The result is a box that provides data for all scenarios. If this market data instance contains the identifier, the value will be returned. Otherwise, an empty optional will be returned.

        Specified by:
        findValue in interface ScenarioMarketData
        Type Parameters:
        T - the type of the market data value
        Parameters:
        id - the identifier to find
        Returns:
        the market data value box providing data for all scenarios, empty if not found
      • findIds

        public <T> java.util.Set<MarketDataId<T>> findIds​(MarketDataName<T> name)
        Description copied from interface: ScenarioMarketData
        Finds the market data identifiers associated with the specified name.

        This returns the unique identifiers that refer to the specified name. There may be more than one identifier associated with a name as the name is not unique.

        Specified by:
        findIds in interface ScenarioMarketData
        Type Parameters:
        T - the type of the market data value
        Parameters:
        name - the name to find
        Returns:
        the set of market data identifiers, empty if name not found
      • getTimeSeriesIds

        public java.util.Set<ObservableId> getTimeSeriesIds()
        Description copied from interface: ScenarioMarketData
        Gets the time-series identifiers.

        Time series are not affected by scenarios, therefore there is a single time-series for each identifier which is shared between all scenarios.

        Specified by:
        getTimeSeriesIds in interface ScenarioMarketData
        Returns:
        the set of observable identifiers
      • getTimeSeries

        public LocalDateDoubleTimeSeries getTimeSeries​(ObservableId id)
        Description copied from interface: ScenarioMarketData
        Gets the time-series associated with the specified identifier, empty if not found.

        Time series are not affected by scenarios, therefore there is a single time-series for each identifier which is shared between all scenarios.

        Specified by:
        getTimeSeries in interface ScenarioMarketData
        Parameters:
        id - the identifier to find
        Returns:
        the time-series, empty if no time-series found
      • getUnderlying

        public ImmutableScenarioMarketData getUnderlying()
        Gets the underlying market data.
        Returns:
        the value of the property, not null
      • getValueFailures

        public com.google.common.collect.ImmutableMap<MarketDataId<?>,​Failure> getValueFailures()
        Gets the failures when building single market data values.
        Returns:
        the value of the property, not null
      • getTimeSeriesFailures

        public com.google.common.collect.ImmutableMap<MarketDataId<?>,​Failure> getTimeSeriesFailures()
        Gets the failures that occurred when building time series of market data values.
        Returns:
        the value of the property, not null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object