Speicher
Class Reference

java.lang.Object
  |
  +--Speicher.Reference

public class Reference
extends java.lang.Object

In Refence is one reference to a page saved. It contains the number of the accessed page and the type of access (Read/Write)


Field Summary
private  boolean isReadPage
          Type of reference: READ/WRITE
static boolean ISREADPAGE
          Constant to initialize the type of access with READ
private  int pageNr
          Number of the referenced page
static java.lang.String READ
          Constant for loading/saving references with READ access.
static java.lang.String WRITE
          Constant for loading/saving references with WRITE access.
 
Constructor Summary
Reference()
          Create a new initial reference
Reference(int pageNr, boolean isReadPage)
          Create a new reference with the given pageNr and accessType
 
Method Summary
 int getPageNr()
          Returns the number of the referenced page
 boolean isReadPage()
          Returns true, if the type of acces is Read
 void setPageNr(int pageNr)
          Sets the page number
 void setReadPage(boolean isReadPage)
          Sets the type of access to the given type
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ISREADPAGE

public static final boolean ISREADPAGE
Constant to initialize the type of access with READ

READ

public static final java.lang.String READ
Constant for loading/saving references with READ access.

WRITE

public static final java.lang.String WRITE
Constant for loading/saving references with WRITE access.

pageNr

private int pageNr
Number of the referenced page

isReadPage

private boolean isReadPage
Type of reference: READ/WRITE
Constructor Detail

Reference

public Reference()
Create a new initial reference

Reference

public Reference(int pageNr,
                 boolean isReadPage)
Create a new reference with the given pageNr and accessType
Method Detail

getPageNr

public int getPageNr()
Returns the number of the referenced page

isReadPage

public boolean isReadPage()
Returns true, if the type of acces is Read

setReadPage

public void setReadPage(boolean isReadPage)
Sets the type of access to the given type

setPageNr

public void setPageNr(int pageNr)
Sets the page number