World Ocean Simulation System (WOSS) library
|
Abstract class that provides correctly initialized Woss objects. More...
#include <woss-creator.h>
Protected Types | |
typedef WossCreatorContainer< SimTime > | CCSimTime |
typedef WossCreatorContainer< double > | CCDouble |
typedef WossCreatorContainer< int > | CCInt |
Protected Member Functions | |
virtual bool | initializeWoss (Woss *const woss_ptr) const =0 |
virtual const Woss * | createNotValidWoss () const =0 |
virtual void | updateDebugFlag () |
Protected Attributes | |
const WossDbManager * | woss_db_manager |
const 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 |
Static Protected Attributes | |
static const Woss * | woss_not_valid = NULL |
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 woss::WossCreatorContainer< Data >::accessAllLocations(), ccfrequency_step, and updateDebugFlag().
|
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 woss::WossCreatorContainer< Data >::erase().
|
inline |
Erases the time evolution threshold
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References ccevolution_time_quantum, and woss::WossCreatorContainer< Data >::erase().
|
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 woss::WossCreatorContainer< Data >::erase().
|
inline |
Erases the frequency step for given transmitter, receiver woss::Location
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References ccfrequency_step, and woss::WossCreatorContainer< Data >::erase().
|
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 woss::WossCreatorContainer< Data >::erase().
|
inline |
Erases the SimTime for given transmitter, receiver woss::Location
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References ccsimtime_map, and woss::WossCreatorContainer< Data >::erase().
|
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 woss::WossCreatorContainer< Data >::erase().
|
inline |
Erases the total number of channel simulator's runs
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References cctotal_runs, and woss::WossCreatorContainer< Data >::erase().
|
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, and woss::WossCreatorContainer< Data >::get().
|
inline |
Returns the time evolution threshold
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References ccevolution_time_quantum, and woss::WossCreatorContainer< Data >::get().
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, and woss::WossCreatorContainer< Data >::get().
Referenced by woss::BellhopCreator::createWoss(), woss::WossManagerResDb::getWossPressure(), woss::WossManagerResDbMT::getWossPressure(), woss::WossManagerResDb::getWossTimeArr(), and woss::WossManagerResDbMT::getWossTimeArr().
|
inline |
Returns the frequency step for given transmitter, receiver woss::Location
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References ccfrequency_step, and woss::WossCreatorContainer< Data >::get().
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, and woss::WossCreatorContainer< Data >::get().
Referenced by woss::BellhopCreator::createWoss(), woss::WossManagerResDbMT::getWossPressure(), woss::WossManager::getWossPressure(), woss::WossManager::getWossPressure(), woss::WossManagerResDbMT::getWossTimeArr(), woss::WossManager::getWossTimeArr(), woss::WossManager::getWossTimeArr(), woss::WMSMTcreateThreadPressure(), and woss::WMSMTcreateThreadTimeArr().
|
inline |
Returns the SimTime for given transmitter, receiver woss::Location
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References ccsimtime_map, and woss::WossCreatorContainer< Data >::get().
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, and woss::WossCreatorContainer< Data >::get().
|
inline |
Returns the total number of channel simulator's runs
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References cctotal_runs, and woss::WossCreatorContainer< Data >::get().
|
inline |
|
protectedpure virtual |
Initializes given Woss object
woss_ptr | const pointer to an unitialized Woss |
Implemented in woss::BellhopCreator.
References ccevolution_time_quantum, cctotal_runs, woss::WossCreatorContainer< Data >::get(), 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, and woss_debug.
Referenced by woss::BellhopCreator::initializeWoss().
|
inline |
Sets clean work dir flag
flag | debug flag |
References woss_clean_workdir.
|
inline |
Sets debug flag
flag | debug flag |
References debug, and updateDebugFlag().
|
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 woss::WossCreatorContainer< Data >::replace().
|
inline |
Sets time threshold for time evolution purposes
value | time threshold in seconds |
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References ccevolution_time_quantum, and woss::WossCreatorContainer< Data >::replace().
|
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 woss::WossCreatorContainer< Data >::replace().
|
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 pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References ccfrequency_step, and woss::WossCreatorContainer< Data >::replace().
|
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 woss::WossCreatorContainer< Data >::replace().
|
inline |
Sets the SimTime for given transmitter, receiver woss::Location
simtime | const reference to a valid SimTime |
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References ccsimtime_map, and woss::WossCreatorContainer< Data >::replace().
|
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 woss::WossCreatorContainer< Data >::replace().
|
inline |
Sets the total number of channel simulator's runs
runs | number of runs |
tx | const pointer to a valid woss::Location instance |
rx | const pointer to a valid woss::Location instance |
References cctotal_runs, and woss::WossCreatorContainer< Data >::replace().
|
inline |
Sets the WossDbManager pointer
path | const pointer to a const WossDbManager object |
Referenced by woss::WossController::initialize().
|
inline |
Sets the WossDbManager pointer
path | const pointer to a const WossDbManager object |
Referenced by woss::WossController::initialize().
|
inline |
Sets debug flag of every Woss object created
flag | debug flag |
References woss_debug.
|
inline |
Sets the work pathname
path | valid pathname |
References work_dir_path.
|
protectedvirtual |
Propagates the debug flag
Reimplemented in woss::BellhopCreator.
References ccevolution_time_quantum, ccfrequency_step, ccsimtime_map, cctotal_runs, debug, and woss::WossCreatorContainer< Data >::setDebug().
Referenced by setDebug(), woss::BellhopCreator::updateDebugFlag(), and WossCreator().
|
inline |
|
inline |
Returns Woss debug flag
References woss_debug.
|
protected |
Time evolution threshold in seconds
Referenced by eraseEvolutionTimeQuantum(), eraseEvolutionTimeQuantum(), getEvolutionTimeQuantum(), getEvolutionTimeQuantum(), initializeWoss(), setEvolutionTimeQuantum(), setEvolutionTimeQuantum(), and updateDebugFlag().
|
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(), and updateDebugFlag().
|
protected |
Total number of channel simulator's runs
Referenced by eraseTotalRuns(), eraseTotalRuns(), getTotalRuns(), getTotalRuns(), initializeWoss(), setTotalRuns(), setTotalRuns(), and updateDebugFlag().
|
protected |
Debug flag
Referenced by setDebug(), woss::BellhopCreator::updateDebugFlag(), updateDebugFlag(), and usingDebug().
|
protected |
Directory path for temporary files (e.g. channel simulator files)
Referenced by getWrkDirPath(), initializeWoss(), and setWrkDirPath().
|
protected |
Debug flag for all Woss instances
Referenced by initializeWoss(), and setCleanWorkDir().
|
protected |
Debug flag for all Woss instances
Referenced by initializeWoss(), setWossDebug(), and usingWossDebug().