Ejemplo n.º 1
0
        public void Reset()
        {
            // Reset scheduler
            if (Strategy != null)
            {
                string sh = Strategy.ToString ();
                try
                {
                    this.SetStrategyByName (sh);
                }
                catch
                {
            //					Console.WriteLine ("SchedulerInterface.Reset: Exception");
                }
            }
            Processes.RunningProcessesReset ();

            List<BasicNode> nodes = Nodes.GetAllNodes ();

            for (int a = 0; a < Nodes.Count; a++)
            {
                nodes[a].LastScheduled = new BasicProcess ();
                nodes[a].Override = 0;
                nodes[a].Status = 0;

                SchedPlans[a] = new SchedPlan ();
            }
        }
Ejemplo n.º 2
0
        public SimulatorInterface()
        {
            SchedPlans = new List<SchedPlan> ();

            for (int i = 0; i < Nodes.Count; i++)
            {
                SchedPlans[i] = new SchedPlan ();
            }
        }