Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Static Private Attributes | List of all members
TYRoute Class Reference

#include <TYRoute.h>

Inheritance diagram for TYRoute:
Inheritance graph
[legend]
Collaboration diagram for TYRoute:
Collaboration graph
[legend]

Classes

class  TrafficHalfer
 This helper class halves and restore the traffic flow of the road. More...
 

Public Types

enum  TrafficRegimes { Day, Evening, Night, NB_TRAFFIC_REGIMES }
 
enum  RoadType { Motorway, Intercity }
 
enum  RoadFunction { LongDistance, Regional }
 
- Public Types inherited from TYAcousticLine
enum  TypeDistribution { TY_PUISSANCE_CALCULEE, TY_PUISSANCE_IMPOSEE }
 

Public Member Functions

 TYRoute ()
 
 TYRoute (const TYRoute &other)
 
virtual ~TYRoute ()
 
TYRouteoperator= (const TYRoute &other)
 Operateur =. More...
 
bool operator== (const TYRoute &other) const
 Operateur ==. More...
 
bool operator!= (const TYRoute &other) const
 Operateur !=. More...
 
virtual bool deepCopy (const TYElement *pOther, bool copyId=true, bool pUseCopyTag=false)
 
virtual std::string toString () const
 
virtual DOM_Element toXML (DOM_Element &domElement)
 
virtual int fromXML (DOM_Element domElement)
 
double getVitMoy () const
 
void setVitMoy (double vit)
 
const TYTraficgetTraficJour () const
 
TYTraficgetTraficJour ()
 
const TYTraficgetTraficNuit () const
 
TYTraficgetTraficNuit ()
 
bool setFromAADT (double aadt_hgv, double aadt_lv, RoadType road_type, RoadFunction road_function, QString *out_msg=NULL)
 Apply Note77 from Setra to estimate trafic from AADT and road kind. More...
 
TYSpectre computeSpectre (enum TrafficRegimes regime)
 
virtual bool updateAcoustic (const bool &force=false)
 
virtual bool updateAltitudes (const TYAltimetrie &alti, LPTYRouteGeoNode pGeoNode, OMatrix globalMatrix)
 Required the road to update its altitude after altimetry changed. More...
 
const RoadTrafficComponent & getNMPB08RoadTrafficComponent (enum TrafficRegimes regime, enum TYTrafic::VehicleTypes vehic_type) const
 
const RoadTraffic & getNMBP08RoadTraffic (enum TrafficRegimes regime)
 
RoadSurfaceType surfaceType () const
 Getter for the road surface type. More...
 
double surfaceAge () const
 Getter for the surface age. More...
 
double ramp () const
 Getter for the ramp in percent ( > 0 if rise, < 0 if down) More...
 
void setSurfaceType (RoadSurfaceType type)
 Setter for the road surface type. More...
 
void setSurfaceAge (double age)
 Setter for the surface age. More...
 
void setRamp (double ramp)
 Setter for the ramp in percent ( > 0 if rise, < 0 if down) More...
 
void setRoadTrafficComponent (enum TrafficRegimes regime, enum TYTrafic::VehicleTypes vehic_type, double flow, double speed, RoadFlowType type=FlowType_CONST)
 Set the traffic parameter for a given regime and type of vehicles. More...
 
- Public Member Functions inherited from TYAcousticLine
 TYAcousticLine ()
 
 TYAcousticLine (const TYAcousticLine &other)
 
virtual ~TYAcousticLine ()
 
TYAcousticLineoperator= (const TYAcousticLine &other)
 Operateur =. More...
 
bool operator== (const TYAcousticLine &other) const
 Operateur ==. More...
 
bool operator!= (const TYAcousticLine &other) const
 Operateur !=. More...
 
double getLargeur () const
 
void setLargeur (double larg)
 
LPTYSourceLineic getSrcLineic ()
 
const LPTYSourceLineic getSrcLineic () const
 
void setSrcLineic (const LPTYSourceLineic pSrcLin)
 
TYTabPointgetTabPoint ()
 
const TYTabPointgetTabPoint () const
 
