|
World Ocean Simulation System (WOSS) library
|
Abstract class that provides correctly initialized Woss objects. More...
#include <woss-creator.h>


Protected Types | |
| using | CCSimTime = WossCreatorContainer< SimTime > |
| using | CCDouble = WossCreatorContainer< double > |
| using | CCInt = WossCreatorContainer< int > |
Protected Member Functions | |
| virtual bool | initializeWoss (Woss &woss_ref) const =0 |
| virtual void | updateDebugFlag () |
Protected Attributes | |
| std::shared_ptr< WossDbManager > | woss_db_manager |
| std::shared_ptr< TransducerHandler > | transducer_handler |
| std::string | work_dir_path |
| CCDouble | ccevolution_time_quantum |
| CCInt | cctotal_runs |
| CCDouble | ccfrequency_step |
| CCSimTime | ccsimtime_map |
| bool | debug |
| bool | woss_debug |
| bool | woss_clean_workdir |
Abstract class that provides correctly initialized Woss objects.
WossCreator provides interface for creation and initializiation of Woss objects, relieving the user from this task
|
protected |
double WossCreatorContainer
|
protected |
|
protected |
| WossCreator::WossCreator | ( | ) |
WossCreator default constructor
References ccevolution_time_quantum, ccfrequency_step, ccsimtime_map, cctotal_runs, debug, transducer_handler, updateDebugFlag(), work_dir_path, woss_clean_workdir, woss_db_manager, and woss_debug.
Referenced by woss::BellhopCreator::BellhopCreator(), eraseEvolutionTimeQuantum(), eraseEvolutionTimeQuantum(), eraseFrequencyStep(), eraseFrequencyStep(), eraseSimTime(), eraseSimTime(), eraseTotalRuns(), eraseTotalRuns(), setCleanWorkDir(), setDebug(), setEvolutionTimeQuantum(), setEvolutionTimeQuantum(), setFrequencyStep(), setFrequencyStep(), setSimTime(), setSimTime(), setTotalRuns(), setTotalRuns(), setTransducerHandler(), setWossDbManager(), setWossDebug(), and setWrkDirPath().

|
virtualdefault |
|
pure virtual |
Returns a pointer to valid Woss for given parameters
| tx | const reference to a valid CoordZ object ( transmitter ) |
| rx | const reference to a valid CoordZ object ( receiver ) |
| start_freq | start frequency [Hz] |
| end_freq | end frequency [Hz] |
Implemented in woss::BellhopCreator.
|
inline |
Erases the time evolution threshold
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References ccevolution_time_quantum, and WossCreator().
Referenced by WossUnitTest::testBellhopCreator().

|
inline |
Erases the time evolution threshold
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< int >::ALL_LOCATIONS, ccevolution_time_quantum, and WossCreator().

|
inline |
Erases the frequency step for given transmitter, receiver woss::CoordZ
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References ccfrequency_step, and WossCreator().
Referenced by WossUnitTest::testBellhopCreator().

|
inline |
Erases the frequency step for given transmitter, receiver woss::Location
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< double >::ALL_LOCATIONS, ccfrequency_step, and WossCreator().

|
inline |
Erases the SimTime for given transmitter, receiver woss::CoordZ
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References ccsimtime_map, and WossCreator().
Referenced by WossUnitTest::testBellhopCreator().

|
inline |
Erases the SimTime for given transmitter, receiver woss::Location
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< SimTime >::ALL_LOCATIONS, ccsimtime_map, and WossCreator().

|
inline |
Erases the total number of channel simulator's runs
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References cctotal_runs, and WossCreator().

|
inline |
Erases the total number of channel simulator's runs
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< int >::ALL_LOCATIONS, cctotal_runs, and WossCreator().

|
inline |
Returns the time evolution threshold
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References ccevolution_time_quantum.
Referenced by WossUnitTest::testBellhopCreator().
|
inline |
Returns the time evolution threshold
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< int >::ALL_LOCATIONS, and ccevolution_time_quantum.
Returns the frequency step for given transmitter, receiver woss::CoordZ
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References ccfrequency_step.
Referenced by woss::BellhopCreator::createWoss(), and WossUnitTest::testBellhopCreator().
|
inline |
Returns the frequency step for given transmitter, receiver woss::Location
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< double >::ALL_LOCATIONS, and ccfrequency_step.
Returns the SimTime for given transmitter, receiver woss::CoordZ
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References ccsimtime_map.
Referenced by woss::BellhopCreator::createWoss(), and WossUnitTest::testBellhopCreator().
|
inline |
Returns the SimTime for given transmitter, receiver woss::Location
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< SimTime >::ALL_LOCATIONS, and ccsimtime_map.
Returns the total number of channel simulator's runs
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References cctotal_runs.
Referenced by WossUnitTest::testBellhopCreator().
|
inline |
Returns the total number of channel simulator's runs
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< int >::ALL_LOCATIONS, and cctotal_runs.
|
inline |
|
protectedpure virtual |
Initializes given Woss object
| woss_ptr | reference to an unitialized Woss |
Implemented in woss::BellhopCreator.
References ccevolution_time_quantum, cctotal_runs, woss::Woss::getRxCoordZ(), woss::Woss::getTxCoordZ(), woss::Woss::setCleanWorkDir(), woss::Woss::setDebug(), woss::Woss::setEvolutionTimeQuantum(), woss::Woss::setTotalRuns(), woss::Woss::setWorkDirPath(), woss::Woss::setWossDbManager(), work_dir_path, woss_clean_workdir, woss_db_manager, and woss_debug.
Referenced by woss::BellhopCreator::initializeWoss().

