Beispiel #1
0
        protected override ushort CalcFine(FineContext fineContext)
        {
            if (fineContext.Intent.AVGMillesecondsOnStep < MILLISECONDS_ON_TROUND)
            {
                return(0);
            }

            return((ushort)Math.Ceiling(fineContext.Intent.AVGMillesecondsOnStep / MILLISECONDS_ON_TROUND));
        }
Beispiel #2
0
 protected abstract ushort CalcFine(FineContext fineContext);
Beispiel #3
0
 public ushort CalcFine(ushort currentFine, FineContext fineContext)
 {
     currentFine += CalcFine(fineContext);
     return(_nextCalc?.CalcFine(currentFine, fineContext) ?? currentFine);
 }