Exemplo n.º 1
0
        protected override void Execute(NativeActivityContext context)
        {
            GA.GetSingleton().Init(PatternLength.Get(context), Choices.Get(context), Population.Get(context), MaxGenerations.Get(context),
                                   Selection.Get(context), Crossover.Get(context), Mutation.Get(context));
            var r = GA.GetSingleton().GetPatternsKeys();

            Result.Set(context, r);
            if (Body != null)
            {
                context.ScheduleAction <string>(Body, "GA", OnCompleted, OnFaulted);
            }
        }