|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnachos.kernel.devices.test.ConsoleTest
public class ConsoleTest
Class for testing the Console hardware device.
Nested Class Summary | |
---|---|
private static class |
ConsoleTest.ConsHandler
Console interrupt handler class. |
Field Summary | |
---|---|
private static nachos.machine.Console |
console
Instance of the console device being tested. |
private static Semaphore |
readAvail
Semaphore used to wait for available input. |
private static Semaphore |
writeDone
Semaphore used to wait until printing is done. |
Constructor Summary | |
---|---|
ConsoleTest()
|
Method Summary | |
---|---|
static void |
run(java.lang.String in,
java.lang.String out)
Test the console by echoing characters typed at the input onto the output. |
static void |
start(java.lang.String[] args)
Entry point for the Console test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static nachos.machine.Console console
private static Semaphore readAvail
private static Semaphore writeDone
Constructor Detail |
---|
public ConsoleTest()
Method Detail |
---|
public static void run(java.lang.String in, java.lang.String out)
in
- If non-null, the name of a file from which to read
input. If null, then read input from the keyboard.out
- If non-null, the name of a file to which to direct
output. If null, then direct output to the display.public static void start(java.lang.String[] args)
args
- Command-line arguments.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |