Package com.opengamma.engine.depgraph

Examples of com.opengamma.engine.depgraph.DependencyNodeFilter


   * @param calcConfName calculation configuration name
   * @return a dependency graph with any nodes which have already been satisfied filtered out, not null See {@link #computeDelta} and how it calls {@link #markExecuted}.
   */
  protected DependencyGraph createExecutableDependencyGraph(final String calcConfName) {
    final FunctionBlacklistQuery blacklist = getViewProcessContext().getFunctionCompilationService().getFunctionCompilationContext().getGraphExecutionBlacklist();
    return getDependencyGraph(calcConfName).subGraph(new DependencyNodeFilter() {
      @Override
      public boolean accept(final DependencyNode node) {
        // Market data functions must not be executed
        if (node.isMarketDataSourcingFunction()) {
          markExecuted(node);
View Full Code Here


    n8.addInputNode(n7);
    return graph(n1, n2, n3, n4, n5, n6, n7, n8);
  }

  public void testReturnSameGraph() {
    final SubGraphingFilter filter = new SubGraphingFilter(new DependencyNodeFilter() {
      @Override
      public boolean accept(final DependencyNode node) {
        return true;
      }
    });
View Full Code Here

    graph = smallGraph();
    assertSame(filter.subGraph(graph, null), graph);
  }

  public void testReturnEmptyGraph() {
    final SubGraphingFilter filter = new SubGraphingFilter(new DependencyNodeFilter() {
      @Override
      public boolean accept(final DependencyNode node) {
        return false;
      }
    });
View Full Code Here

TOP

Related Classes of com.opengamma.engine.depgraph.DependencyNodeFilter

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.