jmce - 1_02

jmce.sinclair.spectrum
Class Tape

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.AbstractPeripheral
          extended by jmce.sim.tape.AbstractTape
              extended by jmce.sim.tape.TapeFile
                  extended by jmce.sinclair.spectrum.Tape
All Implemented Interfaces:
CycleListener, Hardware, Peripheral, Tape

public class Tape
extends TapeFile
implements CycleListener

Tape interface for sinclair spectrum.

Since:
1.02
Version:
1.00
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.sim.AbstractPeripheral
cpu
 
Constructor Summary
Tape()
           
 
Method Summary
 void cycle(int n)
          Cycle listener.
 void registerCPU(CPU cpu)
          Register a parent CPU for future reference.
 void reset()
          Reset the the device to the initial state.
 
Methods inherited from class jmce.sim.tape.TapeFile
addDecoder, getConfig, getCurrentTapeData, getNumTapeData, getTapeData, isPlay, isRecording, nextPulse, play, rec, rewind, setConfig, stop
 
Methods inherited from class jmce.sim.tape.AbstractTape
addTapeEventListener, getPower, notifyPlay, notifyPower, notifyRec, notifyStop, setPower
 
Methods inherited from class jmce.sim.AbstractPeripheral
idle, setIdle, setLive
 
Methods inherited from class jmce.sim.AbstractHardware
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, setHardware, setHardware, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jmce.sim.Peripheral
idle
 
Methods inherited from interface jmce.sim.Hardware
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, setHardware, setHardware, setName
 

Constructor Detail

Tape

public Tape()
Method Detail

reset

public void reset()
           throws SIMException
Description copied from interface: Hardware
Reset the the device to the initial state. This method will be called after init.

Specified by:
reset in interface Hardware
Overrides:
reset in class TapeFile
Throws:
SIMException

registerCPU

public void registerCPU(CPU cpu)
                 throws SIMException
Description copied from interface: Peripheral
Register a parent CPU for future reference.

Specified by:
registerCPU in interface Peripheral
Overrides:
registerCPU in class AbstractPeripheral
Throws:
SIMException

cycle

public void cycle(int n)
           throws SIMException
Description copied from interface: CycleListener
Cycle listener. This type of listener is very time consuming and must be used only when necessary because can have great impact on the simulator performance.

Specified by:
cycle in interface CycleListener
Parameters:
n - - The number of microprocessor cycle elapsed from the last call.
Throws:
SIMException
See Also:
CPU.addCycleListener(jmce.sim.CycleListener)

jmce - 1_02