Project

General

Profile

Epic #2

Updated by Fernando Jose Capeletto Neto over 1 year ago

TrackHandler shall be able to consume NMEA messages published from Kafka Topic, decode those messages and create AIS Tracks according to each AIS message type. 
 Those tracks shall be persisted in the TrackHandler database. 
 TrackHandler shall publish TrackHandlerMessages to CMS through Kafka, informing the reception/decoding of those NMEA messages and about each AIS Track creation. 
 The following messages shall be published: 
 * One message to the SYSTEM_ALERT_TOPIC informing how many NMEA messages were was received. 
 * One message to the SYSTEM_ALERT_TOPIC informing how many AIS Tracks were was created. 
 * <N> messages to the SYSTEM_ALERT_TOPIC informing the MMSI and the AIS Message type processed. 
 * <N> messages to the AISMESSAGE_TOPIC AIS_TOPIC containing the attributes from each of <N> AIS Messages received. 

 When receiving an AIS Message for a given AISTrack, two situations can occur: 

 * A new one will be created if about an already existing AIS Track in the AISTrack has not existed. CMS: 
 * If In case of the AISTrack already were in same AIS Type message, the system, for each AISTrack message received, the respective AIS Track attributes contained in that message will shall be updated. (The message type attribute will represent, therefore, 
 * For a different AIS Type message, the type of attributes that already contain information from previous messages shall be updated, and the last non-coincident attributes shall be added to the AIS message received for that AISTrack) 


 Track structure. (Data-merge Capability) 
 * When an AISTrack is created (or receives an update), a message will In this situation 2 messages shall be published to AISMESSAGE_TOPIC containing a pair of AIS_TOPIC :  
 ** The updated AISTrack original AIS Message received as described above, and 
 ** One special AIS message (with a dedicated Type) representing the current composition (data-merged) from the different AIS Messages received for that AISTrack so far.  
 ** A list of all AISTrackMessages received for that AISTrack. 


  


 == Epic Branch == 
 https://gitlab.com/fernando.engineer/cms/TrackHandler/-/tree/20230328_systemalerttopic_aismessages

Back