avrora.sim.mcu
Interface MicrocontrollerFactory
- All Superinterfaces:
- MicrocontrollerProperties
- All Known Implementing Classes:
- ATMega128L
- public interface MicrocontrollerFactory
- extends MicrocontrollerProperties
The MicrocontrollerFactory interface is implemented by a class that is capable of making
repeated copies of a particular microcontroller for use in simulation.
newMicrocontroller
public Microcontroller newMicrocontroller(int id,
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.
- 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