Class Device
java.lang.Object
|
+----Device
- public class Device
- extends Object
-
isBusy()
- Is the device currently runing?
-
nextInterrupt()
- Retrieve the time when the next interrupt will occur
-
printStats()
- Print information about this device
-
start(Job, int)
- Start the device running job j.
-
stop()
- Stop the device, and return the Job currently running.
-
toString()
- For debugging, information about this device
toString
public String toString()
- For debugging, information about this device
- Overrides:
- toString in class Object
start
public void start(Job j,
int amt)
- Start the device running job j. For generic devices, the amt argument
is the amount of time to run, in ms. Specific devices may interpret
the argument differently.
stop
public Job stop()
- Stop the device, and return the Job currently running.
nextInterrupt
public final int nextInterrupt()
- Retrieve the time when the next interrupt will occur
isBusy
public boolean isBusy()
- Is the device currently runing?
printStats
public void printStats()
- Print information about this device