CellsAutomate.Mutator.Mutations.ReplaceCommandMutation.ReplaceCommandMutation C# (CSharp) Method

ReplaceCommandMutation() public method

public ReplaceCommandMutation ( Random random, ICommandsList commands ) : System
random System.Random
commands ICommandsList
return System
        public ReplaceCommandMutation(Random random, ICommandsList commands)
        {
            _commands = commands;
            _random = random;
            _creator = new CommandsCreator(random, commands);
            _handlers = new List<Func<int, ICommand>>
            {
                _creator.CreateCloseCondition,
                _creator.CreateCloneValue,
                _creator.CreateCondition,
                _creator.CreateGetRandom,
                _creator.CreateGetState,
                _creator.CreateMinus,
                _creator.CreateNewInt,
                _creator.CreatePlus,
                _creator.CreatePrint,
                _creator.CreateSetValue,
                _creator.CreateStop
            };
        }