Jpp 20.0.0-rc.9-29-gccc23c492-D
the software that should make you happy
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
JACOUSTICS::JReceiver Struct Reference

Acoustic receiver. More...

#include <JReceiver.hh>

Inheritance diagram for JACOUSTICS::JReceiver:
JACOUSTICS::JTransceiver

Public Member Functions

 JReceiver ()
 Default constructor.
 
 JReceiver (const int id, const JVector3D &pos, const double t0_s)
 Constructor.
 
double getT0 () const
 Get time offset of clock.
 
double getT (const double t_s) const
 Get corrected time.
 
double putT (const double t_s) const
 Get uncorrected time.
 

Protected Attributes

double t0_s
 

Detailed Description

Acoustic receiver.

Definition at line 27 of file JReceiver.hh.

Constructor & Destructor Documentation

◆ JReceiver() [1/2]

JACOUSTICS::JReceiver::JReceiver ( )
inline

Default constructor.

Definition at line 34 of file JReceiver.hh.

34 :
35 t0_s(0.0)
36 {}

◆ JReceiver() [2/2]

JACOUSTICS::JReceiver::JReceiver ( const int id,
const JVector3D & pos,
const double t0_s )
inline

Constructor.

Parameters
ididentifier
posposition
t0_stime offset of clock [s]

Definition at line 46 of file JReceiver.hh.

48 :
49 JObjectID (id),
50 JPosition3D(pos),
51 t0_s (t0_s)
52 {}

Member Function Documentation

◆ getT0()

double JACOUSTICS::JReceiver::getT0 ( ) const
inline

Get time offset of clock.

Returns
time offset [s]

Definition at line 60 of file JReceiver.hh.

61 {
62 return t0_s;
63 }

◆ getT()

double JACOUSTICS::JReceiver::getT ( const double t_s) const
inline

Get corrected time.

Parameters
t_stime [s]
Returns
time [s]

Definition at line 72 of file JReceiver.hh.

73 {
74 return t_s + t0_s;
75 }

◆ putT()

double JACOUSTICS::JReceiver::putT ( const double t_s) const
inline

Get uncorrected time.

Parameters
t_stime [s]
Returns
time [s]

Definition at line 84 of file JReceiver.hh.

85 {
86 return t_s - t0_s;
87 }

Member Data Documentation

◆ t0_s

double JACOUSTICS::JReceiver::t0_s
protected

Definition at line 90 of file JReceiver.hh.


The documentation for this struct was generated from the following file: