Class PageTable

java.lang.Object
  |
  +--PageTable

public class PageTable
extends java.lang.Object

A PageTable represents a virtual memory page table for a process.


Constructor Summary
PageTable(PCB proc)
          new PageTable(proc) returns a page table for proc.
 
Method Summary
 PCB getOwner()
          pt.getOwner() returns the the process that owns pt.
 PTE getPTE(int pageNum)
          pt.getPTE(pageNum) returns the page table entry in pt for page number pageNum.
 PTE getPTEByAddress(int addr)
          pt.getPTEByAddress(addr) returns the page table entry in pt for the page that contains address addr.
 void printTable()
          pt.printTable() prints pt in tabular form to System.out.
 void setPTE(int pageNum, PTE pte)
          pt.setPTE(pageNum, pte) sets the page table entry in pt for page number pageNum to pte.
 java.lang.String toString()
          pt.toString() returns a string describing the type and owner of pt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageTable

public PageTable(PCB proc)
new PageTable(proc) returns a page table for proc.

Method Detail

getOwner

public PCB getOwner()
pt.getOwner() returns the the process that owns pt.


getPTE

public PTE getPTE(int pageNum)
pt.getPTE(pageNum) returns the page table entry in pt for page number pageNum.


setPTE

public void setPTE(int pageNum,
                   PTE pte)
pt.setPTE(pageNum, pte) sets the page table entry in pt for page number pageNum to pte.


getPTEByAddress

public PTE getPTEByAddress(int addr)
pt.getPTEByAddress(addr) returns the page table entry in pt for the page that contains address addr.


toString

public java.lang.String toString()
pt.toString() returns a string describing the type and owner of pt.

Overrides:
toString in class java.lang.Object

printTable

public void printTable()
pt.printTable() prints pt in tabular form to System.out.