From 3fc00a8bed0bed8f29904fe0709696376b3071ae Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 5 Jul 2010 16:48:55 +0000 Subject: [PATCH] minor fix to allow adding mote interfaces from configuration --- .../java/se/sics/cooja/motes/AbstractApplicationMote.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/motes/AbstractApplicationMote.java b/tools/cooja/java/se/sics/cooja/motes/AbstractApplicationMote.java index 6af72ce09..3b829fcb6 100644 --- a/tools/cooja/java/se/sics/cooja/motes/AbstractApplicationMote.java +++ b/tools/cooja/java/se/sics/cooja/motes/AbstractApplicationMote.java @@ -24,7 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: AbstractApplicationMote.java,v 1.10 2010/03/05 14:59:43 fros4943 Exp $ + * $Id: AbstractApplicationMote.java,v 1.11 2010/07/05 16:48:55 fros4943 Exp $ */ package se.sics.cooja.motes; @@ -86,6 +86,7 @@ public abstract class AbstractApplicationMote extends AbstractWakeupMote impleme public abstract void sentPacket(RadioPacket p); public AbstractApplicationMote() { + moteInterfaces = new MoteInterfaceHandler(this, moteType.getMoteInterfaceClasses()); } public AbstractApplicationMote(MoteType moteType, Simulation sim) { @@ -155,7 +156,6 @@ public abstract class AbstractApplicationMote extends AbstractWakeupMote impleme Collection configXML, boolean visAvailable) { this.simulation = simulation; this.memory = new SectionMoteMemory(new Properties()); - moteInterfaces = new MoteInterfaceHandler(this, moteType.getMoteInterfaceClasses()); moteInterfaces.getRadio().addObserver(radioDataObserver); for (Element element : configXML) {