bug fix: signal strenghts may not be registered
This commit is contained in:
parent
87adbcb3d5
commit
9611bd100e
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue