added abstraction level descriptions

This commit is contained in:
fros4943 2008-02-07 10:34:45 +00:00
parent d0b9384ab0
commit e64093c72f
3 changed files with 13 additions and 10 deletions

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * 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; package se.sics.cooja.contikimote;
@ -65,6 +65,7 @@ import se.sics.cooja.dialogs.MessageList;
* @author Fredrik Osterlind * @author Fredrik Osterlind
*/ */
@ClassDescription("Contiki Mote Type") @ClassDescription("Contiki Mote Type")
@AbstractionLevelDescription("OS level")
public class ContikiMoteType implements MoteType { public class ContikiMoteType implements MoteType {
private static Logger logger = Logger.getLogger(ContikiMoteType.class); 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 * name to addresses mappings. The mappings are added
* to the given properties object. * to the given properties object.
* *

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* *
*/ */
package se.sics.cooja.motes; package se.sics.cooja.motes;
@ -42,11 +42,12 @@ import se.sics.cooja.*;
import se.sics.cooja.interfaces.Position; import se.sics.cooja.interfaces.Position;
/** /**
* *
* *
* @author Fredrik Osterlind, Thiemo Voigt * @author Fredrik Osterlind, Thiemo Voigt
*/ */
@ClassDescription("Disturber Mote Type") @ClassDescription("Disturber Mote Type")
@AbstractionLevelDescription("Application level")
public class DisturberMoteType implements MoteType { public class DisturberMoteType implements MoteType {
private static Logger logger = Logger.getLogger(DisturberMoteType.class); private static Logger logger = Logger.getLogger(DisturberMoteType.class);
@ -118,7 +119,7 @@ public class DisturberMoteType implements MoteType {
/* TV: add next two for interfaces */ /* TV: add next two for interfaces */
/** /**
* Returns all mote interfaces of this mote type * Returns all mote interfaces of this mote type
* *
* @return All mote interfaces * @return All mote interfaces
*/ */
public Vector<Class<? extends MoteInterface>> getMoteInterfaces() { public Vector<Class<? extends MoteInterface>> getMoteInterfaces() {
@ -127,7 +128,7 @@ public class DisturberMoteType implements MoteType {
/** /**
* Set mote interfaces of this mote type * Set mote interfaces of this mote type
* *
* @param moteInterfaces * @param moteInterfaces
* New mote interfaces * New mote interfaces
*/ */

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * 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; package se.sics.cooja.motes;
@ -41,6 +41,7 @@ import org.jdom.Element;
import se.sics.cooja.*; import se.sics.cooja.*;
@ClassDescription("Dummy Mote Type") @ClassDescription("Dummy Mote Type")
@AbstractionLevelDescription("Application level")
public class DummyMoteType implements MoteType { public class DummyMoteType implements MoteType {
private static Logger logger = Logger.getLogger(DummyMoteType.class); private static Logger logger = Logger.getLogger(DummyMoteType.class);
@ -59,9 +60,9 @@ public class DummyMoteType implements MoteType {
public Mote generateMote(Simulation simulation) { public Mote generateMote(Simulation simulation) {
return new DummyMote(this, simulation); return new DummyMote(this, simulation);
} }
public boolean configureAndInit(JFrame parentFrame, Simulation simulation, boolean visAvailable) { public boolean configureAndInit(JFrame parentFrame, Simulation simulation, boolean visAvailable) {
if (identifier == null) { if (identifier == null) {
// Create unique identifier // Create unique identifier
int counter = 0; int counter = 0;
@ -80,7 +81,7 @@ public class DummyMoteType implements MoteType {
} }
} }
} }
if (description == null) { if (description == null) {
// Create description // Create description
description = "Dummy Mote Type #" + counter; description = "Dummy Mote Type #" + counter;