|
inline |
Sets clean work dir flag
| flag | debug flag |
References woss_clean_workdir, and WossCreator().

|
inline |
Sets debug flag
| flag | debug flag |
References debug, updateDebugFlag(), and WossCreator().

|
inline |
Sets the time evolution threshold in seconds
| value | time evolution threshold in seconds |
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References ccevolution_time_quantum, and WossCreator().
Referenced by WossUnitTest::testBellhopCreator().

|
inline |
Sets time threshold for time evolution purposes
| value | time threshold in seconds |
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< int >::ALL_LOCATIONS, ccevolution_time_quantum, and WossCreator().

|
inline |
Sets the frequency step for given transmitter, receiver woss::CoordZ
| f_step | valid frequency step [Hz]. If step <= 0 start frequency is used and no steps are done |
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References ccfrequency_step, and WossCreator().
Referenced by WossUnitTest::testBellhopCreator().

|
inline |
Sets the frequency step for given transmitter, receiver woss::Location
| f_step | valid frequency step [Hz]. If step <= 0 start frequency is used and no steps are done |
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< double >::ALL_LOCATIONS, ccfrequency_step, and WossCreator().

|
inline |
Sets the SimTime for given transmitter, receiver woss::CoordZ
| simtime | const reference to a valid SimTime |
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References ccsimtime_map, and WossCreator().
Referenced by WossUnitTest::testBellhopCreator().

|
inline |
Sets the SimTime for given transmitter, receiver woss::Location
| simtime | const reference to a valid SimTime |
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< SimTime >::ALL_LOCATIONS, ccsimtime_map, and WossCreator().

|
inline |
Sets the total number of channel simulator's runs
| runs | number of runs |
| tx | const reference to a valid woss::CoordZ instance |
| rx | const reference to a valid woss::CoordZ instance |
References cctotal_runs, and WossCreator().
Referenced by WossUnitTest::testBellhopCreator().

|
inline |
Sets the total number of channel simulator's runs
| runs | number of runs |
| tx | const reference to a std::shared_ptr to a valid transmitter Location |
| rx | const reference to a std::shared_ptr to a valid receiver Location |
References woss::WossCreatorContainer< int >::ALL_LOCATIONS, cctotal_runs, and WossCreator().

|
inline |
Sets the TransducerHander pointer
| ptr | std::shared_ptr to a TransducerHander object |
References transducer_handler, and WossCreator().

|
inline |
Sets the WossDbManager pointer
| ptr | std::shared_ptr to a WossDbManager object |
References woss_db_manager, and WossCreator().

|
inline |
Sets debug flag of every Woss object created
| flag | debug flag |
References woss_debug, and WossCreator().
Referenced by WossUnitTest::testBellhopCreator().

|
inline |
Sets the work pathname
| path | valid pathname |
References work_dir_path, and WossCreator().

|
protectedvirtual |
Propagates the debug flag
Reimplemented in woss::BellhopCreator.
References ccevolution_time_quantum, ccfrequency_step, ccsimtime_map, cctotal_runs, and debug.
Referenced by setDebug(), woss::BellhopCreator::updateDebugFlag(), and WossCreator().
|
inline |
|
inline |
Returns Woss debug flag
References woss_debug.
Referenced by WossUnitTest::testBellhopCreator().
|
protected |
Time evolution threshold in seconds
Referenced by eraseEvolutionTimeQuantum(), eraseEvolutionTimeQuantum(), getEvolutionTimeQuantum(), getEvolutionTimeQuantum(), initializeWoss(), setEvolutionTimeQuantum(), setEvolutionTimeQuantum(), updateDebugFlag(), and WossCreator().
|
protected |
Frequency step [Hz]
Referenced by eraseFrequencyStep(), eraseFrequencyStep(), getFrequencyStep(), getFrequencyStep(), setFrequencyStep(), setFrequencyStep(), updateDebugFlag(), and WossCreator().
|
protected |
SimTime containter for user-given transmitter CoordZ
Referenced by eraseSimTime(), eraseSimTime(), getSimTime(), getSimTime(), setSimTime(), setSimTime(), updateDebugFlag(), and WossCreator().
|
protected |
Total number of channel simulator's runs
Referenced by eraseTotalRuns(), eraseTotalRuns(), getTotalRuns(), getTotalRuns(), initializeWoss(), setTotalRuns(), setTotalRuns(), updateDebugFlag(), and WossCreator().
|
protected |
Debug flag
Referenced by setDebug(), woss::BellhopCreator::updateDebugFlag(), updateDebugFlag(), usingDebug(), and WossCreator().
|
protected |
Referenced by woss::BellhopCreator::initializeBhWoss(), setTransducerHandler(), and WossCreator().
|
protected |
Directory path for temporary files (e.g. channel simulator files)
Referenced by getWrkDirPath(), initializeWoss(), setWrkDirPath(), and WossCreator().
|
protected |
Debug flag for all Woss instances
Referenced by initializeWoss(), setCleanWorkDir(), and WossCreator().
|
protected |
Referenced by initializeWoss(), setWossDbManager(), and WossCreator().
|
protected |
Debug flag for all Woss instances
Referenced by initializeWoss(), setWossDebug(), usingWossDebug(), and WossCreator().