void setTabPoint (const TYTabPoint &tab)
 
virtual void remAllSrcs ()
 
virtual void computeSpectre ()
 
virtual TYTabSourcePonctuelleGeoNode getSrcs () const
 
virtual bool setSrcsLw ()
 
virtual void setRegime (TYSpectre &Spectre, int regime=-1, bool recursif=false)
 
virtual int addRegime (TYRegime regime)
 
virtual bool remRegime (int regime)
 
TYRegimegetRegimeNb (const int &nb)
 
const TYRegimegetRegimeNb (const int &nb) const
 
size_t getNbRegimes () const
 
int getCurRegime () const
 
virtual void setCurRegime (int regimeNumber)
 
virtual TYRegime buildRegime ()
 
virtual void loadRegime (int regimeNb=-1)
 
virtual void updateCurrentRegime ()
 
QString getRegimeName ()
 
void setRegimeName (const QString &name)
 
bool getIsRayonnant ()
 
const bool getIsRayonnant () const
 
int getTypeDistribution () const
 
void setTypeDistribution (int typeDistri)
 
void setIsRayonnant (const bool &rayonnant)
 
bool getUseAtt ()
 
const bool getUseAtt () const
 
void setUseAtt (const bool &useAtt)
 
LPTYAttenuateur getAtt ()
 
const LPTYAttenuateur getAtt () const
 
void setAtt (LPTYAttenuateur pAtt)
 
TYSpectregetSpectre (int regime=-1) const
 
bool getIsRegimeChangeAble ()
 
virtual LPTYSpectre getRealPowerSpectrum ()
 
void exportCSV (std::ofstream &ofs)
 Export au format csv sur un flux transmis. More...
 
- Public Member Functions inherited from TYSource
 TYSource ()
 
 TYSource (const TYSource &other)
 
virtual ~TYSource ()
 
TYSourceoperator= (const TYSource &other)
 Operateur =. More...
 
bool operator== (const TYSource &other) const
 Operateur ==. More...
 
bool operator!= (const TYSource &other) const
 Operateur !=. More...
 
virtual TYSpectregetCurrentSpectre () const
 
virtual void setSpectre (LPTYSpectre pSpectre)
 
- Public Member Functions inherited from TYElement
void * getAllUses ()
 
void setAllUses (void *allUses)
 
void cleanAllUses ()
 
 TYElement ()
 
 TYElement (TYElement *pParent, bool PutInInstanceList=true)
 
 TYElement (const TYElement &other, bool PutInInstanceList=true)
 
virtual ~TYElement ()
 
void setID (TYUUID id)
 
void setID (const QString &str_id)
 
const TYUUIDgetID () const
 
QString getStringID () const
 
bool hasNullID () const
 
void regenerateID ()
 
void setName (QString name)
 
void setName (std::string name)
 
virtual QString getName () const
 
void setParent (TYElement *pParent)
 
TYElementgetParent () const
 
virtual void setIsAcousticModified (bool isModified)
 
bool getIsAcousticModified ()
 
virtual void setIsGeometryModified (bool isModified)
 
bool getIsGeometryModified ()
 
TYElementoperator= (const TYElement &other)
 
bool operator== (const TYElement &other) const
 
bool operator!= (const TYElement &other) const
 
bool callFromXMLIfEqual (DOM_Element &domElement, int *pRetVal=NULL)
 
std::string getMetierName ()
 
virtual void updateCurrentCalcul (TYListID &listID, bool recursif=true)
 
virtual void getChilds (LPTYElementArray &childs, bool recursif=true)
 
virtual void setInCurrentCalcul (bool state, bool recurschild=true, bool recursparent=true)
 
virtual bool isInCurrentCalcul ()
 
void addCopy ()
 Increment le compteur de nombre de copies. More...
 
void setCopyCount (const unsigned int copyCount)
 Modifie la vaeur du compteur. More...
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 
- Public Member Functions inherited from OPrototype
virtual ~OPrototype ()
 
virtual OPrototypeclone () const =0
 
virtual const char * getClassName () const
 
bool isA (const char *className) const
 
- Public Member Functions inherited from TYColorInterface
virtual void updateColor ()
 
 TYColorInterface ()
 
 TYColorInterface (const TYColorInterface &other)
 
virtual ~TYColorInterface ()
 
TYColorInterfaceoperator= (const TYColorInterface &other)
 
bool operator== (const TYColorInterface &other) const
 
bool operator!= (const TYColorInterface &other) const
 
void deepCopy (const TYColorInterface *pOther, bool copyId=true, bool pUseCopyTag=false)
 
DOM_Element toXML (DOM_Element &domElement)
 
int fromXML (DOM_Element domElement)
 
virtual void setColor (const OColor &color)
 
OColor getColor () const
 

Static Public Member Functions

static bool note77_check_validity (double aadt_hgv, double aadt_lv, RoadType road_type, RoadFunction road_function, QString *out_msg=NULL)
 Check the validity domain of AADT for Note 77. More...
 
- Static Public Member Functions inherited from TYElement
static LPTYElementArray findTypeCollectionAndCallFromXML (DOM_Element parentElem, const char *type)
 
static void setLogInstances (bool log)
 
static bool getLogInstances ()
 
static TYElementgetInstance (TYUUID uuid)
 
static void purgeInstances ()
 
static bool testId (const TYUUID &id, const TYElement *pElem)
 
static TYUUID newID ()
 
static TYUUID fromString (QString id)
 
static QString toString (TYUUID &uuid)
 
static uint64 getConstructorCount ()
 
static uint64 getDestructorCount ()
 
static uint64 getIdGenerationCount ()
 
static bool getIsSavedOk ()
 
static void setIsSavedOk (const bool &toSave)
 
static void setRegenerateID (const bool &bRegenerate)
 
static bool getRegenerateID ()
 
- Static Public Member Functions inherited from OPrototype
static OPrototypefindAndClone (const char *className)
 
static int findPrototype (const char *className)
 
static OPrototypesafeDownCast (OPrototype *pObject)
 
static void add_factory (const char *, IOProtoFactory::ptr_type factory)
 

Public Attributes

bool computed_declivity
 If true, the mean declivity of the read is computed from the altimetry. More...
 

Static Public Attributes

static const double undefined_declivity = std::numeric_limits<double>::quiet_NaN()
 

Protected Member Functions

RoadTrafficComponent & accessRoadTrafficComponent (enum TrafficRegimes regime, enum TYTrafic::VehicleTypes vehic_type)
 
double calculPenteMoyenne ()
 Calcul de la pente moyenne de la route. More...
 
void updateComputedDeclivity ()
 update the mean declivity from the current source distribution. More...
 
virtual void distriSrcs (const TYAltimetrie &alti, LPTYRouteGeoNode pGeoNode, OMatrix globalMatrix)
 
double getOffSet ()
 
void setOffSet (const double &offSet)
 
- Protected Member Functions inherited from OPrototype
 OPrototype ()
 

Static Protected Member Functions

static bool is_valid_declivity (double decli)
 Check that the declivity is valid, i.e. is not undefined_declivity. More...
 

Protected Attributes

RoadTraffic road_traffic
 
TYTrafic traffic_regimes [NB_TRAFFIC_REGIMES]
 
double _offSet
 
- Protected Attributes inherited from TYAcousticLine
int _curRegime
 Regime de fonctionnement courant. More...
 
bool _isRayonnant
 Mise en fonctionnement. More...
 
bool _useAtt
 Utilisation d'un attenuateur. More...
 
LPTYAttenuateur _pAtt
 Attenuateur associe a l'element;. More...
 
int _typeDistribution
 Indique le type de distribution a utiliser. pour l'etat courant. More...
 
bool _regimeChangeAble
 Indique si on peut ajouter un regime a un element (cas des routes) More...
 
int _nextRegime
 Numero d'ordre du regime suivant. More...
 
double _largeur
 Largeur. More...
 
LPTYSourceLineic _pSrcLineic
 Source Lineique. More...
 
TYTabPoint _tabPoint
 Tableau des points. More...
 
