UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
rws_en_sim.hpp
1 /* rws_en_sim.hpp */
2 /* $Id: rws_en_sim.hpp 21267 2011-11-23 15:19:39Z guser1 $ */
3 #ifndef __rws_en_sim_hpp
4 #define __rws_en_sim_hpp
5 
6 #ifdef GE_BUILD
7 #include <rws_sim.hpp>
8 #else
9 #include <s2proc/rws_sim.hpp>
10 #endif
11 
13 namespace RWSel
14 {
16  class EnSim : public Sim
17  {
18  public:
19 
21  EnSim(double defect, double rigidity=1.);
22 
23  virtual ~EnSim();
24 
26  virtual Sim* clone() const {return new EnSim(*this);}
27 
28  void setDefect(double defect) {m_defect = defect;}
29  double defect() const {return m_defect;}
30 
31  void setRigidity(double rigidity) {m_rigidity = rigidity;}
32  double rigidity() const {return m_rigidity;}
33 
34  protected:
35 
37  double m_defect;
38 
40  double m_rigidity;
41 
44  virtual bool calc(const WaveField &field, S2Corr::DVector &coeffs,
45  size_t t0id, size_t dt) const;
46  };
47 };
48 
49 #endif /* rws_en_sim.hpp */
Definition: rws_sim.hpp:18
virtual Sim * clone() const
Definition: rws_en_sim.hpp:26
virtual bool calc(const WaveField &field, S2Corr::DVector &coeffs, size_t t0id, size_t dt) const
std::vector< Trace::AmplT > DVector
Definition: s2_corr.hpp:20
EnSim(double defect, double rigidity=1.)
Definition: wave_field.hpp:13
Definition: rws_en_sim.hpp:16
double m_defect
Definition: rws_en_sim.hpp:37
double m_rigidity
Definition: rws_en_sim.hpp:40