avrora.sim.mcu
Class ATMega16.Factory

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

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


Constructor Summary
ATMega16.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

ATMega16.Factory

public ATMega16.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