/// <summary>Startup the run.</summary> public void StartRun() { timer = new Stopwatch(); timer.Start(); ConnectLinksAndEvents(); _IsRunning = true; Locater.Clear(); if (Commencing != null) { Commencing.Invoke(this, new EventArgs()); } }
/// <summary>Startup the run.</summary> public void StartRun() { timer = new Stopwatch(); timer.Start(); Apsim.ConnectEvents(this); Apsim.ResolveLinks(this); foreach (Model child in Apsim.ChildrenRecursively(this)) { Apsim.ConnectEvents(child); Apsim.ResolveLinks(child); } _IsRunning = true; Locater.Clear(); if (Commencing != null) { Commencing.Invoke(this, new EventArgs()); } }
/// <summary>Startup the run.</summary> public void StartRun() { timer = new Stopwatch(); timer.Start(); Apsim.ConnectEvents(this); Apsim.ResolveLinks(this); foreach (Model child in Apsim.ChildrenRecursively(this)) { Apsim.ConnectEvents(child); Apsim.ResolveLinks(child); } _IsRunning = true; Locater.Clear(); Console.WriteLine("Running: " + Path.GetFileNameWithoutExtension(FileName) + " - " + Name); if (Commencing != null) { Commencing.Invoke(this, new EventArgs()); } }
/// <summary> /// Clears the existing Scoping Rules /// </summary> public void ClearCaches() { Scope.Clear(); Locater.Clear(); }