Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
TYSolver Class Reference

9613 Solver More...

#include <TYSolver.h>

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

Public Member Functions

 TYSolver ()
 Constructor. More...
 
virtual ~TYSolver ()
 Destructor. More...
 
virtual bool solve (const tympan::AcousticProblemModel &aproblem, tympan::AcousticResultModel &aresult, tympan::LPSolverConfiguration configuration)
 Launch the resolution and get the results. More...
 
const std::vector< TYStructSurfIntersect > & getTabPolygon () const
 Get the array of polygons. More...
 
TYFaceSelectorgetFaceSelector ()
 Get the face selector. More...
 
TYAcousticPathFindergetAcousticPathFinder ()
 Get the acoustic path finder. More...
 
TYAcousticModelgetAcousticModel ()
 Get acoustic model. More...
 
const ScenegetScene () const
 Get the Scene. More...
 
 TYSolver ()
 Constructor. More...
 
virtual ~TYSolver ()
 Destructor. More...
 
virtual bool solve (const tympan::AcousticProblemModel &aproblem, tympan::AcousticResultModel &aresult, tympan::LPSolverConfiguration configuration)
 Launch the resolution and get the results. More...
 
const std::vector< TYStructSurfIntersect > & getTabPolygon () const
 Get the array of polygons. More...
 
TYFaceSelectorgetFaceSelector ()
 Get the face selector. More...
 
TYAcousticPathFindergetAcousticPathFinder ()
 Get the acoustic path finder. More...
 
TYAcousticModelgetAcousticModel ()
 Get acoustic model. More...
 
const ScenegetScene () const
 Get the Scene. More...
 
- Public Member Functions inherited from SolverInterface
 SolverInterface ()
 
virtual ~SolverInterface ()
 
virtual void purge ()
 

Protected Member Functions

std::unique_ptr< TYFaceSelectormake_face_selector ()
 TYFaceSelector builder. More...
 
std::unique_ptr< TYAcousticPathFindermake_path_finder ()
 TYAcousticPathFinder builder. More...
 
std::unique_ptr< TYAcousticModelmake_acoustic_model ()
 TYAcousticModel builder. More...
 
std::unique_ptr< TYFaceSelectormake_face_selector ()
 TYFaceSelector builder. More...
 
std::unique_ptr< TYAcousticPathFindermake_path_finder ()
 TYAcousticPathFinder builder. More...
 
std::unique_ptr< TYAcousticModelmake_acoustic_model ()
 TYAcousticModel builder. More...
 

Protected Attributes

std::unique_ptr< TYFaceSelector_faceSelector
 Pointer to the TYFaceSelector. More...
 
std::unique_ptr< TYAcousticPathFinder_acousticPathFinder
 Pointer to the TYAcousticPathFinder. More...
 
std::unique_ptr< TYAcousticModel_acousticModel
 Pointer to the TYAcousticModel. More...
 

Private Member Functions

bool buildCalcStruct (const tympan::AcousticProblemModel &aproblem)
 
bool appendTriangleToScene ()
 Convertion des triangles Tympan en primitives utilisables par ray tracer. More...
 
bool buildCalcStruct (const tympan::AcousticProblemModel &aproblem)
 
bool appendTriangleToScene ()
 

Private Attributes

std::vector< TYStructSurfIntersect_tabPolygon
 Vector of TYStructSurfIntersect. More...
 
std::vector< TYTrajet * > _tabTrajets
 Vector of TYTrajet. More...
 
OThreadPool_pool
 
std::unique_ptr< Scene_scene
 Pointer to the Scene. More...
 

Detailed Description

9613 Solver

Default solver.

Definition at line 37 of file TYSolver.h.

Constructor & Destructor Documentation

◆ TYSolver() [1/2]

TYSolver::TYSolver ( )

Constructor.

Definition at line 31 of file TYSolver.cpp.

Here is the call graph for this function:

◆ ~TYSolver() [1/2]

TYSolver::~TYSolver ( )
virtual

Destructor.

Definition at line 50 of file TYSolver.cpp.

◆ TYSolver() [2/2]

TYSolver::TYSolver ( )

Constructor.

◆ ~TYSolver() [2/2]

virtual TYSolver::~TYSolver ( )
virtual

Destructor.

Member Function Documentation

◆ appendTriangleToScene() [1/2]

bool TYSolver::appendTriangleToScene ( )
private

Convertion des triangles Tympan en primitives utilisables par ray tracer.

Returns
Renvoie vrai si l'ensemble des primitives a bien pu etre importe dans la simulation.

Definition at line 222 of file TYSolver.cpp.

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

◆ appendTriangleToScene() [2/2]

bool TYSolver::appendTriangleToScene ( )
private

◆ buildCalcStruct() [1/2]

bool TYSolver::buildCalcStruct ( const tympan::AcousticProblemModel aproblem)
private

Definition at line 192 of file TYSolver.cpp.

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

◆ buildCalcStruct() [2/2]

bool TYSolver::buildCalcStruct ( const tympan::AcousticProblemModel aproblem)
private

◆ getAcousticModel() [1/2]

TYAcousticModel* TYSolver::getAcousticModel ( )
inline

Get acoustic model.

Definition at line 67 of file TYSolver.h.

Here is the caller graph for this function:

