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); } }
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) { }