|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnachos.machine.Machine
public final class Machine
The master class of the simulated machine. Processes command line arguments, constructs all simulated hardware devices, and starts the grader.
Method Summary | |
---|---|
static AutoGrader |
autoGrader()
Return the autograder. |
static ElevatorBank |
bank()
Return the hardware elevator bank. |
static SerialConsole |
console()
Return the hardware console. |
static String[] |
getCommandLineArguments()
Return an array containing all command line arguments. |
static String |
getProcessClassName()
Return the name of the process class that the kernel should use. |
static String |
getShellProgramName()
Return the name of the shell program that a user-programming kernel must run. |
static void |
halt()
Print stats, and terminate Nachos. |
static Interrupt |
interrupt()
Return the hardware interrupt manager. |
static void |
main(String[] args)
Nachos main entry point. |
static NetworkLink |
networkLink()
Return the network link. |
static Processor |
processor()
Return the MIPS processor. |
static FileSystem |
stubFileSystem()
Return the stub filesystem. |
static void |
terminate()
Terminate Nachos. |
static void |
terminate(Throwable e)
Terminate Nachos as the result of an unhandled exception or error. |
static Timer |
timer()
Return the hardware timer. |
static void |
yield()
Yield to non-Nachos threads. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void main(String[] args)
args
- the command line arguments.public static void yield()
public static void terminate()
public static void terminate(Throwable e)
e
- the exception or error.public static void halt()
public static String[] getCommandLineArguments()
public static Interrupt interrupt()
public static Timer timer()
public static ElevatorBank bank()
public static Processor processor()
public static SerialConsole console()
public static FileSystem stubFileSystem()
public static NetworkLink networkLink()
public static AutoGrader autoGrader()
public static String getShellProgramName()
public static String getProcessClassName()
UserKernel.run()
,
UserProcess
,
VMProcess
,
NetProcess
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |