RISA
|
Each ReceiverModule is bound to one DetectorModule. More...
#include <ReceiverModule.h>
Public Member Functions | |
ReceiverModule (const std::string &address, const std::string &configPath, const int moduleID, std::vector< unsigned short > &buffer, OnlineReceiverNotification ¬ification) | |
auto | run () -> void |
auto | stop () -> void |
Private Member Functions | |
auto | readConfig (const std::string &configFile) -> bool |
Private Attributes | |
UDPServer | udpServer_ |
the class, which performs the UDP transaction More... | |
std::vector< unsigned short > & | buffer_ |
the input buffer, which stores a configurable amount of sinograms More... | |
std::size_t | lastIndex_ {0u} |
identifier to check, whether a packet was lost More... | |
int | numberOfDetectorModules_ |
the number of detector modules More... | |
int | numberOfDetectors_ |
the number of detectors in the fan beam sinogram More... | |
int | numberOfProjections_ |
the number of projections in the fan beam sinogram More... | |
int | numberOfProjectionsPerPacket_ |
the number of projections per packet More... | |
int | numberOfDetectorsPerModule_ |
the number of detectors per module More... | |
int | port_ |
the port, to which the object listens More... | |
std::string | address_ |
the ip address of the sender More... | |
transportProtocol | transportProtocol_ |
specifies the prefered transport protocol More... | |
int | timeout_ |
after this duration in s, the connection is closed More... | |
OnlineReceiverNotification & | notification_ |
bool | run_ |
int | moduleID_ |
unsigned int | bufferSize_ |
Each ReceiverModule is bound to one DetectorModule.
It receives the packets via an interconnection network. So far, UDP and TCP transport protocols are implemented. The number of projections per packet needs to be a multiple of the number of projections per sinogram
Definition at line 47 of file ReceiverModule.h.
risa::ReceiverModule::ReceiverModule | ( | const std::string & | address, |
const std::string & | configPath, | ||
const int | moduleID, | ||
std::vector< unsigned short > & | buffer, | ||
OnlineReceiverNotification & | notification | ||
) |
Definition at line 37 of file ReceiverModule.cpp.
|
private |
Definition at line 118 of file ReceiverModule.cpp.
auto risa::ReceiverModule::run | ( | ) | -> void |
Definition at line 56 of file ReceiverModule.cpp.
|
inline |
Definition at line 53 of file ReceiverModule.h.
|
private |
the ip address of the sender
Definition at line 70 of file ReceiverModule.h.
|
private |
the input buffer, which stores a configurable amount of sinograms
Definition at line 59 of file ReceiverModule.h.
|
private |
Definition at line 80 of file ReceiverModule.h.
|
private |
identifier to check, whether a packet was lost
Definition at line 61 of file ReceiverModule.h.
|
private |
Definition at line 78 of file ReceiverModule.h.
|
private |
Definition at line 74 of file ReceiverModule.h.
|
private |
the number of detector modules
Definition at line 63 of file ReceiverModule.h.
|
private |
the number of detectors in the fan beam sinogram
Definition at line 64 of file ReceiverModule.h.
|
private |
the number of detectors per module
Definition at line 67 of file ReceiverModule.h.
|
private |
the number of projections in the fan beam sinogram
Definition at line 65 of file ReceiverModule.h.
|
private |
the number of projections per packet
Definition at line 66 of file ReceiverModule.h.
|
private |
the port, to which the object listens
Definition at line 69 of file ReceiverModule.h.
|
private |
Definition at line 76 of file ReceiverModule.h.
|
private |
after this duration in s, the connection is closed
Definition at line 72 of file ReceiverModule.h.
|
private |
specifies the prefered transport protocol
Definition at line 71 of file ReceiverModule.h.
|
private |
the class, which performs the UDP transaction
Definition at line 57 of file ReceiverModule.h.