From 8de17adc2d7f51941e3b1224df74c0ef6a4c2ddd Mon Sep 17 00:00:00 2001 From: fros4943 Date: Tue, 9 Jan 2007 10:08:02 +0000 Subject: [PATCH] minor changes due to deletion of static variables --- .../cooja/java/se/sics/cooja/contikimote/ContikiMote.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMote.java b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMote.java index 980cef086..3a83cfc66 100644 --- a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMote.java +++ b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMote.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ContikiMote.java,v 1.3 2006/09/26 13:08:05 fros4943 Exp $ + * $Id: ContikiMote.java,v 1.4 2007/01/09 10:08:02 fros4943 Exp $ */ package se.sics.cooja.contikimote; @@ -278,7 +278,7 @@ public class ContikiMote implements Mote { return config; } - public boolean setConfigXML(Simulation simulation, Collection configXML) { + public boolean setConfigXML(Simulation simulation, Collection configXML, boolean visAvailable) { mySim = simulation; myState = State.ACTIVE; @@ -292,7 +292,7 @@ public class ContikiMote implements Mote { } else if (name.equals("interface_config")) { Class moteInterfaceClass = - GUI.currentGUI.tryLoadClass(this, MoteInterface.class, element.getText().trim()); + simulation.getGUI().tryLoadClass(this, MoteInterface.class, element.getText().trim()); if (moteInterfaceClass == null) { logger.fatal("Could not load mote interface class: " + element.getText().trim()); @@ -301,7 +301,7 @@ public class ContikiMote implements Mote { MoteInterface moteInterface = myInterfaceHandler.getInterfaceOfType(moteInterfaceClass); if (moteInterface != null) - moteInterface.setConfigXML(element.getChildren()); + moteInterface.setConfigXML(element.getChildren(), visAvailable); else logger.warn("Can't restore configuration for non-existing interface: " + moteInterfaceClass.getName()); }