jmce - 1_02

jmce.sim.cpu
Class AbstractLoader

java.lang.Object
  extended by jmce.sim.cpu.AbstractLoader
All Implemented Interfaces:
Loader
Direct Known Subclasses:
BinaryLoader, IntelLoader, MotorolaLoader, ZXSnapshot

public abstract class AbstractLoader
extends java.lang.Object
implements Loader

Abstact implementation for loader

Since:
1.00
Version:
1.00
Author:
Mario Viara

Constructor Summary
AbstractLoader(java.lang.String extension)
           
 
Method Summary
 boolean isFileSupported(java.lang.String name)
          Test if the interface support one file.
 void setCPU(CPU cpu)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jmce.sim.Loader
load
 

Constructor Detail

AbstractLoader

public AbstractLoader(java.lang.String extension)
Method Detail

isFileSupported

public boolean isFileSupported(java.lang.String name)
Description copied from interface: Loader
Test if the interface support one file.

Specified by:
isFileSupported in interface Loader
Parameters:
name - - File to be tested.
Returns:
true if the file is supported.

setCPU

public void setCPU(CPU cpu)
Specified by:
setCPU in interface Loader

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

jmce - 1_02