neic-glass3  1.4.6
Public Member Functions | List of all members
glasscore::CDetection Class Reference

glasscore detection class More...

#include <Detection.h>

Collaboration diagram for glasscore::CDetection:
Collaboration graph

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

glasscore::CDetection::CDetection ( )

CDetection constructor.

glasscore::CDetection::~CDetection ( )

CDetection destructor.

Member Function Documentation

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.

Parameters
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

Parameters
com- A pointer to a json::object containing the communication.
Returns
Returns true if the communication was handled by CDetection, false otherwise

The documentation for this class was generated from the following files: