Package com.opengamma.engine.marketdata

Examples of com.opengamma.engine.marketdata.MarketDataSnapshot.query()


                 snapshot.query(ImmutableSet.of(SPEC1, SPEC2, SPEC3)));
  }

  private static MarketDataSnapshot historicalSnapshot1() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
    when(snapshot.query(SPEC1)).thenReturn(1d);
    when(snapshot.query(SPEC2)).thenReturn(2d);
    when(snapshot.query(SPEC3)).thenReturn(4d);
    return snapshot;
  }
View Full Code Here


  }

  private static MarketDataSnapshot historicalSnapshot1() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
    when(snapshot.query(SPEC1)).thenReturn(1d);
    when(snapshot.query(SPEC2)).thenReturn(2d);
    when(snapshot.query(SPEC3)).thenReturn(4d);
    return snapshot;
  }

  private static MarketDataSnapshot historicalSnapshot2() {
View Full Code Here

  private static MarketDataSnapshot historicalSnapshot1() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
    when(snapshot.query(SPEC1)).thenReturn(1d);
    when(snapshot.query(SPEC2)).thenReturn(2d);
    when(snapshot.query(SPEC3)).thenReturn(4d);
    return snapshot;
  }

  private static MarketDataSnapshot historicalSnapshot2() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
View Full Code Here

    return snapshot;
  }

  private static MarketDataSnapshot historicalSnapshot2() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
    when(snapshot.query(SPEC1)).thenReturn(1.1d);
    when(snapshot.query(SPEC2)).thenReturn(2.2d);
    when(snapshot.query(SPEC3)).thenReturn(4.4d);
    return snapshot;
  }
View Full Code Here

  }

  private static MarketDataSnapshot historicalSnapshot2() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
    when(snapshot.query(SPEC1)).thenReturn(1.1d);
    when(snapshot.query(SPEC2)).thenReturn(2.2d);
    when(snapshot.query(SPEC3)).thenReturn(4.4d);
    return snapshot;
  }

  private static MarketDataSnapshot baseSnapshot() {
View Full Code Here

  private static MarketDataSnapshot historicalSnapshot2() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
    when(snapshot.query(SPEC1)).thenReturn(1.1d);
    when(snapshot.query(SPEC2)).thenReturn(2.2d);
    when(snapshot.query(SPEC3)).thenReturn(4.4d);
    return snapshot;
  }

  private static MarketDataSnapshot baseSnapshot() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
View Full Code Here

    return snapshot;
  }

  private static MarketDataSnapshot baseSnapshot() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
    when(snapshot.query(SPEC1)).thenReturn(10d);
    when(snapshot.query(SPEC2)).thenReturn(20d);
    when(snapshot.query(SPEC3)).thenReturn(40d);
    return snapshot;
  }
}
View Full Code Here

  }

  private static MarketDataSnapshot baseSnapshot() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
    when(snapshot.query(SPEC1)).thenReturn(10d);
    when(snapshot.query(SPEC2)).thenReturn(20d);
    when(snapshot.query(SPEC3)).thenReturn(40d);
    return snapshot;
  }
}
View Full Code Here

  private static MarketDataSnapshot baseSnapshot() {
    MarketDataSnapshot snapshot = mock(MarketDataSnapshot.class);
    when(snapshot.query(SPEC1)).thenReturn(10d);
    when(snapshot.query(SPEC2)).thenReturn(20d);
    when(snapshot.query(SPEC3)).thenReturn(40d);
    return snapshot;
  }
}
View Full Code Here

    final List<Set<ValueSpecification>> valuesBySnapshot = _valueMap.getUnderlyingSpecifications(values);
    for (int i = 0; i < _snapshots.size(); i++) {
      final MarketDataSnapshot snapshot = _snapshots.get(i);
      final Set<ValueSpecification> snapshotSubscriptions = valuesBySnapshot.get(i);
      if (!snapshotSubscriptions.isEmpty()) {
        final Map<ValueSpecification, Object> snapshotResults = snapshot.query(snapshotSubscriptions);
        for (final Map.Entry<ValueSpecification, Object> snapshotResult : snapshotResults.entrySet()) {
          results.put(_valueMap.convertUnderlyingSpecification(i, snapshotResult.getKey()), snapshotResult.getValue());
        }
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.