Package com.opengamma.financial.analytics.curve.exposure

Examples of com.opengamma.financial.analytics.curve.exposure.ExposureFunctions$Meta


    for (int i = 0; i < n; i++) {
      final ExternalId id = deserializer.fieldValueToObject(ExternalId.class, idsFields.get(i));
      final String configuration = (String) namesFields.get(i).getValue();
      idsToNames.put(id, configuration);
    }
    final ExposureFunctions functions = new ExposureFunctions(name, exposureFunctions, idsToNames);
    final FudgeField uniqueId = message.getByName(UNIQUE_ID_FIELD);
    if (uniqueId != null) {
      functions.setUniqueId(deserializer.fieldValueToObject(UniqueId.class, uniqueId));
    }
    return functions;
  }
View Full Code Here


    final List<String> exposureFunctions = Arrays.asList("Currency", "Security", "Security Type", "Region");
    final Map<ExternalId, String> idsToNames = new HashMap<>();
    idsToNames.put(ExternalId.of("SecurityType", "SWAP_USD"), "CurveConfig1");
    idsToNames.put(ExternalId.of("Currency", "USD"), "CurveConfig2");
    idsToNames.put(ExternalId.of("Region", "SWAP_US"), "CurveConfig3");
    final ExposureFunctions ef = new ExposureFunctions(name, exposureFunctions, idsToNames);
    assertEquals(ef, cycleObject(ExposureFunctions.class, ef));
  }
View Full Code Here

TOP

Related Classes of com.opengamma.financial.analytics.curve.exposure.ExposureFunctions$Meta

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.