/**
 * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
 * 
 * Please see distribution for license.
 */
package com.opengamma.engine.view.impl;

import java.util.Collection;
import java.util.Map;

import com.opengamma.engine.ComputationTargetSpecification;
import com.opengamma.engine.depgraph.DependencyGraphBuilder;
import com.opengamma.engine.value.ComputedValueResult;
import com.opengamma.engine.value.ValueProperties;
import com.opengamma.engine.view.ViewCalculationResultModel;
import com.opengamma.util.tuple.Pair;

/**
 * A simple implementation of the calculation result model.
 */
public class ViewCalculationResultModelImpl extends AbstractResultModel<ComputationTargetSpecification> implements ViewCalculationResultModel {

  private static final long serialVersionUID = 1L;
  
  private DependencyGraphBuilder _dependencyGraphModel;

  public void setDependencyGraphModel(DependencyGraphBuilder dependencyGraphModel) {
    _dependencyGraphModel = dependencyGraphModel;
  }

  public DependencyGraphBuilder getDependencyGraphModel() {
    return _dependencyGraphModel;
  }
  
  // REVIEW Andrew 2010-09-14 -- Do we need the dependency graph model ?

  @Override
  public Map<Pair<String, ValueProperties>, ComputedValueResult> getValues(final ComputationTargetSpecification target) {
    return super.getValuesByName(target);
  }
  
  @Override
  public Collection<ComputedValueResult> getAllValues(final ComputationTargetSpecification target) {
    return super.getAllValues(target);
  }

  @Override
  public Collection<ComputationTargetSpecification> getAllTargets() {
    return getKeys();
  }

}

@@ -289,69 +289,8 @@
 on;%0A
-import com.opengamma.engine.depgraph.DependencyGraphBuilder;%0A
 impo
@@ -340,16 +340,16 @@
 Result;%0A
+
 import c
@@ -758,382 +758,8 @@
  1L;
-%0A  %0A  private DependencyGraphBuilder _dependencyGraphModel;%0A%0A  public void setDependencyGraphModel(DependencyGraphBuilder dependencyGraphModel) %7B%0A    _dependencyGraphModel = dependencyGraphModel;%0A  %7D%0A%0A  public DependencyGraphBuilder getDependencyGraphModel() %7B%0A    return _dependencyGraphModel;%0A  %7D%0A  %0A  // REVIEW Andrew 2010-09-14 -- Do we need the dependency graph model ?
 %0A%0A  
@@ -936,18 +936,16 @@
 t);%0A  %7D%0A
-  
 %0A  @Over

Remove unused field.