avrora.sim.platform
Class Mica2

java.lang.Object
  extended byavrora.sim.platform.Mica2
All Implemented Interfaces:
Platform, PlatformFactory

public class Mica2
extends java.lang.Object
implements Platform, PlatformFactory

The Mica2 class is an implementation of the Platform interface that represents both a specific microcontroller and the devices connected to it. This implementation therefore uses the ATMega128L microcontroller and uses LED and Radio devices, etc. The Mica2 class differs from Mica in that it runs the ATMega128L not in compatibility mode. In addition, the CC1000 radio implementation is installed on the Mica2.


Nested Class Summary
protected  class Mica2.LED
           
 
Field Summary
protected  Microcontroller mcu
           
protected  Radio radio
           
 
Constructor Summary
Mica2()
           
 
Method Summary
protected  void addDevices()
           
 Microcontroller getMicrocontroller()
           
 Platform newPlatform(Program p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mcu

protected final Microcontroller mcu

radio

protected Radio radio
Constructor Detail

Mica2

public Mica2()
Method Detail

getMicrocontroller

public Microcontroller getMicrocontroller()
Specified by:
getMicrocontroller in interface Platform

newPlatform

public Platform newPlatform(Program p)
Specified by:
newPlatform in interface PlatformFactory

addDevices

protected void addDevices()