Merge pull request #565 from cmorty/pull/backwards
Fix backwards compatibility (and docs)
This commit is contained in:
commit
3fe2890ddf
@ -252,7 +252,7 @@ public class ContikiRadio extends Radio implements ContikiMoteInterface, PolledA
|
|||||||
|
|
||||||
/** Set LQI to a value between 0 and 255.
|
/** 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){
|
public void setLQI(int lqi){
|
||||||
if(lqi<0) {
|
if(lqi<0) {
|
||||||
|
@ -380,6 +380,9 @@ public void simulationFinishedLoading() {
|
|||||||
if (destClassName == null || destClassName.isEmpty()) {
|
if (destClassName == null || destClassName.isEmpty()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
/* Backwards compatibility: se.sics -> org.contikios */
|
||||||
|
destClassName = destClassName.replaceFirst("^se\\.sics", "org.contikios");
|
||||||
|
|
||||||
Class<? extends DGRMDestinationRadio> destClass =
|
Class<? extends DGRMDestinationRadio> destClass =
|
||||||
simulation.getCooja().tryLoadClass(this, DGRMDestinationRadio.class, destClassName);
|
simulation.getCooja().tryLoadClass(this, DGRMDestinationRadio.class, destClassName);
|
||||||
if (destClass == null) {
|
if (destClass == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user