|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nachos.ag.AutoGrader
public class AutoGrader
The default autograder. Loads the kernel, and then tests it using Kernel.selfTest().
Constructor Summary | |
---|---|
AutoGrader()
Allocate a new autograder. |
Method Summary | |
---|---|
boolean |
canReceivePacket(Privilege privilege)
Request permission to receive a packet. |
boolean |
canSendPacket(Privilege privilege)
Request permission to send a packet. |
Coff |
createLoader(OpenFile file)
Notify the autograder that a COFF loader is being constructed for the specified file. |
boolean |
exceptionHandler(Privilege privilege)
Notify the autograder that a user program executed a syscall instruction. |
void |
finishingCurrentThread()
Notify the autograder that the current thread has finished. |
void |
readyThread(KThread thread)
Notify the autograder that the specified thread has moved to the ready state. |
void |
runningThread(KThread thread)
Notify the autograder that the specified thread is now running. |
void |
runProcessor(Privilege privilege)
Notify the autograder that Processor.run() was invoked. |
void |
setIdleThread(KThread idleThread)
Notify the autograder that the specified thread is the idle thread. |
void |
start(Privilege privilege)
Start this autograder. |
void |
timerInterrupt(Privilege privilege,
long time)
Notify the autograder that a timer interrupt occurred and was handled by software if a timer interrupt handler was installed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoGrader()
Method Detail |
---|
public void start(Privilege privilege)
privilege
- encapsulates privileged access to the Nachos
machine.public void setIdleThread(KThread idleThread)
idleThread
- the idle thread.public void readyThread(KThread thread)
thread
- the thread that has been added to the ready set.public void runningThread(KThread thread)
thread
- the thread that is now running.public void finishingCurrentThread()
public void timerInterrupt(Privilege privilege, long time)
privilege
- proves the authenticity of this call.time
- the actual time at which the timer interrupt was
issued.public boolean exceptionHandler(Privilege privilege)
privilege
- proves the authenticity of this call.
public void runProcessor(Privilege privilege)
privilege
- proves the authenticity of this call.public Coff createLoader(OpenFile file)
file
- the executable file being loaded.
public boolean canSendPacket(Privilege privilege)
privilege
- proves the authenticity of this call.
public boolean canReceivePacket(Privilege privilege)
privilege
- proves the authenticity of this call.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |