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); }
public StepGroup(string description, StatisticType statisticType, PatientJoint affectedJoint, BaseStep previous, int repetitions, WriteStatisticManager statisticManager) : base(description, statisticType, affectedJoint, previous, repetitions, statisticManager) { }
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; }
public void SetFirstStep(Step firstStep) { this.currentFulFillable = firstStep; }