public override void MakeDecision(DecisionSeverityType decisionSeverity)
 {
     if (decisionSeverity == DecisionSeverityType.Medium)
     {
         // Class is competent.
     }
     else if (this.superiorDecisionMaker != null)
     {
         this.superiorDecisionMaker.MakeDecision(decisionSeverity);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 public abstract void MakeDecision(DecisionSeverityType decisionSeverity);