public void update(AisMessage19 msg19) { this.name = AisMessage.trimText(msg19.getName()); this.callsign = AisMessage.trimText(msg19.getCallsign()); this.shipType = (byte) msg19.getShipType(); this.shipTypeCargo = new ShipTypeCargo(this.shipType); this.dimensions = new AisTargetDimensions(msg19); super.update((AisMessage) msg19); }
public void update(AisMessage24 msg24) { if (msg24.getPartNumber() == 0) { this.name = AisMessage.trimText(msg24.getName()); } else { this.callsign = AisMessage.trimText(msg24.getCallsign()); this.shipType = (byte) msg24.getShipType(); this.shipTypeCargo = new ShipTypeCargo(this.shipType); this.dimensions = new AisTargetDimensions(msg24); } super.update((AisMessage) msg24); }