Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYReseauTransport.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 /*
17  *
18  *
19  *
20  *
21  */
22 
23 #ifndef __TY_RESEAUTRANSPORT__
24 #define __TY_RESEAUTRANSPORT__
25 
27 
32 {
36 
37  // Methodes
38 public:
50  virtual ~TYReseauTransport();
51 
55  bool operator==(const TYReseauTransport& other) const;
57  bool operator!=(const TYReseauTransport& other) const;
58 
67  virtual bool deepCopy(const TYElement* pOther, bool copyId = true, bool pUseCopyTag = false);
68 
69  virtual std::string toString() const;
70 
71  virtual DOM_Element toXML(DOM_Element& domElement);
72  virtual int fromXML(DOM_Element domElement);
73 
77  int getNbBrins() const
78  {
79  return _nbBrins;
80  }
81 
85  void setNbBrins(int nb)
86  {
87  _nbBrins = nb;
88  }
89 
93  double getTension() const
94  {
95  return _tension;
96  }
97 
101  void setTension(double tension)
102  {
103  _tension = tension;
104  }
105 
109  double getPuissance() const
110  {
111  return _puissance;
112  }
113 
117  void setPuissance(double puissance)
118  {
119  _puissance = puissance;
120  }
121 
125  double getHauteurMoyenne() const
126  {
127  return _hauteurMoyenne;
128  }
129 
133  void setHauteurMoyenne(double hauteur)
134  {
135  _hauteurMoyenne = hauteur;
136  }
137 
141  virtual bool updateAcoustic(const bool& force = false);
142 
143  // Membres
144 protected:
146  int _nbBrins;
148  double _tension;
150  double _puissance;
153 };
154 
160 typedef std::vector<LPTYReseauTransportGeoNode> TYTabReseauTransportGeoNode;
161 
162 #endif // __TY_RESEAUTRANSPORT__
QDomElement DOM_Element
Definition: QT2DOM.h:30
#define TY_EXT_GRAPHIC_DECL_ONLY(classname)
Definition: TYElement.h:432
#define OPROTODECL(classname)
Definition: TYElement.h:65
#define TY_EXTENSION_DECL_ONLY(classname)
Definition: TYElement.h:386
TYGeometryNode TYReseauTransportGeoNode
Noeud geometrique de type TYReseauTransport.
SmartPtr< TYReseauTransportGeoNode > LPTYReseauTransportGeoNode
Smart Pointer sur TYReseauTransportGeoNode.
std::vector< LPTYReseauTransportGeoNode > TYTabReseauTransportGeoNode
Collection de noeuds geometriques de type TYReseauTransport.
double getPuissance() const
double _hauteurMoyenne
Hauteur Moyenne.
virtual std::string toString() const
double getHauteurMoyenne() const
bool operator!=(const TYReseauTransport &other) const
Operateur !=.
void setNbBrins(int nb)
virtual bool updateAcoustic(const bool &force=false)
bool operator==(const TYReseauTransport &other) const
Operateur ==.
void setPuissance(double puissance)
void setTension(double tension)
double getTension() const
double _puissance
Puissance transportee.
double _tension
Tension.
void setHauteurMoyenne(double hauteur)
virtual DOM_Element toXML(DOM_Element &domElement)
virtual int fromXML(DOM_Element domElement)
int getNbBrins() const
int _nbBrins
Nombre de brins.
virtual bool deepCopy(const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
TYReseauTransport & operator=(const TYReseauTransport &other)
Operateur =.