World Ocean Simulation System (WOSS) library
woss::ResReader Class Referenceabstract

Abstract class for channel simulator result files processing. More...

#include <res-reader.h>

Inheritance diagram for woss::ResReader:
Inheritance graph
Collaboration diagram for woss::ResReader:
Collaboration graph

Public Member Functions

 ResReader ()
 
 ResReader (const Woss *const woss)
 
virtual bool initialize ()=0
 
virtual PressurereadAvgPressure (double frequency, double tx_depth, double start_rx_depth, double start_rx_range, double end_rx_depth, double end_rx_range)=0
 
virtual PressurereadPressure (double frequency, double tx_depth, double rx_depth, double rx_range) const =0
 
virtual TimeArrreadTimeArr (double frequency, double tx_depth, double rx_depth, double rx_range) const =0
 
ResReadersetWossPtr (const Woss *const woss)
 
const Woss *const getWossPtr ()
 
ResReadersetFileName (const ::std::string &name)
 
::std::string getFileName ()
 

Protected Attributes

const Wosswoss_ptr
 
::std::string file_name
 

Detailed Description

Abstract class for channel simulator result files processing.

ResReader class has the task to read and process channel simulator result files

Constructor & Destructor Documentation

◆ ResReader() [1/2]

ResReader::ResReader ( )

ResReader default constructor

◆ ResReader() [2/2]

ResReader::ResReader ( const Woss *const  woss)

ResReader constructor

Parameters
wossconst pointer to a const Woss object

Member Function Documentation

◆ getFileName()

::std::string woss::ResReader::getFileName ( )
inline

Gets the file(s) pathname

Returns
string pathname

References file_name.

◆ getWossPtr()

const Woss *const woss::ResReader::getWossPtr ( )
inline

Gets the Woss pointer

Returns
const pointer to linked Woss object

References woss_ptr.

◆ initialize()

virtual bool woss::ResReader::initialize ( )
pure virtual

Initializes the ResReader object

Returns
true if method was successful, false otherwise

Implemented in woss::ArrAscResReader, woss::ArrBinResReader, and woss::ShdResReader.

◆ readAvgPressure()

virtual Pressure * woss::ResReader::readAvgPressure ( double  frequency,
double  tx_depth,
double  start_rx_depth,
double  start_rx_range,
double  end_rx_depth,
double  end_rx_range 
)
pure virtual

Gets the average Pressure value in given rx range-depth box

Parameters
frequencyfrequency [hZ]
tx_depthtransmitter depth [m]
start_rx_depthstart receiver depth [m]
start_rx_rangestart receiver range [m]
end_rx_depthend receiver depth [m]
end_rx_rangeend receiver range [m]
Returns
a valid Pressure value

Implemented in woss::ArrAscResReader, woss::ArrBinResReader, and woss::ShdResReader.

◆ readPressure()

virtual Pressure * woss::ResReader::readPressure ( double  frequency,
double  tx_depth,
double  rx_depth,
double  rx_range 
) const
pure virtual

Gets a Pressure value for given range, depths

Parameters
frequencyfrequency [hZ]
tx_depthtransmitter depth [m]
rx_depthreceiver depth [m]
rx_rangereceiver range [m]
Returns
a valid Pressure value

Implemented in woss::ArrAscResReader, woss::ArrBinResReader, and woss::ShdResReader.

◆ readTimeArr()

virtual TimeArr * woss::ResReader::readTimeArr ( double  frequency,
double  tx_depth,
double  rx_depth,
double  rx_range 
) const
pure virtual

Gets a TimeArr value for given range, depths

Parameters
frequencyfrequency [hZ]
tx_depthtransmitter depth [m]
rx_depthreceiver depth [m]
rx_rangereceiver range [m]
Returns
a valid Pressure value

Implemented in woss::ArrAscResReader, woss::ArrBinResReader, and woss::ShdResReader.

◆ setFileName()

ResReader & woss::ResReader::setFileName ( const ::std::string &  name)
inline

Sets the file(s) pathname

Parameters
nameconst reference to a valid pathname
Returns
reference to *this

References file_name.

Referenced by woss::BellhopWoss::initPressResReader(), and woss::BellhopWoss::initTimeArrResReader().

◆ setWossPtr()

ResReader & woss::ResReader::setWossPtr ( const Woss *const  woss)
inline

Sets the Woss pointer

Parameters
wossconst pointer to a const Woss object
Returns
reference to *this

References woss_ptr.

Member Data Documentation

◆ file_name

◆ woss_ptr


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