private IEvolutionRule GetEvolutionRule() { INeighbourRule neighbourrule = neighbourrulefactory.Create(grid); IEvolutionRule evolutionrule = evolutionaryrulefactory.CreateEvolutionRule(neighbourrule); return(evolutionrule); }
public IEvolutionRule CreateEvolutionRule(INeighbourRule neighbourRule) { // for now return hard coded rule. TODO: This needs to become dynamic return(new BasicTwoDimensionalEvolutionRule(neighbourRule)); }
public IRule CreateRule(INeighbourRule neighbourRule) { //This will return hard code rule, this need to be driven through config. return new MatrixRule(neighbourRule); }
public BasicTwoDimensionalEvolutionRule(INeighbourRule neighbourRule) { this.neighbourRule = neighbourRule; }
/// <summary> /// Constructor of the class. /// </summary> /// <param name="neighbourRule"></param> public MatrixRule(INeighbourRule neighbourRule) { this.neighbourRule = neighbourRule; }
public IEvolutionRule CreateEvolutionRule(INeighbourRule neighbourRule) { // for now return hard coded rule. TODO: This needs to become dynamic return new BasicTwoDimensionalEvolutionRule(neighbourRule); }