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

A

arglist - Variable in class Kernel.Launcher
 

B

beginRead(int, byte[]) - Method in class Disk
Starts a new read operation.
beginWrite(int, byte[]) - Method in class Disk
Starts a new write operation.
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
 
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
Count - class Count.
A very tiny example MiniKernel program.
Count() - Constructor for class Count
 
currentBlock - Variable in class Disk
Current location of the read/write head

D

data - Variable in class Disk
The data stored on the disk
DELAY_PER_TRACK - Static variable in class Disk
Seek time per track, in ms
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
Disk - class Disk.
A software simulation of a Disk.
DISK_SIZE - Variable in class Disk
Total size of this disk, in blocks.
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
 
Disk(int) - Constructor for class Disk
Creates a new Disk.
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.

E

ERROR_BAD_ARGUMENT_TYPE - 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 that a command passed to SYSCALL_EXEC could not be executed.
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_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

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.

I

input(StringBuffer) - Static method in class Library
Performs SYSCALL_INPUT.
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.
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 Waits for a process to terminate
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.Launcher - class Kernel.Launcher.
 
Kernel.Launcher(String, String[]) - Constructor for class Kernel.Launcher
Creates a new Launcher for a program.
Kernel() - Constructor for class Kernel
 

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.

M

main(String[]) - Static method in class Boot
The main program.
main(String[]) - Static method in class Shell
The main program.
main(String[]) - Static method in class Count
The main program.
method - Variable in class Kernel.Launcher
 

N

nextpid - Static variable in class Kernel.Launcher
 

O

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

P

pid - Variable in class Kernel.Launcher
 
pidMap - Static variable in class Kernel.Launcher
 
pl(Object) - Static method in class Boot
Prints a message.

R

readCount - Variable in class Disk
A count of read operations performed, for statistics.
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
 
run() - Method in class Kernel.Launcher
Main loop of the Launcher
run() - Method in class Disk
This method simulates the internal microprocessor of the disk controler.

S

Shell - class Shell.
A simple command-line shell for the MiniKernel.
Shell() - Constructor for class Shell
 
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.

T

targetBlock - Variable in class Disk
The block number to be read/written by the current operation.
TRACK_SIZE - Static variable in class Disk
The size of a track, in blocks.
trackOf(int) - Method in class Disk
Computes the track number of a disk block.
TRANSFER_TIME - Static variable in class Disk
Minimum time to transfer one block of data, in ms

U

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.
writeCount - Variable in class Disk
A count of write operations performed, for statistics.

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