Exemple #1
0
 public CmasPenalization(string id, string reason, string shortReason, CardResult cardResult)
 {
     this.id          = id;
     this.reason      = reason;
     this.shortReason = shortReason;
     this.cardResult  = cardResult;
 }
Exemple #2
0
 public AidaPenalization(string id, string reason, string shortReason, string inputName, string inputUnit, ICalculation penaltyCalculation, double?fatalInput)
 {
     this.id                 = id;
     this.reason             = reason;
     this.shortReason        = shortReason;
     this.inputName          = inputName;
     this.inputUnit          = inputUnit;
     this.penaltyCalculation = penaltyCalculation;
     this.cardResult         = CardResult.Yellow;
     this.fatalInput         = fatalInput;
 }
Exemple #3
0
 public AidaPenalization(string id, string reason, string shortReason, CardResult cardResult)
 {
     this.id                 = id;
     this.reason             = reason;
     this.shortReason        = shortReason;
     this.inputName          = null;
     this.inputUnit          = null;
     this.penaltyCalculation = null;
     this.cardResult         = cardResult;
     this.fatalInput         = null;
 }
Exemple #4
0
 public CmasPenalization(string id, string reason, string shortReason, string inputName, string inputUnit, PerformanceComponent component, double value)
 {
     this.id          = id;
     this.reason      = reason;
     this.shortReason = shortReason;
     this.cardResult  = CardResult.Yellow;
     this.inputName   = inputName;
     this.inputUnit   = inputUnit;
     this.component   = component;
     if (inputName == null)
     {
         this.calculation = Calculation.Constant(value);
     }
     else
     {
         this.calculation = Calculation.Multiply(Calculation.Constant(value), Calculation.Input);
     }
 }