Example #1
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);
     }
 }
Example #2
0
 public AidaPenalization(string id, string reason, string shortReason, string inputName, string inputUnit, double fixedPoints)
     : this(id, reason, shortReason, inputName, inputUnit, Calculation.Multiply(Calculation.Constant(fixedPoints), Calculation.Input), null)
 {
 }