avrora.sim
Class GenInterpreter.Factory

java.lang.Object
  extended byavrora.sim.InterpreterFactory
      extended byavrora.sim.GenInterpreter.Factory
Enclosing class:
GenInterpreter

public static final class GenInterpreter.Factory
extends InterpreterFactory

The Factory() class implements an interpreter factory that can create a new interpreter for a new simulator instance with the given program.


Constructor Summary
GenInterpreter.Factory()
           
 
Method Summary
 BaseInterpreter newInterpreter(Simulator s, Program p, MicrocontrollerProperties pr)
          The newInterpreter() method creates a new interpreter given the simulator, the program, and the properties of the microcontroller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenInterpreter.Factory

public GenInterpreter.Factory()
Method Detail

newInterpreter

public BaseInterpreter newInterpreter(Simulator s,
                                      Program p,
                                      MicrocontrollerProperties pr)
Description copied from class: InterpreterFactory
The newInterpreter() method creates a new interpreter given the simulator, the program, and the properties of the microcontroller.

Specified by:
newInterpreter in class InterpreterFactory
Parameters:
s - the simulator for which the interpreter is being created
p - the program to load into the interpreter
pr - the properties of the microcontroller
Returns:
a new instance of the BaseInterpreter class for the program