amsa-code / risky

Tools for analyzing timestamped position data particularly vessel position reports from AIS.
Apache License 2.0
13 stars 9 forks source link

Declarative interface HasStatus would ease position handling #141

Closed foosmate closed 1 year ago

foosmate commented 1 year ago

Since there are multiple classes providing a NavigationalStatus it would ease the message handling if there is an interface like this ...

public interface HasStatus {
    NavigationalStatus getNavigationalStatus();
}

public class AisPositionA implements AisPosition, HasCommunications, HasStatus {
...
}

public class AisPositionGPS implements AisPosition, HasStatus {
...
}
davidmoten commented 1 year ago

Sounds fine, will do.

davidmoten commented 1 year ago

This is in release 0.6.15 on Maven Central now.