/* 
 * Frame.java (Implements frames structures for memory.)
 *
 * Written by : Nitin  Motgi (nmotgi@cs.ucf.edu)
 *
 * Portions copyright(c) 2001 to School of Electrical Engineering and 
 * Computer Science, UCF, Orlando.                   
 *                                    
 * Use and distribution of this source code are strictly governed by 
 * terms and conditions set by the authors.
 * 
 * $Id : Frame.java, v1.0.0 03/24/2001. $
 *            
 * Revision History:
 *
 * 1. Created basic structure           Nitin,        v1.0.0  03/24/2001.
 * 2. Added Documentation.              Nitin,        v1.0.1  03/24/2001.
*/

/* Import some of the libraries.*/
import java.lang.*;
import java.util.*;
import java.io.*;


public class Frame extends Object{
 public int nProgHolding;      /* Contains which Program is in this 
                                  memory.*/
 public int nPageHolding;      /* Contains which Page is in this memory.*/
 public int nAccessFreq;       /* Is used in LFU,MFU to get the victim 
                                  page.*/
 public long lTimeStamp;       /* Uses time measurement in LRU.*/
 public boolean bDirtyBit;     /* Is used to indicate whether there 
                                  were any writes to this page.*/
 public boolean bFrameStatus;   /* Indicates whether it is holding a valid  
                                  frame or no.*/

 /* Default Constructor.*/
 Frame(){
  nProgHolding = -1;           /* Pointing to void program.*/  
  nPageHolding = -1;           /* Points to void page.*/ 
  nAccessFreq  = 0;
  lTimeStamp   = 0;
  bDirtyBit    = false;        /* It's not being written.*/ 
  bFrameStatus = false;        /* The frame does not contain the page.*/ 
 }/* End of Constructor.*/

}/* End of Frame.*/

