public override void MakeDecision(DecisionSeverityType decisionSeverity) { if (decisionSeverity == DecisionSeverityType.Medium) { // Class is competent. } else if (this.superiorDecisionMaker != null) { this.superiorDecisionMaker.MakeDecision(decisionSeverity); } }
public override void MakeDecision(DecisionSeverityType decisionSeverity) { if (decisionSeverity == DecisionSeverityType.Low) { // Class is competent enough to do the work. } else if (this.superiorDecisionMaker != null) { // Pass the request to next DecisionMaker in the chain. this.superiorDecisionMaker.MakeDecision(decisionSeverity); } }
public abstract void MakeDecision(DecisionSeverityType decisionSeverity);