Package com.opengamma.integration.marketdata.manipulator.dsl

Examples of com.opengamma.integration.marketdata.manipulator.dsl.Scenario


  protected void doRun() throws Exception {
    String scriptLocation = getCommandLine().getOptionValue('s');
    ConfigSource configSource = getToolContext().getConfigSource();
    ConfigMaster configMaster = getToolContext().getConfigMaster();

    Scenario scenario = SimulationUtils.createScenarioFromDsl(scriptLocation, null);
    ConfigItem<ScenarioDefinition> configItem = ConfigItem.of(scenario.createDefinition(), scenario.getName());
    if (getCommandLine().hasOption('i')) {
      ObjectId scenarioId = ObjectId.parse(getCommandLine().getOptionValue('i'));
      UniqueId latestScenarioId = configSource.get(scenarioId, VersionCorrection.LATEST).getUniqueId();
      configItem.setUniqueId(latestScenarioId);
      configMaster.update(new ConfigDocument(configItem));
View Full Code Here

TOP

Related Classes of com.opengamma.integration.marketdata.manipulator.dsl.Scenario

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.