Merge pull request #565 from cmorty/pull/backwards

Fix backwards compatibility (and docs)
This commit is contained in:
Fredrik Österlind 2014-02-21 13:35:09 +01:00
commit 3fe2890ddf
2 changed files with 4 additions and 1 deletions

View File

@ -252,7 +252,7 @@ public class ContikiRadio extends Radio implements ContikiMoteInterface, PolledA
/** Set LQI to a value between 0 and 255.
*
* @see se.sics.cooja.interfaces.Radio#setLQI(int)
* @see org.contikios.cooja.interfaces.Radio#setLQI(int)
*/
public void setLQI(int lqi){
if(lqi<0) {

View File

@ -380,6 +380,9 @@ public void simulationFinishedLoading() {
if (destClassName == null || destClassName.isEmpty()) {
continue;
}
/* Backwards compatibility: se.sics -> org.contikios */
destClassName = destClassName.replaceFirst("^se\\.sics", "org.contikios");
Class<? extends DGRMDestinationRadio> destClass =
simulation.getCooja().tryLoadClass(this, DGRMDestinationRadio.class, destClassName);
if (destClass == null) {