eu.keep.emulatorarchive
Interface EmulatorPackageDAO

All Known Implementing Classes:
H2EmulatorPackageDAO

public interface EmulatorPackageDAO

Interface definition for DAOs for emulator packages.

Author:
David Michel

Method Summary
 List<Integer> getEmuID(String hardwareName)
          Returns the emulator ID based on a given target hardware type
 int getEmulatorCount()
          Count the number of emulator available
 String getEmulatorDescription(Integer emuID)
          Returns the emulator description
 String getEmulatorExecDir(Integer emuID)
          Returns the name of the directory in which the emulator executable is located
 String getEmulatorExecName(Integer emuID)
          Returns the emulator executable name
 String getEmulatorExecType(Integer emuID)
          Returns the executable type associated with an emulator
 List<Integer> getEmulatorIDs()
          Returns the IDs of all available emulator packages
 String getEmulatorInstructions(Integer emuID)
          Returns the user instructions for an emulator
 String getEmulatorLanguageId(Integer emuID)
          Returns the emulator language name
 String getEmulatorName(Integer emuID)
          Returns the emulator name
 InputStream getEmulatorPackage(Integer emuID)
          Returns the executable package associated with an emulator
 String getEmulatorPackageFileName(Integer emuID)
          Returns the package file name associated with an emulator
 String getEmulatorPackageType(Integer emuID)
          Returns the package type associated with an emulator
 String getEmulatorVersion(Integer emuID)
          Returns the emulator version
 List<String> getHardware(Integer emuID)
          Returns the list of formats supported by an emulator
 List<String> getHardwareIDs()
          Returns a list of hardware supported by the available emulators
 List<String> getHardwareNames()
          Returns a list of hardware names supported by the available emulators
 List<String> getImageFormats(Integer emuID)
          Returns the list of formats supported by an emulator
 EmuLanguageList getLanguages()
          Returns the languages from the Languages table
 String getPackageVersion(Integer emuID)
          Returns the package file name associated with an emulator
 

Method Detail

getPackageVersion

String getPackageVersion(Integer emuID)
Returns the package file name associated with an emulator

Parameters:
emuID - emulator ID
Returns:
String the package version

getEmulatorCount

int getEmulatorCount()
Count the number of emulator available

Returns:
List of Integers

getEmulatorIDs

List<Integer> getEmulatorIDs()
Returns the IDs of all available emulator packages

Returns:
List of Integers

getHardwareIDs

List<String> getHardwareIDs()
Returns a list of hardware supported by the available emulators

Returns:
Set of hardware

getHardwareNames

List<String> getHardwareNames()
Returns a list of hardware names supported by the available emulators

Returns:
List of hardware names

getEmulatorPackage

InputStream getEmulatorPackage(Integer emuID)
Returns the executable package associated with an emulator

Parameters:
emuID - emulator ID
Returns:
InputStream A handle to the binary

getEmulatorPackageFileName

String getEmulatorPackageFileName(Integer emuID)
Returns the package file name associated with an emulator

Parameters:
emuID - emulator ID
Returns:
String the emulator package file name

getEmulatorName

String getEmulatorName(Integer emuID)
Returns the emulator name

Parameters:
emuID - emulator ID
Returns:
String the executable type

getEmulatorVersion

String getEmulatorVersion(Integer emuID)
Returns the emulator version

Parameters:
emuID - emulator ID
Returns:
String the emulator version

getEmulatorLanguageId

String getEmulatorLanguageId(Integer emuID)
Returns the emulator language name

Parameters:
emuID - emulator ID
Returns:
EmulatorLanguage the language object associated with this emulator

getEmulatorDescription

String getEmulatorDescription(Integer emuID)
Returns the emulator description

Parameters:
emuID - emulator ID
Returns:
String the emulator description

getEmulatorExecType

String getEmulatorExecType(Integer emuID)
Returns the executable type associated with an emulator

Parameters:
emuID - emulator ID
Returns:
String the executable type

getEmulatorExecName

String getEmulatorExecName(Integer emuID)
Returns the emulator executable name

Parameters:
emuID - emulator ID
Returns:
String representing the executable name

getEmulatorExecDir

String getEmulatorExecDir(Integer emuID)
Returns the name of the directory in which the emulator executable is located

Parameters:
emuID - emulator ID
Returns:
String representing the directory

getImageFormats

List<String> getImageFormats(Integer emuID)
Returns the list of formats supported by an emulator

Parameters:
emuID - emulator ID
Returns:
list of image format name

getHardware

List<String> getHardware(Integer emuID)
Returns the list of formats supported by an emulator

Parameters:
emuID - emulator ID
Returns:
list of hardware name

getEmulatorInstructions

String getEmulatorInstructions(Integer emuID)
Returns the user instructions for an emulator

Parameters:
emuID - emulator ID
Returns:
list of hardware name

getEmulatorPackageType

String getEmulatorPackageType(Integer emuID)
Returns the package type associated with an emulator

Parameters:
emuID - emulator ID
Returns:
String the executable type

getEmuID

List<Integer> getEmuID(String hardwareName)
Returns the emulator ID based on a given target hardware type

Parameters:
hardwareName - The type to search on
Returns:
List List of matching emulator IDs

getLanguages

EmuLanguageList getLanguages()
Returns the languages from the Languages table

Returns:
List of values from the table