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) { }
 /// <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);
 }
 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);
 }