/********************************************************************
                    Return Ratio Information
PURPOSE: This packet class augments the process class
********************************************************************/
 class RRinfo {
      process X; // reference only
      int wait, service;
      double RR;
      
   /*--------------------------------------------------------
                        Constructor
   PURPOSE:  To package process class and intiliaze extra data
   PARAMETERS: references the process class
   --------------------------------------------------------*/
      public RRinfo(process A) {
         X = A;
         wait = 0;
         service = X.getService();
         RR = 1.0;
      } // constructor

      // interface
      public process getProc() { return X; }
      public double getRR() { return RR; }
         
   /*--------------------------------------------------------
                        delay update
   PURPOSE:  To update the return ratio, and wait variable
   --------------------------------------------------------*/
      public void delay() {
         RR = (++wait + service)/service;
      } // update RR
   } // added RR information


