jmce - 1_02

jmce.sim.tape
Class TapeFile

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
All Implemented Interfaces:
Hardware, Peripheral, Tape
Direct Known Subclasses:
Tape, Tape

public class TapeFile
extends AbstractTape

Tape emulator on file.

Since:
1.01
Version:
1.00
Author:
Mario Viara

Field Summary
 
Fields inherited from class jmce.sim.AbstractPeripheral
cpu
 
Constructor Summary
TapeFile()
           
TapeFile(java.lang.String name)
           
 
Method Summary
protected  void addDecoder(TapeFileDecoder decoder)
           
 java.lang.String getConfig()
           
 int getCurrentTapeData()
           
 int getNumTapeData()
           
 TapeData getTapeData()
           
 boolean isPlay()
           
 boolean isRecording()
           
 TapePulse nextPulse()
           
 void play()
           
 void rec()
           
 void reset()
          Reset the the device to the initial state.
 void rewind()
           
 void setConfig(java.lang.String config)
           
 void stop()
           
 
Methods inherited from class jmce.sim.tape.AbstractTape
addTapeEventListener, getPower, notifyPlay, notifyPower, notifyRec, notifyStop, setPower
 
Methods inherited from class jmce.sim.AbstractPeripheral
idle, registerCPU, 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, registerCPU
 
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

TapeFile

public TapeFile()

TapeFile

public TapeFile(java.lang.String name)
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 AbstractHardware
Throws:
SIMException

getTapeData

public TapeData getTapeData()

getCurrentTapeData

public int getCurrentTapeData()

getNumTapeData

public int getNumTapeData()

addDecoder

protected void addDecoder(TapeFileDecoder decoder)

getConfig

public java.lang.String getConfig()

setConfig

public void setConfig(java.lang.String config)

rewind

public void rewind()
            throws SIMException
Throws:
SIMException

play

public void play()
          throws SIMException
Throws:
SIMException

isPlay

public boolean isPlay()

isRecording

public boolean isRecording()

rec

public void rec()
         throws SIMException
Throws:
SIMException

stop

public void stop()
          throws SIMException
Throws:
SIMException

nextPulse

public TapePulse nextPulse()

jmce - 1_02