Package com.opengamma.timeseries

Examples of com.opengamma.timeseries.TimeSeries


  public TimeSeries getTimeSeries(final ValueSpecification specification) {
    return _data.get(specification);
  }

  public LocalDateDoubleTimeSeries getDoubleTimeSeries(final ValueSpecification specification) {
    final TimeSeries ts = getTimeSeries(specification);
    if (ts instanceof LocalDateDoubleTimeSeries) {
      return (LocalDateDoubleTimeSeries) ts;
    } else {
      return null;
    }
View Full Code Here


      return null;
    }
  }

  public LocalDateObjectTimeSeries getObjectTimeSeries(final ValueSpecification specification) {
    final TimeSeries ts = getTimeSeries(specification);
    if (ts instanceof LocalDateObjectTimeSeries) {
      return (LocalDateObjectTimeSeries) ts;
    } else {
      return null;
    }
View Full Code Here

            requirements = true;
          } else {
            result.addTimeSeries(specification, (TimeSeries) queue.remove());
          }
        } else if (ord.intValue() == 2) {
          final TimeSeries timeSeries = deserializer.fieldValueToObject(TimeSeries.class, field);
          if (!requirements) {
            queue.add(timeSeries);
          } else if (queue.isEmpty()) {
            queue.add(timeSeries);
            requirements = false;
View Full Code Here

  public TimeSeries getTimeSeries(final ValueRequirement requirement) {
    return _data.get(requirement);
  }

  public LocalDateDoubleTimeSeries getDoubleTimeSeries(final ValueRequirement requirement) {
    final TimeSeries ts = getTimeSeries(requirement);
    if (ts instanceof LocalDateDoubleTimeSeries) {
      return (LocalDateDoubleTimeSeries) ts;
    } else {
      return null;
    }
View Full Code Here

      return null;
    }
  }

  public LocalDateObjectTimeSeries getObjectTimeSeries(final ValueRequirement requirement) {
    final TimeSeries ts = getTimeSeries(requirement);
    if (ts instanceof LocalDateObjectTimeSeries) {
      return (LocalDateObjectTimeSeries) ts;
    } else {
      return null;
    }
View Full Code Here

            requirements = true;
          } else {
            result.addTimeSeries(requirement, (TimeSeries) queue.remove());
          }
        } else if (ord.intValue() == 2) {
          final TimeSeries timeSeries = deserializer.fieldValueToObject(TimeSeries.class, field);
          if (!requirements) {
            queue.add(timeSeries);
          } else if (queue.isEmpty()) {
            queue.add(timeSeries);
            requirements = false;
View Full Code Here

    final Set<ComputedValue> results = Sets.newHashSetWithExpectedSize(desiredValues.size());
    final ComputationTargetSpecification targetSpec = target.toSpecification();
    for (final ValueRequirement desiredValue : desiredValues) {
      final ValueRequirement requirement = getNestedRequirement(executionContext.getComputationTargetResolver(), target, desiredValue.getConstraints());
      if (requirement != null) {
        @SuppressWarnings("rawtypes")
        final TimeSeries ts = evaluationResult.getTimeSeries(requirement);
        if (ts != null) {
          results.add(new ComputedValue(new ValueSpecification(desiredValue.getValueName(), targetSpec, desiredValue.getConstraints()), ts));
        } else {
          s_logger.warn("Nested requirement {} did not produce a time series for {}", requirement, desiredValue);
View Full Code Here

    @SuppressWarnings("rawtypes")
    public HistoricalViewEvaluationMarketData makeResult() {
      final HistoricalViewEvaluationMarketData results = new HistoricalViewEvaluationMarketData();
      for (final Map.Entry<ValueSpecification, MarketData> result : entrySet()) {
        final TimeSeries timeSeries = result.getValue()._builder.makeTimeSeries();
        for (ValueSpecification alias : result.getValue()._alias) {
          results.addTimeSeries(alias, timeSeries);
        }
      }
      return results;
View Full Code Here

TOP

Related Classes of com.opengamma.timeseries.TimeSeries

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.