/// <summary>
        /// Indicates whether the corresponding step has been activated
        /// </summary>
        /// <param name="step"></param>
        /// <returns></returns>
        internal bool ContainsStep(Step step)
        {
            bool retVal = false;

            foreach (SubStep subStep in step.SubSteps)
            {
                if (SubStepActivationCache.ContainsKey(subStep))
                {
                    retVal = SubStepActivationCache[subStep] != null;
                }
            }

            return(retVal);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Indicates whether the corresponding step has been activated
        /// </summary>
        /// <param name="subStep"></param>
        /// <returns></returns>
        public bool ContainsSubStep(SubStep subStep)
        {
            bool retVal = false;

            if (subStep != null)
            {
                if (SubStepActivationCache.ContainsKey(subStep))
                {
                    retVal = SubStepActivationCache[subStep] != null;
                }
            }

            return(retVal);
        }
        /// <summary>
        /// Gives the time of activation of a sub-step
        /// </summary>
        /// <param name="subStep"></param>
        /// <returns>True if the provided rule has been activated</returns>
        public double GetSubStepActivationTime(SubStep subStep)
        {
            double retVal = -1;

            if (SubStepActivationCache.ContainsKey(subStep))
            {
                SubStepActivated subStepActivated = SubStepActivationCache[subStep];
                if (subStepActivated != null)
                {
                    retVal = subStepActivated.Time;
                }
            }

            return(retVal);
        }