mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-20 10:35:34 +00:00
Merge pull request #1869 from nfi/cooja-export-simulations-with-wismote-and-z1
Added support in Cooja to include Wismote and Z1 motes when exporting simulations
This commit is contained in:
commit
6aa5890e73
@ -222,13 +222,20 @@ public class ExecuteJAR {
|
||||
|
||||
/* Check dependencies: mote type */
|
||||
for (MoteType t: simulation.getMoteTypes()) {
|
||||
if (!t.getClass().getName().contains("SkyMoteType")) {
|
||||
throw new RuntimeException(
|
||||
"You simulation contains the mote type: " + Cooja.getDescriptionOf(t.getClass()) + "\n" +
|
||||
"Only the Sky Mote Type is currently supported.\n"
|
||||
);
|
||||
}
|
||||
logger.info("Checking mote types: '" + Cooja.getDescriptionOf(t.getClass()) + "'");
|
||||
if (t.getClass().getName().endsWith("SkyMoteType")) {
|
||||
continue;
|
||||
}
|
||||
if (t.getClass().getName().endsWith("WismoteMoteType")) {
|
||||
continue;
|
||||
}
|
||||
if (t.getClass().getName().endsWith("Z1MoteType")) {
|
||||
continue;
|
||||
}
|
||||
throw new RuntimeException(
|
||||
"Your simulation contains the mote type: " + Cooja.getDescriptionOf(t.getClass()) + "\n" +
|
||||
"Only the Sky, Wismote, and Z1 mote types are currently supported.\n"
|
||||
);
|
||||
}
|
||||
|
||||
/* Check dependencies: Contiki Control Plugin */
|
||||
|
Loading…
Reference in New Issue
Block a user