avrora.sim.platform
Interface PlatformFactory

All Known Implementing Classes:
DefaultPlatform.Factory, Mica2.Factory, Seres.Factory

public interface PlatformFactory

The PlatformFactory interface represents a factory-style interface where an implementor can create multiple platforms of the same type for a given program.


Method Summary
 Platform newPlatform(int id, InterpreterFactory f, Program p)
          The newPlatform() method creates a new instance of the platform with the specified ID number, using the interpreter created by the given interpreter factory, containing the specified progarm.
 

Method Detail

newPlatform

public Platform newPlatform(int id,
                            InterpreterFactory f,
                            Program p)
The newPlatform() method creates a new instance of the platform with the specified ID number, using the interpreter created by the given interpreter factory, containing the specified progarm.

Parameters:
id - the ID number of the platform to create
f - the interpreter factory capable of creating a new interpreter for this platform
p - the program to load into the platform
Returns:
a new instance of the Platform interface for this platform