A B C D E F H I J K L M N O P R S T U W

A

arglist - Variable in class Kernel.Launcher
The list of arguments to this command.

B

BLOCK_SIZE - Static variable in class Disk
The size of a disk block in bytes.
Boot - class Boot.
A bootstrap program for the MiniKernel.
Boot() - Constructor for class Boot
 
beginRead(int, byte[]) - Method in class Disk
Starts a new read operation.
beginRead(int, byte[]) - Method in class FastDisk
Deprecated. Do not use this method. Use read instead.
beginWrite(int, byte[]) - Method in class Disk
Starts a new write operation.
beginWrite(int, byte[]) - Method in class FastDisk
Deprecated. Do not use this method. Use read instead.
br - Static variable in class Kernel
 
buffer - Variable in class Disk
Memory buffer to/from which current I/O operation is transferring.
busy - Variable in class Disk
An indication of whether an I/O operation is currently in progress.

C

cacheSize - Static variable in class Kernel
The size of the disk cache
create(String) - Static method in class Library
Creates a new empty file (size 0).
currentBlock - Variable in class Disk
Current location of the read/write head

D

DISK_SIZE - Variable in class Disk
Total size of this disk, in blocks.
Disk - class Disk.
A software simulation of a Disk.
Disk(int) - Constructor for class Disk
Creates a new Disk.
Disk.DiskException - exception Disk.DiskException.
The exception thrown when an illegal operation is attempted on the disk.
Disk.DiskException(String) - Constructor for class Disk.DiskException
 
data - Variable in class Disk
The data stored on the disk
delay(int) - Method in class Disk
Sleeps for a while to simulate the delay in seeking and transferring data.
delete() - Method in class Kernel.Launcher
Removes this Launcher from the set of all active Launchers.
disk - Static variable in class Kernel
The disk to be used
doExec(String, String[]) - Static method in class Kernel
Loads a program and runs it in the background.
doExecAndWait(String, String[]) - Static method in class Kernel
Loads a program and runs it.
doInput(StringBuffer) - Static method in class Kernel
Reads a line from the console into a StringBuffer.
doJoin(int) - Static method in class Kernel
Waits for a program previous started by doExec to terminate.
doOutput(String) - Static method in class Kernel
Displays a message on the console.
doPowerOn(int, Object, Object) - Static method in class Kernel
Performs the actions associated with a POWER_ON interrupt.
doShutdown() - Static method in class Kernel
Does any "shutdown" activities required after all activities started by a POWER_ON interrupt have completed.

E

ERROR_BAD_ARGUMENT - Static variable in class Kernel
An error code indicating that one of the system call parameters made no sense.
ERROR_BAD_COMMAND - Static variable in class Kernel
An error code indicating some unspecified problem running the class passed SYSCALL_EXEC.
ERROR_END_OF_FILE - Static variable in class Kernel
An error code indicating that end of file was reached.
ERROR_IN_CHILD - Static variable in class Kernel
An error code indicating that a child program caused an exception and crashed.
ERROR_IO - Static variable in class Kernel
An error code indicating that somthing went wrong during an I/O operation.
ERROR_NO_CLASS - Static variable in class Kernel
An error code indicating that the class name passed to SYSCALL_EXEC could not be found.
ERROR_NO_MAIN - Static variable in class Kernel
An error code indicating that the class name passed to SYSCALL_EXEC named a class with no appropriate main() method.
ERROR_NO_SUCH_PROCESS - Static variable in class Kernel
An error code indicating an attempt to join with a non-existant process
ERROR_OUT_OF_RANGE - Static variable in class Kernel
An error code indicating that one parameter was too big or too small
errorMessage - Static variable in class Library
A table of error messages corresponding to Kernel error return codes.
exec(String, String[]) - Static method in class Library
Performs SYSCALL_EXEC.

F

FastDisk - class FastDisk.
A new and improved Disk.
FastDisk(int) - Constructor for class FastDisk
Creates a new FastDisk.
FileTester - class FileTester.
Basic driver program to be used as a shell for the MiniKernel for project 5.
FileTester() - Constructor for class FileTester
 
finishOperation() - Method in class Disk
Indicates to the CPU that the current operation has completed.
flush() - Method in class Disk
Saves the contents of this Disk.
format(int, int) - Static method in class Library
Formats the disk.

H

help() - Static method in class FileTester
Prints a list of available commands.
help(String) - Static method in class FileTester
Prints help for command "cmd".
helpInfo - Static variable in class FileTester
Synopsis of commands.

