* @param feed The AIS feed for which to calculate the coverage area.
* @since 1.0
*/
private void calculateCoveragePerimiter() {
NavCalculator nav = new NavCalculator();
AISMsg msg;
// Calculate the distances from each target to the base station
double distance;
Position targetPosition;
double key;
for (Target t : getTargets()) {
if (t.getType() == Target.TARGET_BASESTN) {
continue;
}
targetPosition = t.getPosition();
if (targetPosition == null) {
if (targetPosition == null) {
msg = (t.getLatestDynamicMsg() == null
? t.getLatestMessage()
: t.getLatestDynamicMsg());
if (msg.getPosition() != null) {
targetPosition = msg.getPosition();
} else {
continue;
}
}
}