avrora.sim.mcu
Class ATMega32.Factory

java.lang.Object
  extended byavrora.sim.mcu.ATMega32.Factory
All Implemented Interfaces:
MicrocontrollerFactory
Enclosing class:
ATMega32

public static class ATMega32.Factory
extends java.lang.Object
implements MicrocontrollerFactory


Constructor Summary
ATMega32.Factory()
           
 
Method Summary
 Microcontroller newMicrocontroller(int id, ClockDomain cd, InterpreterFactory f, Program p)
          The newMicrocontroller() method is used to instantiate a microcontroller instance for the particular program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ATMega32.Factory

public ATMega32.Factory()
Method Detail

newMicrocontroller

public Microcontroller newMicrocontroller(int id,
                                          ClockDomain cd,
                                          InterpreterFactory f,
                                          Program p)
The newMicrocontroller() method is used to instantiate a microcontroller instance for the particular program. It will construct an instance of the Simulator class that has all the properties of this hardware device and has been initialized with the specified program.

Specified by:
newMicrocontroller in interface MicrocontrollerFactory
Parameters:
p - the program to load onto the microcontroller
Returns:
a Microcontroller instance that represents the specific hardware device with the program loaded onto it