jmce - 1_02

jmce.sim
Interface Peripheral

All Superinterfaces:
Hardware
All Known Subinterfaces:
Disk, DiskController, DiskCPM, Memory, SpectrumMemory, Tape
All Known Implementing Classes:
AbstractDisk, AbstractDiskController, AbstractMemory, AbstractPeripheral, AbstractTape, ArrayMemory, AT24C16, BankedMemory, BootLoader, CombinedMemory, Console, Console, Console, Console, CTC, Delay, Device, DirDiskCPM, DiseqcI2cBus, DiseqcMotor, Display, Display, DuplicateMemory, FastMemory, FDC, FDC, FDC, Hazeltine1500, I2cBus, I8237, ImageDisk, ImageDiskCPM, JPorts, Keyboard, KeyboardMatrix, Leds, Loadable, LoadableMemory, MappedMemory, Memory, Memory, Memory, Memory128K, Memory48K, MemoryDisk, Network, NullDisk, PD765, PersistentMemory, PlainMemory, PolledSerial, Port, Ports, Ports, Ports, Printer, ReadOnlyMemory, RXTX, SAA5050, SampleTerminal, Screen, Serial, Serial, SerialFile, SerialRXTX, SIMH, Speaker, Speaker, SwingKeyboard, SysKit, Tape, Tape, TapeFile, TCPClient, TCPServer, TCPSocket, Terminal, Timer, Timer, Timer, Timer2, Uart, VIA6522, VIC6561, VIC6561, VT100, Z19

public interface Peripheral
extends Hardware

Extension to Hardware interface for Peripheral.

Peripheral are like Hardware with 2 main difference :

Version:
1.01
Author:
Mario Viara

Method Summary
 int idle()
          Must be called from the peripheral when the simulator is blocked in waiting of some event.
 void registerCPU(CPU cpu)
          Register a parent CPU for future reference.
 
Methods inherited from interface jmce.sim.Hardware
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 

Method Detail

registerCPU

void registerCPU(CPU cpu)
                 throws SIMException
Register a parent CPU for future reference.

Throws:
SIMException

idle

int idle()
         throws SIMException
Must be called from the peripheral when the simulator is blocked in waiting of some event. For example I/O completation, the simulator can use the idle time for other task.

Returns:
Number of millisecond waited. Normally the caller is blocked for not more than five ms.
Throws:
SIMException

jmce - 1_02