Example #1
0
 static public NeighborhoodManager GetInstance()
 {
     if (_Instance == null)
     {
         _Instance = new NeighborhoodManager();
     }
     return(_Instance);
 }
Example #2
0
 public static GridController GetInstance()
 {
     if (_Instance == null)
     {
         _Instance = new GridController(100, 100);
         _Instance._Neighborhood = NeighborhoodManager.GetInstance();
         _Instance.Solver        = new FrontalSolverEngine();
         _Instance.DelayNucleons = new List <DelayNucleon>();
     }
     return(_Instance);
 }
 public SolverEngine()
 {
     _Neighborhood = NeighborhoodManager.GetInstance();
 }