Пример #1
0
        public override bool IsFulfilled(Body body)
        {
            isFulfilled = currentFulFillable.IsFulfilled(body);

            if (isFulfilled)
            {
                currentFulFillable.Fulfilled();

                if (currentFulFillable.Next == null)
                {
                    isFulfilled = true;
                }
                else
                {
                    currentFulFillable = currentFulFillable.Next as BaseStep;
                    currentFulFillable.Unfulfilled();

                    isFulfilled = false;
                }
            }

            return(isFulfilled);
        }
Пример #2
0
 public StepGroup(string description, StatisticType statisticType, PatientJoint affectedJoint, BaseStep previous, int repetitions, WriteStatisticManager statisticManager) : base(description, statisticType, affectedJoint, previous, repetitions, statisticManager)
 {
 }
Пример #3
0
 public Step(string name, StatisticType statisticType, PatientJoint affectedJoint, BaseStep prevStep, int repetitions, WriteStatisticManager statisticManager) : base(name, statisticType, affectedJoint, prevStep, repetitions, statisticManager)
 {
     this.type = Types.step;
 }
Пример #4
0
 public void SetFirstStep(Step firstStep)
 {
     this.currentFulFillable = firstStep;
 }