TYTabRegimes _tabRegimes
 Tableau des regimes. More...
 
- Protected Attributes inherited from TYSource
LPTYSpectre _pSpectre
 
- Protected Attributes inherited from TYElement
QString _name
 Nom courant de l'element. More...
 
TYElement_pParent
 Reference sur l'element parent. More...
 
bool _bPutInInstanceList
 
unsigned int _copyCount
 
bool _inCurrentCalcul
 Indique si cet element est actif dans le Calcul courant. More...
 
bool _isAcousticModified
 Indicateur de modification acoustique. More...
 
bool _isGeometryModified
 Indicateur de modification de la geometrie. More...
 
LPTYElementGraphic _pGraphicObject
 L'object graphique metier associe a cet element. More...
 
void * _allUses
 Multi purpose void pointer (use for compatibility actually) More...
 
- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 
- Protected Attributes inherited from TYColorInterface
OColor _color
 

Private Types

typedef double note77_tables[2][2][3]
 

Private Member Functions

 FRIEND_TEST (TestRoads, xml_roundtrip)
 
virtual void distriSrcs ()
 
void setRoadTrafficArrayForRegime (enum TrafficRegimes regime)
 internally set the RoadTraffic's array of RoadTrafficComponents according to the given regime. More...
 

Static Private Attributes

static const note77_tables note77_lower_bounds
 
static const note77_tables note77_upper_bounds
 
static const note77_tables note77_hourly_HGV_coeff
 
static const note77_tables note77_hourly_LV_coeff
 

Detailed Description

Consist of acoustic and geometrical properties of a road

Definition at line 43 of file TYRoute.h.

Member Typedef Documentation

◆ note77_tables

typedef double TYRoute::note77_tables[2][2][3]
private

Definition at line 317 of file TYRoute.h.

Member Enumeration Documentation

◆ RoadFunction

Enumerator
LongDistance 
Regional 

Definition at line 125 of file TYRoute.h.

◆ RoadType

Set/Get du trafic de nuit.

Enumerator
Motorway 
Intercity 

Definition at line 124 of file TYRoute.h.

◆ TrafficRegimes

Enumerator
Day 
Evening 
Night 
NB_TRAFFIC_REGIMES 

Definition at line 56 of file TYRoute.h.

Constructor & Destructor Documentation

◆ TYRoute() [1/2]

TYRoute::TYRoute ( )

Constructor

Definition at line 40 of file TYRoute.cpp.

Here is the call graph for this function:

◆ TYRoute() [2/2]

TYRoute::TYRoute ( const TYRoute other)

Copy constructor

Definition at line 99 of file TYRoute.cpp.

◆ ~TYRoute()

TYRoute::~TYRoute ( )
virtual

Destructor

Definition at line 104 of file TYRoute.cpp.

Member Function Documentation

◆ accessRoadTrafficComponent()

RoadTrafficComponent & TYRoute::accessRoadTrafficComponent ( enum TrafficRegimes  regime,
enum TYTrafic::VehicleTypes  vehic_type 
)
protected

Definition at line 480 of file TYRoute.cpp.

Here is the caller graph for this function:

◆ calculPenteMoyenne()

double TYRoute::calculPenteMoyenne ( )
protected

Calcul de la pente moyenne de la route.

Returns
the computed declivity or undefined_declivity if it could not not be computed

Definition at line 314 of file TYRoute.cpp.

Here is the caller graph for this function:

◆ computeSpectre()

TYSpectre TYRoute::computeSpectre ( enum TrafficRegimes  regime)

Compute road spectrum from its traffic

Definition at line 280 of file TYRoute.cpp.

Here is the call graph for this function:

◆ deepCopy()

bool TYRoute::deepCopy ( const TYElement pOther,
bool  copyId = true,
bool  pUseCopyTag = false 
)
virtual

Effectue une copie en allouant de la memoire (deep copy) et non pas en copiant seulement les pointeurs (shallow copy). Cette methode s'utilise comme l'operateur egal. L'ID peut ne pas etre copie, le parent n'est jamais copie.

Parameters
pOtherL'element a copier.
copyIdCopie l'identifiant unique ou pas.
Returns
true si la copie est possible; false sinon.

Reimplemented from TYAcousticLine.

Definition at line 146 of file TYRoute.cpp.

Here is the call graph for this function:

◆ distriSrcs() [1/2]

virtual void TYRoute::distriSrcs ( )
inlineprivatevirtual

Creation des sources de la source lineique

Reimplemented from TYAcousticLine.

Definition at line 238 of file TYRoute.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ distriSrcs() [2/2]

void TYRoute::distriSrcs ( const TYAltimetrie alti,
LPTYRouteGeoNode  pGeoNode,
OMatrix  globalMatrix 
)
protectedvirtual

Sources distribution 'globalMatrix' is the matrix allowing to move 'pGeoNode' to a global frame. If 'pGeoNode' is in the root site node, it is equal to the identity matrix.

Definition at line 450 of file TYRoute.cpp.

Here is the call graph for this function:

◆ FRIEND_TEST()

TYRoute::FRIEND_TEST ( TestRoads  ,
xml_roundtrip   
)
private

◆ fromXML()

int TYRoute::fromXML ( DOM_Element  domElement)
virtual

Extrait les informations a partir du noeud DOM passe afin de recuperer les parametres de la classe.

Parameters
domElementLe noeud DOM a partir duquel les parametres doivent etre recuperes.
Returns
1 si la recuperation des parametres a reussie.

Reimplemented from TYAcousticLine.

Definition at line 188 of file TYRoute.cpp.

Here is the call graph for this function:

◆ getNMBP08RoadTraffic()

const RoadTraffic & TYRoute::getNMBP08RoadTraffic ( enum TrafficRegimes  regime)

Definition at line 692 of file TYRoute.cpp.

Here is the call graph for this function:

◆ getNMPB08RoadTrafficComponent()

const RoadTrafficComponent & TYRoute::getNMPB08RoadTrafficComponent ( enum TrafficRegimes  regime,
enum TYTrafic::VehicleTypes  vehic_type 
) const

Definition at line 485 of file TYRoute.cpp.

Here is the caller graph for this function:

◆ getOffSet()

double TYRoute::getOffSet ( )
inlineprotected

Definition at line 282 of file TYRoute.h.

◆ getTraficJour() [1/2]

const TYTrafic& TYRoute::getTraficJour ( ) const
inline

Set/Get du trafic de jour.

Definition at line 104 of file TYRoute.h.

Here is the caller graph for this function:

◆ getTraficJour() [2/2]

TYTrafic& TYRoute::getTraficJour ( )
inline

Definition at line 105 of file TYRoute.h.

◆ getTraficNuit() [1/2]

const TYTrafic& TYRoute::getTraficNuit ( ) const
inline

Set/Get du trafic de jour. Set/Get du trafic de nuit.

Definition at line 115 of file TYRoute.h.

Here is the caller graph for this function:

◆ getTraficNuit() [2/2]

TYTrafic& TYRoute::getTraficNuit ( )
inline

Definition at line 116 of file TYRoute.h.

◆ getVitMoy()

double TYRoute::getVitMoy ( ) const
inline

Set/Get de la vitesse moyenne.

Definition at line 89 of file TYRoute.h.

Here is the call graph for this function:

◆ is_valid_declivity()

bool TYRoute::is_valid_declivity ( double  decli)
staticprotected

Check that the declivity is valid, i.e. is not undefined_declivity.

Definition at line 36 of file TYRoute.cpp.

Here is the caller graph for this function:

◆ note77_check_validity()

bool TYRoute::note77_check_validity ( double  aadt_hgv,
double  aadt_lv,
TYRoute::RoadType  road_type,
TYRoute::RoadFunction  road_function,
QString *  out_msg = NULL 
)
static

Check the validity domain of AADT for Note 77.

Definition at line 594 of file TYRoute.cpp.

Here is the caller graph for this function:

◆ operator!=()

bool TYRoute::operator!= ( const TYRoute other) const

Operateur !=.

Definition at line 141 of file TYRoute.cpp.

Here is the call graph for this function:

