public CmasPenalization(string id, string reason, string shortReason, CardResult cardResult) { this.id = id; this.reason = reason; this.shortReason = shortReason; this.cardResult = cardResult; }
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; }
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; }
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); } }