Beispiel #1
0
        public void Init()
        {
             c5 = new IterComp(5, RunStatus.Success);
             c10 = new IterComp(10, RunStatus.Success);

             r1 = new Repeater(c5);
             r2 = new Repeater(c10);

             fixedAction = new TreeSharp.Action((TreeSharp.ActionDelegate)DoNothing);
             fixedRepeater = new Repeater(fixedAction, FIXED_REPEATER_COUNT);
        }
Beispiel #2
0
        public void Init()
        {
             c1 = new IterComp(0, RunStatus.Success);
             c2 = new IterComp(1, RunStatus.Success);
             c1Failure = new IterComp(0, RunStatus.Failure);
             c2Failure = new IterComp(1, RunStatus.Failure);
             cCont1 = new IterComp(5, RunStatus.Success);
             cCont2 = new IterComp(10, RunStatus.Success);

             p1 = new Parallel(Policy.ALL_MET, Policy.ALL_MET, c1, c2);
             empty = new Parallel(Policy.ALL_MET, Policy.ALL_MET);
             single = new Parallel(Policy.ALL_MET, Policy.ALL_MET, c2);

             pSuccessOne = new Parallel(Policy.ALL_MET, Policy.ONE_MET, c1, c2);
             pFailureOne = new Parallel(Policy.ONE_MET, Policy.ALL_MET, c1Failure, c2Failure);
             pFailureAll = new Parallel(Policy.ALL_MET, Policy.ALL_MET, c1Failure, c2Failure);
             pContinuous = new Parallel(Policy.ALL_MET, Policy.ALL_MET, cCont1, cCont2);
             pContinousStop = new Parallel(Policy.ALL_MET, Policy.ONE_MET, cCont1);
        }