From 2a2b764ee60066767dbb515da488d27ed63d510b Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 3 Oct 2008 15:18:48 +0000 Subject: [PATCH] updated some references to old getLastLogMessages() --- .../src/se/sics/cooja/mspmote/plugins/MspStackWatcher.java | 4 ++-- .../java/se/sics/cooja/contikimote/interfaces/ContikiLog.java | 4 ++-- tools/cooja/java/se/sics/cooja/plugins/LogScriptEngine.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspStackWatcher.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspStackWatcher.java index 5e4240eec..efaf686c5 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspStackWatcher.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspStackWatcher.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: MspStackWatcher.java,v 1.3 2008/02/12 15:13:11 fros4943 Exp $ + * $Id: MspStackWatcher.java,v 1.4 2008/10/03 15:18:48 fros4943 Exp $ */ package se.sics.cooja.mspmote.plugins; @@ -109,7 +109,7 @@ public class MspStackWatcher extends VisPlugin { /*if (logObserver == null && mspMote.getInterfaces().getLog() != null) { mspMote.getInterfaces().getLog().addObserver(logObserver = new Observer() { public void update(Observable obs, Object obj) { - stackUI.addNote(mspMote.getInterfaces().getLog().getLastLogMessages()); + stackUI.addNote(mspMote.getInterfaces().getLog().getLastLogMessage()); } }); }*/ diff --git a/tools/cooja/java/se/sics/cooja/contikimote/interfaces/ContikiLog.java b/tools/cooja/java/se/sics/cooja/contikimote/interfaces/ContikiLog.java index 9f1dcec7c..4bbfb894c 100644 --- a/tools/cooja/java/se/sics/cooja/contikimote/interfaces/ContikiLog.java +++ b/tools/cooja/java/se/sics/cooja/contikimote/interfaces/ContikiLog.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ContikiLog.java,v 1.4 2008/10/03 10:39:49 fros4943 Exp $ + * $Id: ContikiLog.java,v 1.5 2008/10/03 15:18:48 fros4943 Exp $ */ package se.sics.cooja.contikimote.interfaces; @@ -60,7 +60,7 @@ import se.sics.cooja.interfaces.Log; *

* This observable is changed and notifies observers whenever a log message has * been received from the core (checked after each tick). The public method - * getLastLogMessages gives access to the last log message(s). + * getLastLogMessage gives access to the last log message. * * @author Fredrik Osterlind */ diff --git a/tools/cooja/java/se/sics/cooja/plugins/LogScriptEngine.java b/tools/cooja/java/se/sics/cooja/plugins/LogScriptEngine.java index 9a5588842..daf9e465e 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/LogScriptEngine.java +++ b/tools/cooja/java/se/sics/cooja/plugins/LogScriptEngine.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: LogScriptEngine.java,v 1.3 2008/09/22 16:18:22 joxe Exp $ + * $Id: LogScriptEngine.java,v 1.4 2008/10/03 15:18:48 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -181,7 +181,7 @@ public class LogScriptEngine { "if (obj != null) {" + " mote = obj;" + " id = mote.getInterfaces().getMoteID().getMoteID();" + - " msg = mote.getInterfaces().getLog().getLastLogMessages();" + + " msg = mote.getInterfaces().getLog().getLastLogMessage();" + " node.setMoteMsg(mote, msg);" + "} else {" + " return;" +