added abstraction level descriptions
This commit is contained in:
parent
d0b9384ab0
commit
e64093c72f
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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<Class<? extends MoteInterface>> getMoteInterfaces() {
|
||||
|
@ -127,7 +128,7 @@ public class DisturberMoteType implements MoteType {
|
|||
|
||||
/**
|
||||
* Set mote interfaces of this mote type
|
||||
*
|
||||
*
|
||||
* @param moteInterfaces
|
||||
* New mote interfaces
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue