Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYSol.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14  */
15 
16 #ifndef __TY_SOL__
17 #define __TY_SOL__
18 
19 #include "TYVegetation.h"
20 
24 class TYSol : public TYElement
25 {
28 
29  // Methodes
30 public:
34  TYSol();
38  TYSol(const TYSol& other);
42  virtual ~TYSol();
43 
45  TYSol& operator=(const TYSol& other);
47  bool operator==(const TYSol& other) const;
49  bool operator!=(const TYSol& other) const;
50 
59  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
60 
61  virtual std::string toString() const;
62 
63  virtual DOM_Element toXML(DOM_Element& domElement);
64  virtual int fromXML(DOM_Element domElement);
65 
69  double getResistivite() const
70  {
71  return _resistivite;
72  }
73 
77  void setResistivite(double res)
78  {
79  _resistivite = res;
80  }
81 
85  double getEpaisseur() const
86  {
87  return _epaisseur;
88  }
89 
93  void setEpaisseur(double epais)
94  {
95  _epaisseur = epais;
96  }
97 
101  double getEcartType()
102  {
103  return _ecarttype;
104  }
105  void setEcartType(double ecarttype)
106  {
107  _ecarttype = ecarttype;
108  }
109 
113  double getLongueur()
114  {
115  return _longueur;
116  }
117  void setLongueur(double longueur)
118  {
119  _longueur = longueur;
120  }
121 
125  double getG()
126  {
127  return _G;
128  }
129  void setG(double G)
130  {
131  _G = G;
132  }
133 
134  // Membres
135 protected:
137  double _resistivite;
138 
140  double _epaisseur;
141 
143  double _ecarttype;
144 
146  double _longueur;
147 
149  double _G;
150 };
151 
152 #endif // __TY_SOL__
QDomElement DOM_Element
Definition: QT2DOM.h:30
#define OPROTODECL(classname)
Definition: TYElement.h:65
#define TY_EXTENSION_DECL_ONLY(classname)
Definition: TYElement.h:386
Definition: TYSol.h:25
double getEpaisseur() const
Definition: TYSol.h:85
bool operator==(const TYSol &other) const
Operateur ==.
Definition: TYSol.cpp:90
bool operator!=(const TYSol &other) const
Operateur !=.
Definition: TYSol.cpp:122
void setLongueur(double longueur)
Definition: TYSol.h:117
double _resistivite
Resistance a l'ecoulement.
Definition: TYSol.h:137
double getLongueur()
Definition: TYSol.h:113
double _epaisseur
Epaisseur du sol.
Definition: TYSol.h:140
virtual ~TYSol()
Definition: TYSol.cpp:74
double getEcartType()
Definition: TYSol.h:101
double getResistivite() const
Definition: TYSol.h:69
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
Definition: TYSol.cpp:127
void setEcartType(double ecarttype)
Definition: TYSol.h:105
virtual DOM_Element toXML(DOM_Element &domElement)
Definition: TYSol.cpp:150
TYSol()
Definition: TYSol.cpp:25
double _ecarttype
Ecart-type.
Definition: TYSol.h:143
virtual int fromXML(DOM_Element domElement)
Definition: TYSol.cpp:163
double _longueur
Longueur.
Definition: TYSol.h:146
void setEpaisseur(double epais)
Definition: TYSol.h:93
virtual std::string toString() const
Definition: TYSol.cpp:145
TYSol & operator=(const TYSol &other)
Operateur =.
Definition: TYSol.cpp:76
double getG()
Definition: TYSol.h:125
void setResistivite(double res)
Definition: TYSol.h:77
double _G
Facteur G.
Definition: TYSol.h:149
void setG(double G)
Definition: TYSol.h:129