bug fix: signal strenghts may not be registered
This commit is contained in:
parent
87adbcb3d5
commit
9611bd100e
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user