bug fix: signal strenghts may not be registered

This commit is contained in:
Fredrik Osterlind 2011-02-23 15:39:25 +01:00
parent 87adbcb3d5
commit 9611bd100e

View File

@ -383,10 +383,16 @@ public class MRM extends AbstractRadioMedium {
}
public double getDestinationSignalStrength(Radio radio) {
if (signalStrengths.get(radio) == null) {
return Double.MIN_VALUE;
}
return signalStrengths.get(radio);
}
public double getInterferenceSignalStrength(Radio radio) {
if (signalStrengths.get(radio) == null) {
return Double.MIN_VALUE;
}
return signalStrengths.get(radio);
}
}