This is the base class for transformations
コード例 #1
0
        public void Initialize()
        {
            ruleT1 = new TestRuleT1();
            ruleT2 = new TestRuleT2();
            voidT1 = new VoidTestRuleT1();
            voidT2 = new VoidTestRuleT2();

            transformation = new MockTransformation(ruleT1, ruleT2, voidT1, voidT2);
            context = new TransformationContext(transformation);
        }
コード例 #2
0
        public void Initialize()
        {
            ruleT1 = new TestRuleT1();
            ruleT2 = new TestRuleT2();
            ruleTN = new TestRuleTN();

            transformation = new MockTransformation(ruleT1, ruleT2, ruleTN);

            pattern = new TestPattern();

            transformation.Patterns.Add(pattern);

            context = new TransformationContext(transformation);
        }
コード例 #3
0
 public TracingTransformationContext(Transformation transformation) : base(transformation) { }
コード例 #4
0
 /// <summary>
 /// Creates a new transformation context for the given transformation
 /// </summary>
 /// <param name="transformation">The transformation, a context should be generated for</param>
 public ParallelTransformationContext(Transformation transformation)
 {
     if (transformation == null) throw new ArgumentNullException("transformation");
     Transformation = transformation;
     trace = new TransformationContextTrace(this);
 }
コード例 #5
0
 public TaskParallelTransformationContext2(Transformation transformation) : base(transformation) { }
コード例 #6
0
ファイル: TraceTest.cs プロジェクト: FrederikP/NMF
 protected virtual ITransformationContext CreateContext(Transformation transformation)
 {
     return new MockContext(transformation);
 }
コード例 #7
0
ファイル: TraceTest.cs プロジェクト: FrederikP/NMF
 protected override ITransformationContext CreateContext(Transformation transformation)
 {
     return new TransformationContext(transformation);
 }