|
neic-glass3
1.4.6
|
glasscore detection class More...
#include <Detection.h>

Public Member Functions | |
| CDetection () | |
| CDetection constructor. More... | |
| ~CDetection () | |
| CDetection destructor. More... | |
| bool | receiveExternalMessage (std::shared_ptr< json::Object > com) |
| CDetection communication receiving function. More... | |
| bool | processDetectionMessage (std::shared_ptr< json::Object > detectionMessage) |
| Process detection message. More... | |
glasscore detection class
The CDetection class is a class that encapsulates the processing of a detection message from an external source, including parsing the message, creating a hypo from the message, and adding the hypo to the hypo list.
| glasscore::CDetection::CDetection | ( | ) |
CDetection constructor.
| glasscore::CDetection::~CDetection | ( | ) |
CDetection destructor.
| bool glasscore::CDetection::processDetectionMessage | ( | std::shared_ptr< json::Object > | detectionMessage | ) |
Process detection message.
Receives an incoming 'Detection' type message and does on of two things. First it checks to see if there is another hypocenter that is near enough in space and time to be considered to be the same event. If so, it schedules the existing hypocenter for processing. If no existing hypocenter fits the information in the detection message, a new hypocenter is created and scheduled for processing.
| detectionMessage | - A pointer to a json::object containing the incoming Detection message |
| bool glasscore::CDetection::receiveExternalMessage | ( | std::shared_ptr< json::Object > | com | ) |
CDetection communication receiving function.
The function used by CDetection to receive communication (such as configuration or input data), from outside the glasscore library, or it's parent CGlass.
Supports processing Detection messages
| com | - A pointer to a json::object containing the communication. |
1.8.11