Beispiel #1
0
 //------------------------------------------------------------------------------
 //
 // prints just one job
 //
 //------------------------------------------------------------------------------
 public void PrintBusyMachine()
 {
     Console.WriteLine("-----------------------------------");
     Console.WriteLine("Year: " + year);
     Console.WriteLine("Quarter: " + quarter);
     Console.WriteLine("CourseID:");
     Console.WriteLine(currentJobProcessing.GetID());
     Console.WriteLine("DayTimes:");
     for (int i = 0; i < dateTime.Count; i++)
     {
         DayTime dt = dateTime[i];
         Console.WriteLine("Day: " + dt.GetDay());
         Console.WriteLine("Start time: " + dt.GetStartTime());
         Console.WriteLine("End time: " + dt.GetEndTime());
     }
     Console.WriteLine("-----------------------------------");
 }
Beispiel #2
0
 //------------------------------------------------------------------------------
 //
 // prints all the jobs
 //
 //------------------------------------------------------------------------------
 public void Print()
 {
     Console.WriteLine("-----------------------------------");
     Console.WriteLine("Year: " + year);
     Console.WriteLine("Quarter: " + quarter);
     Console.WriteLine("Jobs:");
     for (int i = 0; i < jobs.Count; i++)
     {
         Job j = jobs[i];
         Console.WriteLine(j.GetID());
     }
     Console.WriteLine("DayTimes:");
     for (int i = 0; i < dateTime.Count; i++)
     {
         DayTime dt = dateTime[i];
         Console.WriteLine("Day: " + dt.GetDay());
         Console.WriteLine("Start time: " + dt.GetStartTime());
         Console.WriteLine("End time: " + dt.GetEndTime());
     }
     Console.WriteLine("-----------------------------------");
 }