Exemplo n.º 1
1
 protected OperatorGraph(OperatorGraph original, Cloner cloner)
   : base(original, cloner) {
   operators = cloner.Clone(original.operators);
   initialOperator = cloner.Clone(original.initialOperator);
   visualizationInfo = cloner.Clone(original.visualizationInfo);
   Initialize();
 }
Exemplo n.º 2
0
 protected EngineAlgorithm()
   : base() {
   globalScope = new Scope("Global Scope");
   globalScope.Variables.Add(new Variable("Results", new ResultCollection()));
   operatorGraph = new OperatorGraph();
   Initialize();
 }
Exemplo n.º 3
0
 protected OperatorGraph(OperatorGraph original, Cloner cloner)
     : base(original, cloner)
 {
     operators         = cloner.Clone(original.operators);
     initialOperator   = cloner.Clone(original.initialOperator);
     visualizationInfo = cloner.Clone(original.visualizationInfo);
     Initialize();
 }
    public OperatorGraphVisualizationInfo(OperatorGraph operatorGraph)
      : this() {
      this.operatorGraph = operatorGraph;
      this.RegisterOperatorGraphEvents();

      foreach (IOperator op in operatorGraph.Operators)
        if (!this.operatorShapeInfoMapping.ContainsFirst(op))  //could be added by referencing parameters
          this.AddOperator(op);

      this.UpdateInitialShape();
    }
Exemplo n.º 5
0
 protected override void OnContentChanged() {
   if (Content != null) {
     bool createdVisualizationInfo = false;
     if (this.VisualizationInfo == null) {
       this.VisualizationInfo = new OperatorGraphVisualizationInfo(this.Content);
       createdVisualizationInfo = true;
     }
     this.graphVisualizationInfoView.Content = this.VisualizationInfo;
     if (createdVisualizationInfo)
       this.graphVisualizationInfoView.RelayoutGraph();
   } else {
     this.graphVisualizationInfoView.Content = null;
   }
 }
Exemplo n.º 6
0
 protected EngineAlgorithm(string name, ParameterCollection parameters)
   : base(name, parameters) {
   globalScope = new Scope("Global Scope");
   globalScope.Variables.Add(new Variable("Results", new ResultCollection()));
   operatorGraph = new OperatorGraph();
   Initialize();
 }
Exemplo n.º 7
0
 protected EngineAlgorithm(EngineAlgorithm original, Cloner cloner)
   : base(original, cloner) {
   globalScope = cloner.Clone(original.globalScope);
   engine = cloner.Clone(original.engine);
   operatorGraph = cloner.Clone(original.operatorGraph);
   Initialize();
 }
Exemplo n.º 8
0
 protected AlgorithmOperator()
   : base() {
   operatorGraph = new OperatorGraph();
 }
Exemplo n.º 9
0
 protected AlgorithmOperator(AlgorithmOperator original, Cloner cloner)
   : base(original, cloner) {
   this.operatorGraph = cloner.Clone<OperatorGraph>(original.operatorGraph);
 }