Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYTask.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_TASK_9613__
17 #define __TY_TASK_9613__
18 
19 #include <deque>
20 #include "threading.h"
21 
22 class TYSolver;
23 class TYTrajet;
24 class nodes_pool_t;
25 class triangle_pool_t;
26 class material_pool_t;
27 
31 class TYTask : public OTask
32 {
33 public:
43  TYTask(TYSolver& solver, const tympan::nodes_pool_t& nodes, const tympan::triangle_pool_t& triangles,
44  const tympan::material_pool_t& materials, TYTrajet& trajet, int nNbTrajets);
45 
46  ~TYTask();
47 
48  void main();
49 
50 private:
52 
54 
55  unsigned int _nNbTrajets;
56 
57  std::deque<TYSIntersection> _tabIntersect;
58 
62 };
63 
65 
66 #endif // __TY_TASK_9613__
SmartPtr< TYTask > LPTYTask
Smart Pointer on TYTask.
Definition: TYTask.h:64
Task of a threads collection.
Definition: threading.h:168
9613 Solver
Definition: TYSolver.h:38
Task of a thread collection for Tympan.
Definition: TYTask.h:32
TYTrajet & _trajet
Reference to the path.
Definition: TYTask.h:53
TYTask(TYSolver &solver, const tympan::nodes_pool_t &nodes, const tympan::triangle_pool_t &triangles, const tympan::material_pool_t &materials, TYTrajet &trajet, int nNbTrajets)
Constructor.
Definition: TYTask.cpp:23
const tympan::nodes_pool_t & _nodes
Definition: TYTask.h:59
void main()
Main procedure to run the task.
Definition: TYTask.cpp:32
const tympan::material_pool_t & _materials
Definition: TYTask.h:61
~TYTask()
Destructor.
Definition: TYTask.cpp:30
const tympan::triangle_pool_t & _triangles
Definition: TYTask.h:60
unsigned int _nNbTrajets
Path number.
Definition: TYTask.h:55
std::deque< TYSIntersection > _tabIntersect
Array of intersections.
Definition: TYTask.h:57
TYSolver & _solver
Reference to the solver.
Definition: TYTask.h:51
This class TYTrajet (journey) links a couple Source-Receptor and a collection of paths,...
Definition: TYTrajet.h:35
std::deque< Point > nodes_pool_t
std::deque< material_ptr_t > material_pool_t
Definition: entities.hpp:41
std::deque< AcousticTriangle > triangle_pool_t
Array of AcousticTriangle.
Definition: entities.hpp:199