Example #1
0
        private float GetTargetThreshold(AiStep stp)
        {
            float targetThreshold = thisModel.Map.Threshold;

            if (stp.Threshold != 0)
            {
                targetThreshold = (float)stp.Threshold / 100f;
            }
            return(targetThreshold);
        }
Example #2
0
        private void SendRumPayload(string transactionName, long toleratingSeconds, string fromStep, string toStep, string errorReason = null)
        {
            AiStep fStep = ThisModel.GetStep(fromStep);
            AiStep tStep = ThisModel.GetStep(toStep);

            double start    = (fStep.StartTime.Subtract(new DateTime(1970, 1, 1))).TotalMilliseconds;
            double end      = ((tStep.EndTime == DateTime.MinValue) || (tStep.EndTime < fStep.StartTime)) ? DateTime.Now.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds : tStep.EndTime.Subtract(new DateTime(1970, 1, 1)).TotalMilliseconds;
            long   duration = (long)(end - start);

            this.mapExecutor.Rum.SendRumTransaction(transactionName, toleratingSeconds, (long)start, duration, errorReason, false);
        }