◆ operator=()

TYRoute & TYRoute::operator= ( const TYRoute other)

Operateur =.

Definition at line 108 of file TYRoute.cpp.

Here is the call graph for this function:

◆ operator==()

bool TYRoute::operator== ( const TYRoute other) const

Operateur ==.

Definition at line 124 of file TYRoute.cpp.

Here is the caller graph for this function:

◆ ramp()

double TYRoute::ramp ( ) const
inline

Getter for the ramp in percent ( > 0 if rise, < 0 if down)

Definition at line 194 of file TYRoute.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFromAADT()

bool TYRoute::setFromAADT ( double  aadt_hgv,
double  aadt_lv,
TYRoute::RoadType  road_type,
TYRoute::RoadFunction  road_function,
QString *  out_msg = NULL 
)

Apply Note77 from Setra to estimate trafic from AADT and road kind.

Annual Average Daily Traffic for both HGV and LV can be used to estimate traffic as long as the kind of the road is identified. This approach is described in Setra Note 77 (french) or appendix C from the guide Road Noise Prediction.

This method implements this approach and sets the road traffic if successful. If the argument in the scope of application of the Note77 the method succeed and update the traffic. Otherwise it fails and does not modifyt the road.

Parameters
aadt_hgvAADT for the HGV
aadt_lvAADT for the LV
road_typeThe type (motor way or intercity)
road_functionThe function of the road (long distance or regional)
out_msgA pointer a QString which will be cleared and filled with diagnostic information if the validity check fails.
Returns
whether the call succeded.

Definition at line 639 of file TYRoute.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOffSet()

void TYRoute::setOffSet ( const double &  offSet)
inlineprotected

Definition at line 283 of file TYRoute.h.

◆ setRamp()

void TYRoute::setRamp ( double  ramp)

Setter for the ramp in percent ( > 0 if rise, < 0 if down)

Definition at line 709 of file TYRoute.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setRoadTrafficArrayForRegime()

void TYRoute::setRoadTrafficArrayForRegime ( enum TrafficRegimes  regime)
private

internally set the RoadTraffic's array of RoadTrafficComponents according to the given regime.

Definition at line 490 of file TYRoute.cpp.

Here is the caller graph for this function:

◆ setRoadTrafficComponent()

void TYRoute::setRoadTrafficComponent ( enum TrafficRegimes  regime,
enum TYTrafic::VehicleTypes  vehic_type,
double  flow,
double  speed,
RoadFlowType  type = FlowType_CONST 
)

Set the traffic parameter for a given regime and type of vehicles.

Parameters
regimeregime to set the traffic for : Day, Evening or Night to be set
vehic_typetype to set the traffic for : light vehicles (LV) or heavy good vehicles (HGV) to be set
flowthe vehicle flow in vehicle per hour
speedthe mean speed of the vehicles in km per hour
typethe type of flow as specified by the NMPB08 library (default to constant speed)

Definition at line 714 of file TYRoute.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSurfaceAge()

void TYRoute::setSurfaceAge ( double  age)

Setter for the surface age.

Definition at line 704 of file TYRoute.cpp.

Here is the caller graph for this function:

◆ setSurfaceType()

void TYRoute::setSurfaceType ( RoadSurfaceType  type)

Setter for the road surface type.

Definition at line 699 of file TYRoute.cpp.

Here is the caller graph for this function:

◆ setVitMoy()

void TYRoute::setVitMoy ( double  vit)
inline

Set/Get de la vitesse moyenne.

Definition at line 95 of file TYRoute.h.

Here is the call graph for this function:

◆ surfaceAge()

double TYRoute::surfaceAge ( ) const
inline

Getter for the surface age.

Definition at line 189 of file TYRoute.h.

Here is the caller graph for this function:

◆ surfaceType()

RoadSurfaceType TYRoute::surfaceType ( ) const
inline

Getter for the road surface type.

Definition at line 185 of file TYRoute.h.

Here is the caller graph for this function:

◆ toString()

std::string TYRoute::toString ( ) const
virtual

Retourne une chaine de caractere donnant des informations sur cet objet (utile pour le debugage).

