Class Image

java.lang.Object
  |
  +--Image

public class Image
extends java.lang.Object

An Image represents the executable image for a task.


Constructor Summary
Image(java.lang.String nm, int ros, int rws, int t)
          new Image(nm, ros, rws, t) returns a new image for a program named nm.
 
Method Summary
 java.lang.String getDescription()
          im.getDescription() returns a description of im.
 int getExecutionTime()
          im.getExecutionTime() returns the CPU time needed to execute im.
 int getROBase()
          im.getROBase() returns the base address of the read-only segment of memory for im.
 int getROSize()
          im.getROSize() returns the size of the read-only segment of memory for im.
 int getRWBase()
          im.getRWBase() returns the base address of the read-write segment of memory for im.
 int getRWSize()
          im.getRWSize() returns the size of the read-write segment of memory for im.
 int getTotalSize()
          im.getTotalSize() returns the total memory size of im.
 java.lang.String toString()
          im.toString() returns the class name and image name of im as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Image

public Image(java.lang.String nm,
             int ros,
             int rws,
             int t)
new Image(nm, ros, rws, t) returns a new image for a program named nm. The size of its read-only segment is ros and the size of its read-write segment is rws. These sizes are adjusted to an integer multiple of MMU.PAGE_SIZE. The order of the segments is read-only, then read-write. The execution time for the image is t.

Method Detail

getROSize

public int getROSize()
im.getROSize() returns the size of the read-only segment of memory for im.


getRWSize

public int getRWSize()
im.getRWSize() returns the size of the read-write segment of memory for im.


getTotalSize

public int getTotalSize()
im.getTotalSize() returns the total memory size of im.


getROBase

public int getROBase()
im.getROBase() returns the base address of the read-only segment of memory for im.


getRWBase

public int getRWBase()
im.getRWBase() returns the base address of the read-write segment of memory for im.


getExecutionTime

public int getExecutionTime()
im.getExecutionTime() returns the CPU time needed to execute im.


getDescription

public java.lang.String getDescription()
im.getDescription() returns a description of im.


toString

public java.lang.String toString()
im.toString() returns the class name and image name of im as a string.

Overrides:
toString in class java.lang.Object