Exemple #1
0
        /// <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());
            }
        }
Exemple #2
0
        /// <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());
            }
        }
Exemple #3
0
        /// <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());
            }
        }
Exemple #4
0
 /// <summary>
 /// Clears the existing Scoping Rules
 /// </summary>
 public void ClearCaches()
 {
     Scope.Clear();
     Locater.Clear();
 }