Ejemplo n.º 1
0
        /// <summary>
        /// Check and see if we should continue.
        /// </summary>
        /// <returns>True, if training should continue.</returns>
        public bool ShouldContinue()
        {
            foreach (IStrategy strategy in Train.Strategies)
            {
                if (strategy is IEndTrainingStrategy)
                {
                    IEndTrainingStrategy end = (IEndTrainingStrategy)strategy;

                    if (end.ShouldStop())
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }
Ejemplo n.º 2
0
 private static bool x21985e3d6e8b2b7b(IEndTrainingStrategy xca09b6c2b5b18485)
 {
     return xca09b6c2b5b18485.ShouldStop();
 }