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

Woss class with ResReader objects for reading simulated results. More...

#include <woss.h>

Inheritance diagram for woss::WossResReader:
Inheritance graph
Collaboration diagram for woss::WossResReader:
Collaboration graph

Public Member Functions

 WossResReader ()
 
 WossResReader (const CoordZ &tx, const CoordZ &rx, const Time &start_t, const Time &end_t, double start_freq, double end_freq, double freq_step)
 
virtual bool initResReader (double curr_frequency)=0
 
- Public Member Functions inherited from woss::Woss
 Woss ()
 
 Woss (const CoordZ &tx, const CoordZ &rx, const Time &start_t, const Time &end_t, double start_freq, double end_freq, double freq_step)
 
virtual bool initialize ()=0
 
virtual bool run ()=0
 
virtual bool timeEvolve (const Time &time_value)=0
 
virtual bool isValid () const =0
 
virtual PressuregetAvgPressure (double frequency, double tx_depth, double start_rx_depth=WOSS_MIN_DEPTH, double start_rx_range=WOSS_MIN_RANGE, double end_rx_depth=WOSS_MAX_DEPTH, double end_rx_range=WOSS_MAX_RANGE) const =0
 
virtual PressuregetPressure (double frequency, double tx_depth, double rx_depth, double rx_range) const =0
 
virtual TimeArrgetTimeArr (double frequency, double tx_depth, double rx_depth, double rx_range) const =0
 
WosssetDebug (bool flag)
 
WosssetCleanWorkDir (bool flag)
 
WosssetWorkDirPath (const ::std::string &path)
 
WosssetWossDbManager (const WossDbManager *const ptr)
 
WossinsertFrequency (double freq)
 
WossinsertFrequencies (double freq_start, double freq_end, double freq_step)
 
WosssetFrequencies (const FreqSet &freq_set)
 
WosseraseFrequency (double freq)
 
WossclearFrequencies ()
 
WosssetTotalRuns (int runs)
 
WosssetTxCoordZ (const CoordZ &coordz)
 
WosssetRxCoordZ (const CoordZ &coordz)
 
WosssetStartTime (const Time &start_t)
 
WosssetEndTime (const Time &end_t)
 
WosssetEvolutionTimeQuantum (double value)
 
int getWossId () const
 
::std::string getWorkDirPath () const
 
const FreqSetgetFrequencies () const
 
double getMinFrequency () const
 
double getMaxFrequency () const
 
FreqSCIt freq_begin () const
 
FreqSCIt freq_end () const
 
FreqSCRIt freq_rbegin () const
 
FreqSCRIt freq_rend () const
 
FreqSCIt freq_lower_bound (double frequency) const
 
FreqSCIt freq_upper_bound (double frequency) const
 
int getTotalRuns () const
 
CoordZ getTxCoordZ () const
 
CoordZ getRxCoordZ () const
 
Time getStartTime () const
 
Time getCurrentTime () const
 
Time getEndTime () const
 
double getEvolutionTimeQuantum () const
 
double getGreatCircleDistance () const
 
double getDistance () const
 
double getBearing () const
 
bool usingDebug () const
 
virtual bool isRunning () const
 

Protected Member Functions

void clearResReaderMap ()
 
- Protected Member Functions inherited from woss::Woss
virtual bool mkWorkDir (double curr_frequency, int curr_run=0)
 
virtual bool rmWorkDir (double curr_frequency, int curr_run=0)
 
virtual bool rmWorkDir ()
 

Protected Attributes

ResReaderMap res_reader_map
 
- Protected Attributes inherited from woss::Woss
int woss_id
 
::std::string work_dir_path
 
const WossDbManagerdb_manager
 
Time start_time
 
Time current_time
 
Time end_time
 
double evolution_time_quantum
 
CoordZ tx_coordz
 
CoordZ rx_coordz
 
FreqSet frequencies
 
double bearing
 
double total_great_circle_distance
 
double total_distance
 
int total_runs
 
bool debug
 
bool has_run_once
 
volatile bool is_running
 
bool clean_workdir
 

Additional Inherited Members

- Static Protected Attributes inherited from woss::Woss
static pthread_spinlock_t woss_mutex = woss::initWossSpinlock( &Woss::woss_mutex , 0 )
 
static int woss_counter = 0
 

Detailed Description

Woss class with ResReader objects for reading simulated results.

WossResReader implements Woss with the add of a ResReaderMap object for reading and further refination purposes

Constructor & Destructor Documentation

◆ WossResReader() [1/2]

woss::WossResReader::WossResReader ( )
inline

Default constructor

◆ WossResReader() [2/2]

woss::WossResReader::WossResReader ( const CoordZ tx,
const CoordZ rx,
const Time start_t,
const Time end_t,
double  start_freq,
double  end_freq,
double  freq_step 
)
inline

Woss constructor

Parameters
txconst reference to a valid CoordZ object ( transmitter )
rxconst reference to a valid CoordZ object ( receiver )
start_tconst reference to a valid Time object for SSP's averaging purposes ( start date time )
end_tconst reference to a valid Time object for SSP's averaging purposes ( end date time )
start_freqstart frequency [Hz]
end_freqend frequency [Hz]
freq_stepfrequency step [Hz]

Member Function Documentation

◆ clearResReaderMap()

void WossResReader::clearResReaderMap ( )
protected

Clears res_reader_map

References res_reader_map.

◆ initResReader()

virtual bool woss::WossResReader::initResReader ( double  curr_frequency)
pure virtual

Initializes current ResReader object

Parameters
curr_frequencyfrequency in use [Hz]
Returns
true if method succeeded, false otherwise

Implemented in woss::BellhopWoss.

Member Data Documentation

◆ res_reader_map


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