Returns
Une chaine de caractere informative sur cet objet.

Reimplemented from TYAcousticLine.

Definition at line 163 of file TYRoute.cpp.

◆ toXML()

DOM_Element TYRoute::toXML ( DOM_Element domElement)
virtual

Construit une arborescence DOM a partir du noeud passe afin de sauvegarder les parametres au format XML.

Parameters
domElementLe noeud DOM parent a partir duquel l'arborescence doit etre creee.
Returns
Le noeud DOM nouvellement cree.

Reimplemented from TYAcousticLine.

Definition at line 168 of file TYRoute.cpp.

Here is the call graph for this function:

◆ updateAcoustic()

bool TYRoute::updateAcoustic ( const bool &  force = false)
virtual

Update acoustic characteristics of the road

Reimplemented from TYAcousticLine.

Definition at line 383 of file TYRoute.cpp.

Here is the call graph for this function:

◆ updateAltitudes()

bool TYRoute::updateAltitudes ( const TYAltimetrie alti,
LPTYRouteGeoNode  pGeoNode,
OMatrix  globalMatrix 
)
virtual

Required the road to update its altitude after altimetry changed.

Parameters
altithe altimetry the altitude must be updated from
pGeoNodethe GeoNode associated with this Road
globalMatrixis the matrix allowing to move 'pGeoNode' to a global frame. If 'pGeoNode' is in the root site node, it is equal to the identity matrix.
Returns
whether the update succeeded.

Definition at line 407 of file TYRoute.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateComputedDeclivity()

void TYRoute::updateComputedDeclivity ( )
protected

update the mean declivity from the current source distribution.

NB Do ensure that distriSrcs(const TYAltimetrie&) has been called since last geometry or altimetry changes.

In case the computed declivity is not valid, report an error and let it unchanged

Definition at line 496 of file TYRoute.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _offSet

double TYRoute::_offSet
protected

Height offset of sources above road

Definition at line 295 of file TYRoute.h.

◆ computed_declivity

bool TYRoute::computed_declivity

If true, the mean declivity of the read is computed from the altimetry.

Default to false, i.e. the déclivity specified by the used is kept.

Definition at line 228 of file TYRoute.h.

◆ note77_hourly_HGV_coeff

const TYRoute::note77_tables TYRoute::note77_hourly_HGV_coeff
staticprivate
Initial value:
=
{
{
{20, 20, 39},
{17, 28, 50}
},
{
{17, 27, 51},
{16, 34, 73}
}
}

Definition at line 320 of file TYRoute.h.

◆ note77_hourly_LV_coeff

const TYRoute::note77_tables TYRoute::note77_hourly_LV_coeff
staticprivate
Initial value:
=
{
{
{17, 19, 82},
{17, 18, 100}
},
{
{17, 19, 110},
{17, 19, 120}
}
}

Definition at line 321 of file TYRoute.h.

◆ note77_lower_bounds

const TYRoute::note77_tables TYRoute::note77_lower_bounds
staticprivate
Initial value:
=
{
{
{7000, 1300, 16},
{7000, 500, 6}
},
{
{2500, 300, 8},
{2500, 250, 5}
}
}

Definition at line 318 of file TYRoute.h.

◆ note77_upper_bounds

const TYRoute::note77_tables TYRoute::note77_upper_bounds
staticprivate
Initial value:
=
{
{
{70000, 13500, 30},
{93000, 14000, 34}
},
{
{22500, 5000, 34},
{22000, 2500, 17}
}
}

Definition at line 319 of file TYRoute.h.

◆ road_traffic

RoadTraffic TYRoute::road_traffic
protected

Definition at line 289 of file TYRoute.h.

◆ traffic_regimes

TYTrafic TYRoute::traffic_regimes[NB_TRAFFIC_REGIMES]
protected

Definition at line 290 of file TYRoute.h.

◆ undefined_declivity

const double TYRoute::undefined_declivity = std::numeric_limits<double>::quiet_NaN()
static

Definition at line 54 of file TYRoute.h.


The documentation for this class was generated from the following files: