jmce - 1_02

jmce.sim
Interface Tape

All Superinterfaces:
Hardware, Peripheral
All Known Implementing Classes:
AbstractTape, Tape, Tape, TapeFile

public interface Tape
extends Peripheral

Interface to rappresent a tape reader / writer.

This version only support the read operation.

Since:
1.01
Version:
1.01
Author:
Mario Viara

Method Summary
 void addTapeEventListener(TapeEventListener l)
           
 java.lang.String getConfig()
           
 boolean getPower()
           
 boolean isPlay()
           
 TapePulse nextPulse()
           
 void play()
           
 void rec()
           
 void rewind()
           
 void setConfig(java.lang.String name)
           
 void setPower(boolean power)
           
 void stop()
           
 
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, reset, setHardware, setHardware, setName
 

Method Detail

addTapeEventListener

void addTapeEventListener(TapeEventListener l)

rewind

void rewind()
            throws SIMException
Throws:
SIMException

isPlay

boolean isPlay()

play

void play()
          throws SIMException
Throws:
SIMException

rec

void rec()
         throws SIMException
Throws:
SIMException

stop

void stop()
          throws SIMException
Throws:
SIMException

nextPulse

TapePulse nextPulse()

setConfig

void setConfig(java.lang.String name)
               throws SIMException
Throws:
SIMException

getConfig

java.lang.String getConfig()
                           throws SIMException
Throws:
SIMException

setPower

void setPower(boolean power)
              throws SIMException
Throws:
SIMException

getPower

boolean getPower()
                 throws SIMException
Throws:
SIMException

jmce - 1_02