From b059155e516f59258eb6ace314157c6dfbaa1d14 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 26 Feb 2009 13:48:08 +0000 Subject: [PATCH] added mote relation interface to emulated sky nodes --- .../apps/mspsim/src/se/sics/cooja/mspmote/SkyMote.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/SkyMote.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/SkyMote.java index 2973f5b96..c5ca127d7 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/SkyMote.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/SkyMote.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: SkyMote.java,v 1.11 2009/02/18 12:08:37 fros4943 Exp $ + * $Id: SkyMote.java,v 1.12 2009/02/26 13:48:08 fros4943 Exp $ */ package se.sics.cooja.mspmote; @@ -117,13 +117,17 @@ public class SkyMote extends MspMote { } catch (UnknownVariableException e) { } + /* Mote relation listener */ + Mote2MoteRelations mote2moteRelation = new Mote2MoteRelations(this); + moteInterfaceHandler.addInterface(mote2moteRelation); + return moteInterfaceHandler; } public void idUpdated(int newID) { skyNode.setNodeID(newID); } - + public String toString() { MoteID moteID = getInterfaces() != null ? getInterfaces().getMoteID() : null; if (moteID != null) {