◆ getAcousticModel() [2/2]

TYAcousticModel* TYSolver::getAcousticModel ( )
inline

Get acoustic model.

Definition at line 67 of file TYSolver.h.

◆ getAcousticPathFinder() [1/2]

TYAcousticPathFinder* TYSolver::getAcousticPathFinder ( )
inline

Get the acoustic path finder.

Definition at line 62 of file TYSolver.h.

Here is the caller graph for this function:

◆ getAcousticPathFinder() [2/2]

TYAcousticPathFinder* TYSolver::getAcousticPathFinder ( )
inline

Get the acoustic path finder.

Definition at line 62 of file TYSolver.h.

◆ getFaceSelector() [1/2]

TYFaceSelector* TYSolver::getFaceSelector ( )
inline

Get the face selector.

Definition at line 58 of file TYSolver.h.

Here is the caller graph for this function:

◆ getFaceSelector() [2/2]

TYFaceSelector* TYSolver::getFaceSelector ( )
inline

Get the face selector.

Definition at line 58 of file TYSolver.h.

◆ getScene() [1/2]

const Scene* TYSolver::getScene ( ) const
inline

Get the Scene.

Definition at line 72 of file TYSolver.h.

Here is the caller graph for this function:

◆ getScene() [2/2]

const Scene* TYSolver::getScene ( ) const
inline

Get the Scene.

Definition at line 72 of file TYSolver.h.

◆ getTabPolygon() [1/2]

const std::vector<TYStructSurfIntersect>& TYSolver::getTabPolygon ( ) const
inline

Get the array of polygons.

Definition at line 53 of file TYSolver.h.

Here is the caller graph for this function:

◆ getTabPolygon() [2/2]

const std::vector<TYStructSurfIntersect>& TYSolver::getTabPolygon ( ) const
inline

Get the array of polygons.

Definition at line 53 of file TYSolver.h.

◆ make_acoustic_model() [1/2]

std::unique_ptr< TYAcousticModel > TYSolver::make_acoustic_model ( )
protected

TYAcousticModel builder.

Definition at line 187 of file TYSolver.cpp.

Here is the caller graph for this function:

◆ make_acoustic_model() [2/2]

std::unique_ptr<TYAcousticModel> TYSolver::make_acoustic_model ( )
protected

TYAcousticModel builder.

◆ make_face_selector() [1/2]

std::unique_ptr< TYFaceSelector > TYSolver::make_face_selector ( )
protected

TYFaceSelector builder.

Definition at line 177 of file TYSolver.cpp.

Here is the caller graph for this function:

◆ make_face_selector() [2/2]

std::unique_ptr<TYFaceSelector> TYSolver::make_face_selector ( )
protected

TYFaceSelector builder.

◆ make_path_finder() [1/2]

std::unique_ptr< TYAcousticPathFinder > TYSolver::make_path_finder ( )
protected

TYAcousticPathFinder builder.

Definition at line 182 of file TYSolver.cpp.

Here is the caller graph for this function:

◆ make_path_finder() [2/2]

std::unique_ptr<TYAcousticPathFinder> TYSolver::make_path_finder ( )
protected

◆ solve() [1/2]

bool TYSolver::solve ( const tympan::AcousticProblemModel aproblem,
tympan::AcousticResultModel aresult,
tympan::LPSolverConfiguration  configuration 
)
virtual

Launch the resolution and get the results.

Parameters
aproblemAcoustic problem
aresultResults
configurationSolver configuration
Returns
Always true

Implements SolverInterface.

Definition at line 64 of file TYSolver.cpp.

Here is the call graph for this function:

◆ solve() [2/2]

virtual bool TYSolver::solve ( const tympan::AcousticProblemModel aproblem,
tympan::AcousticResultModel aresult,
tympan::LPSolverConfiguration  configuration 
)
virtual

Launch the resolution and get the results.

Parameters
aproblemAcoustic problem
aresultResults
configurationSolver configuration
Returns
Always true

Implements SolverInterface.

Member Data Documentation

◆ _acousticModel

std::unique_ptr< TYAcousticModel > TYSolver::_acousticModel
protected

Pointer to the TYAcousticModel.

Definition at line 84 of file TYSolver.h.

◆ _acousticPathFinder

std::unique_ptr< TYAcousticPathFinder > TYSolver::_acousticPathFinder
protected

Pointer to the TYAcousticPathFinder.

Definition at line 83 of file TYSolver.h.

◆ _faceSelector

std::unique_ptr< TYFaceSelector > TYSolver::_faceSelector
protected

Pointer to the TYFaceSelector.

Definition at line 82 of file TYSolver.h.

◆ _pool

OThreadPool * TYSolver::_pool
private

Definition at line 102 of file TYSolver.h.

◆ _scene

std::unique_ptr< Scene > TYSolver::_scene
private

Pointer to the Scene.

Definition at line 105 of file TYSolver.h.

◆ _tabPolygon

std::vector< TYStructSurfIntersect > TYSolver::_tabPolygon
private

Vector of TYStructSurfIntersect.

Definition at line 98 of file TYSolver.h.

◆ _tabTrajets

std::vector< TYTrajet * > TYSolver::_tabTrajets
private

Vector of TYTrajet.

Definition at line 100 of file TYSolver.h.


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