40#ifndef WOSS_DEF_HANDLER_H
41#define WOSS_DEF_HANDLER_H
124 void setPressure(
Pressure*
const ptr ) { pressure_creator = ptr; }
126 void setTimeArr(
TimeArr*
const ptr ) { time_arr_creator = ptr; }
128 void setSSP(
SSP*
const ptr ) { ssp_creator = ptr; }
130 void setSediment(
Sediment*
const ptr ) { sediment_creator = ptr; }
132 void setTimeReference(
TimeReference*
const ptr ) { time_reference = ptr; }
134 void setRandGenerator(
RandomGenerator*
const ptr ) { rand_generator = ptr; }
136 void setTransducer(
Transducer*
const ptr ) { transducer = ptr; }
138 void setAltimetry(
Altimetry*
const ptr ) { altimetry_creator = ptr; }
141 const Pressure*
const getPressure()
const { assert(pressure_creator);
return pressure_creator; }
143 const TimeArr*
const getTimeArr()
const { assert(time_arr_creator);
return time_arr_creator; }
145 const SSP*
const getSSP()
const { assert(ssp_creator);
return ssp_creator; }
147 const Sediment*
const getSediment()
const { assert(sediment_creator);
return sediment_creator; }
149 RandomGenerator*
const getRandomGenerator()
const { assert(rand_generator);
return rand_generator; }
151 const Transducer*
const getTransducer()
const { assert(transducer);
return transducer; }
153 const Altimetry*
const getAltimetry()
const { assert(altimetry_creator);
return altimetry_creator; }
156 void setDebug(
bool flag ) {
debug = flag; }
158 bool getDebug() {
return debug; }
200 if (rand_generator)
return rand_generator->
getRand();
202 ::std::cerr <<
"DefHandler::getRand() ERROR, random generator wasn't set" << ::std::endl;
209 if (rand_generator)
return rand_generator->
getRandInt();
211 ::std::cerr <<
"DefHandler::getRandInt() ERROR, random generator wasn't set" << ::std::endl;
220 ::std::cerr <<
"DefHandler::getTimeReference() ERROR, time reference wasn't set" << ::std::endl;
Altimetry profile class.
Definition altimetry-definitions.h:78
Class for managing dynamic instantiation of foundation classes.
Definition definitions-handler.h:75
int getRandInt() const
Definition definitions-handler.h:208
bool debug
Definition definitions-handler.h:167
double getTimeReference() const
Definition definitions-handler.h:217
virtual ~DefHandler()
Definition definitions-handler.cpp:97
DefHandler()
Definition definitions-handler.cpp:51
double getRand() const
Definition definitions-handler.h:199
DefHandler & operator=(const DefHandler ©)
Definition definitions-handler.cpp:82
Complex attenuated pressure class.
Definition pressure-definitions.h:59
woss::RandomGenerator class
Definition random-generator-definitions.h:56
virtual int getRandInt() const
Definition random-generator-definitions.cpp:65
virtual double getRand() const
Definition random-generator-definitions.cpp:55
SSP class offers multiple creation and manipulation capabilities for sound speed profile.
Definition ssp-definitions.h:258
Surficial sediment geoacoustic parameters definitions.
Definition sediment-definitions.h:63
Singleton design pattern template.
Definition singleton-definitions.h:54
Channel power delay profile class.
Definition time-arrival-definitions.h:82
Class for simulation time reference purposes.
Definition time-definitions.h:63
virtual double getTimeReference() const =0
Transducer class.
Definition transducer-definitions.h:70
Definitions and library for woss::RandomGenerator class.
Definitions of woss::Singleton template.
Definitions and library for woss::Time, woss::SimTime, woss::TimeReference and woss::TimeReferenceTcl...