I

INTERRUPT_DISK - Static variable in class Kernel
An interrupt kind indicating that a disk caused the interrupt.
INTERRUPT_POWER_ON - Static variable in class Kernel
An interrupt kind indicating that the system just started.
INTERRUPT_USER - Static variable in class Kernel
An interrupt kind indicating that a user program caused the interrupt.
input(StringBuffer) - Static method in class Library
Performs SYSCALL_INPUT.
interrupt(int, int, int, Object, Object, byte[]) - Static method in class Kernel
This is the only entry into the kernel.
isWriting - Variable in class Disk
An indication whether the current I/O operation is a write operation.

J

join(int) - Static method in class Library
Performs SYSCALL_JOIN.
joinAll() - Static method in class Kernel.Launcher
Waits for all existing Launchers to complete.
joinOne(int) - Static method in class Kernel.Launcher
Waits for a particular Launcher to complete.

K

Kernel - class Kernel.
A simple kernel simulation.
Kernel() - Constructor for class Kernel
 
Kernel.Launcher - class Kernel.Launcher.
A Launcher instance represents one atomic command being run by the Kernel.
Kernel.Launcher(String, String[]) - Constructor for class Kernel.Launcher
Creates a new Launcher for a program.

L

Library - class Library.
Convenience calls for using the Kernel.
Library() - Constructor for class Library
This private constructor ensures that no instances of Library are ever created.
link(String, String) - Static method in class Library
Adds an additional name to an existing file.
list() - Static method in class Library
Reports information about the file system to System.out.

M

main(String[]) - Static method in class Boot
The main program.
main(String[]) - Static method in class FileTester
Main program.
method - Variable in class Kernel.Launcher
The method being run by this command.

N

nextpid - Static variable in class Kernel.Launcher
Source of unique ids for Launcher instances.

O

output(String) - Static method in class Library
Performs SYSCALL_OUTPUT.

P

pid - Variable in class Kernel.Launcher
The process id of this command.
pidMap - Static variable in class Kernel.Launcher
Mapping of process ids (encoded as Integers) to Launcher instances.
pl(Object) - Static method in class Boot
Prints a message.
pl(Object) - Static method in class FileTester
Prints a line to System.out followed by a newline.
pr(Object) - Static method in class FileTester
Prints a line to System.out.
pr(char) - Static method in class FileTester
Prints a character to System.out.

R

read(int, byte[]) - Method in class FastDisk
Performs a read operation.
read(String, int, byte[]) - Static method in class Library
Reads from a file.
readCount - Variable in class Disk
A count of read operations performed, for statistics.
readTest(String, int, int) - Static method in class FileTester
Reads data from a (simulated) file using Library.read and displays the results.
requestQueued - Variable in class Disk
A flag set by beginRead or beginWrite to indicate that a request has been submitted.
returnCode - Variable in class Kernel.Launcher
Return code returned by this command (0 if the command has not yet completed.
run() - Method in class Disk
This method simulates the internal microprocessor of the disk controler.
run() - Method in class Kernel.Launcher
Main loop of the Launcher

S

SYSCALL_EXEC - Static variable in class Kernel
System call to execute a new program.
SYSCALL_INPUT - Static variable in class Kernel
System call to read text from the console.
SYSCALL_JOIN - Static variable in class Kernel
System call to wait for a process to terminate.
SYSCALL_OUTPUT - Static variable in class Kernel
System call to output text on the console.
showChar(int) - Static method in class FileTester
Display a readable representation of a byte.
sync() - Static method in class Library
Flushes all cached information to disk.

T

targetBlock - Variable in class Disk
The block number to be read/written by the current operation.

U

unlink(String) - Static method in class Library
Removes a name from a file.
usage() - Static method in class Boot
Prints a help message and exits.

W

waitForRequest() - Method in class Disk
Waits for a call to beginRead or beginWrite.
write(int, byte[]) - Method in class FastDisk
Performs a write operation.
write(String, int, byte[]) - Static method in class Library
Writes to a file.
writeCount - Variable in class Disk
A count of write operations performed, for statistics.
writeTest(String, int, int, String) - Static method in class FileTester
Writes data to a (simulated) file using Library.write.
writeTest(String, int, BufferedReader) - Static method in class FileTester
Write data to a (simulated) file using Library.write.

A B C D E F H I J K L M N O P R S T U W