Class Page

java.lang.Object
  |
  +--Page

public class Page
extends java.lang.Object

A Page represents a memory page.


Constructor Summary
Page(PCB proc, int pageNum, int perm)
          new Page(proc, pageNum, perm) returns a new page owned by process proc.
 
Method Summary
 PCB getOwner()
          pg.getOwner() returns the process that owns pg.
 int getPageNumber()
          pg.getPageNumber() returns the page number for pg.
 int getPermissions()
          pg.getPermissions() returns the read, write, and execute permissions for pg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Page

public Page(PCB proc,
            int pageNum,
            int perm)
new Page(proc, pageNum, perm) returns a new page owned by process proc. The page resides at page number pageNum and has permissions perm.

Method Detail

getOwner

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


getPageNumber

public int getPageNumber()
pg.getPageNumber() returns the page number for pg.


getPermissions

public int getPermissions()
pg.getPermissions() returns the read, write, and execute permissions for pg.