From e64093c72ff5ed739a0d292ff84a52908694c6a1 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 7 Feb 2008 10:34:45 +0000 Subject: [PATCH] added abstraction level descriptions --- .../java/se/sics/cooja/contikimote/ContikiMoteType.java | 5 +++-- .../java/se/sics/cooja/motes/DisturberMoteType.java | 9 +++++---- tools/cooja/java/se/sics/cooja/motes/DummyMoteType.java | 9 +++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java index 9286cf0ab..9a0e33942 100644 --- a/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java +++ b/tools/cooja/java/se/sics/cooja/contikimote/ContikiMoteType.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ContikiMoteType.java,v 1.22 2007/11/20 04:16:13 fros4943 Exp $ + * $Id: ContikiMoteType.java,v 1.23 2008/02/07 10:34:45 fros4943 Exp $ */ package se.sics.cooja.contikimote; @@ -65,6 +65,7 @@ import se.sics.cooja.dialogs.MessageList; * @author Fredrik Osterlind */ @ClassDescription("Contiki Mote Type") +@AbstractionLevelDescription("OS level") public class ContikiMoteType implements MoteType { private static Logger logger = Logger.getLogger(ContikiMoteType.class); @@ -470,7 +471,7 @@ public class ContikiMoteType implements MoteType { } /** - * Parses specified parse command output for variable + * Parses specified parse command output for variable * name to addresses mappings. The mappings are added * to the given properties object. * diff --git a/tools/cooja/java/se/sics/cooja/motes/DisturberMoteType.java b/tools/cooja/java/se/sics/cooja/motes/DisturberMoteType.java index 6c91b007b..5110532a4 100644 --- a/tools/cooja/java/se/sics/cooja/motes/DisturberMoteType.java +++ b/tools/cooja/java/se/sics/cooja/motes/DisturberMoteType.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * + * */ package se.sics.cooja.motes; @@ -42,11 +42,12 @@ import se.sics.cooja.*; import se.sics.cooja.interfaces.Position; /** - * + * * * @author Fredrik Osterlind, Thiemo Voigt */ @ClassDescription("Disturber Mote Type") +@AbstractionLevelDescription("Application level") public class DisturberMoteType implements MoteType { private static Logger logger = Logger.getLogger(DisturberMoteType.class); @@ -118,7 +119,7 @@ public class DisturberMoteType implements MoteType { /* TV: add next two for interfaces */ /** * Returns all mote interfaces of this mote type - * + * * @return All mote interfaces */ public Vector> getMoteInterfaces() { @@ -127,7 +128,7 @@ public class DisturberMoteType implements MoteType { /** * Set mote interfaces of this mote type - * + * * @param moteInterfaces * New mote interfaces */ diff --git a/tools/cooja/java/se/sics/cooja/motes/DummyMoteType.java b/tools/cooja/java/se/sics/cooja/motes/DummyMoteType.java index 78fa3fcea..80f6deb19 100644 --- a/tools/cooja/java/se/sics/cooja/motes/DummyMoteType.java +++ b/tools/cooja/java/se/sics/cooja/motes/DummyMoteType.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: DummyMoteType.java,v 1.3 2007/03/23 23:34:33 fros4943 Exp $ + * $Id: DummyMoteType.java,v 1.4 2008/02/07 10:34:45 fros4943 Exp $ */ package se.sics.cooja.motes; @@ -41,6 +41,7 @@ import org.jdom.Element; import se.sics.cooja.*; @ClassDescription("Dummy Mote Type") +@AbstractionLevelDescription("Application level") public class DummyMoteType implements MoteType { private static Logger logger = Logger.getLogger(DummyMoteType.class); @@ -59,9 +60,9 @@ public class DummyMoteType implements MoteType { public Mote generateMote(Simulation simulation) { return new DummyMote(this, simulation); } - + public boolean configureAndInit(JFrame parentFrame, Simulation simulation, boolean visAvailable) { - + if (identifier == null) { // Create unique identifier int counter = 0; @@ -80,7 +81,7 @@ public class DummyMoteType implements MoteType { } } } - + if (description == null) { // Create description description = "Dummy Mote Type #" + counter;