Package com.opengamma.engine

Examples of com.opengamma.engine.MapComputationTargetResolver.addTarget()


    final String calculationConfigName = "config_1";

    EquitySecurity aapl = new EquitySecurity("EXCH", "EXCH_CODE", "APPLE", Currency.USD);
    aapl.setUniqueId(UniqueId.of("Sec", "APPL"));
    ComputationTarget target = new ComputationTarget(ComputationTargetType.SECURITY, aapl);
    computationTargetResolver.addTarget(target);

    _compTargetSpec = target.getLeafSpecification();
    _requirement = new ValueRequirement("FAIR_VALUE", _compTargetSpec);
    _specification = new ValueSpecification("FAIR_VALUE", _compTargetSpec, ValueProperties.with(ValuePropertyNames.FUNCTION, "IDENTITY_FUNCTION").get());
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.