edu.cmu.emulator
Class EmuClassLoader

java.lang.Object
  extended by edu.cmu.emulator.EmuClassLoader

public class EmuClassLoader
extends Object

The class that loads the user defined classes into the system at run time.


Field Summary
(package private)  String[][] argList
           
(package private)  Class[] classes
           
(package private)  String[] classList
           
(package private)  Emulator emulator
           
(package private)  Method[] methods
           
(package private)  String[] urlList
           
 
Constructor Summary
EmuClassLoader(Emulator emulator, String[] urlList, String[] classList, String[][] argList)
          Constructor.
 
Method Summary
 void load()
          Loads the specified user defined classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emulator

Emulator emulator

urlList

String[] urlList

classList

String[] classList

argList

String[][] argList

classes

Class[] classes

methods

Method[] methods
Constructor Detail

EmuClassLoader

public EmuClassLoader(Emulator emulator,
                      String[] urlList,
                      String[] classList,
                      String[][] argList)
Constructor. Takes in a list of URLs and classes to be loaded.

Method Detail

load

public void load()
Loads the specified user defined classes. The list of classes and the URLs which specify the search paths are parsed through and each class is loaded and the start method is invoked. All user defined classes should implement the EmulatorUserClass.

See Also:
EmulatorUserClass


Copyright © 2013. All Rights Reserved.