Evolution/Evolution/Core/StopCriteriaDelegate.cs
/// <summary>
/// Returns a <see cref="StopCriteriaDelegate{G,F}"/> which returns true when the world generations is greater or equal than generationNumber
/// </summary>
/// <typeparam name="G"></typeparam>
/// <typeparam name="F"></typeparam>
/// <param name="generationNumber">The target generation number.</param>
/// <returns></returns>
Returns a  which returns true when the world generations is greater or equal than generationNumber
Returns a which returns true when the world generations is greater or equal than generationNumber
public static StopCriteriaDelegate<G, F> StopAtGeneration<G, F>(int generationNumber) where G : IGenotype
            where F : IComparable<F>
        {
            return world => world.Generation >= generationNumber;
        }
public static StopCriteriaDelegate < G , F > StopAtGeneration < G , F > ( int generationNumber ) where G : IGenotype where F : IComparable < F > { return world => world . Generation >= generationNumber ; }
Returns a  which returns true when the world generations is greater or equal than generationNumber
Returns a which returns true when the world generations is greater or equal than generationNumber
None
generationNumber
int
The target generation number.
The target generation number .
typeparam
None
typeparam
None