static public NeighborhoodManager GetInstance() { if (_Instance == null) { _Instance = new NeighborhoodManager(); } return(_Instance); }
public static GridController GetInstance() { if (_Instance == null) { _Instance = new GridController(100, 100); _Instance._Neighborhood = NeighborhoodManager.GetInstance(); _Instance.SolversList = new List <SolverEngine>() { new CircleSolver(), new RectSolver(), new ClassicSolverEngine() }; _Instance.Solver = _Instance.SolversList[0]; } return(_Instance); }
public SolverEngine() { _Neighborhood = NeighborhoodManager.GetInstance(); }