Code_TYMPAN  4.2.0
Industrial site acoustic simulation
Public Member Functions | Private Attributes | List of all members
TYTask Class Reference

Task of a thread collection for Tympan. More...

#include <TYTask.h>

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

Public Member Functions

 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. More...
 
 ~TYTask ()
 Destructor. More...
 
void main ()
 Main procedure to run the task. More...
 
- Public Member Functions inherited from OTask
 OTask ()
 Default constructor. More...
 
virtual ~OTask ()
 Destructor : waits for the end of the task to destroy it. More...
 
bool isRunning () const
 Return true if the task is running, false otherwise. More...
 
bool isCompleted () const
 Return true if the task is completed, false otherwise. More...
 
bool isCanceled () const
 Return true if the task has been cancelled, false otherwise. More...
 
void reset ()
 Reset the task status (_running=false and _completed=false) More...
 
- Public Member Functions inherited from IRefCount
 IRefCount ()
 
virtual ~IRefCount ()
 
virtual int incRef ()
 
virtual int decRef ()
 
int getRefCount () const
 

Private Attributes

TYSolver_solver
 Reference to the solver. More...
 
TYTrajet_trajet
 Reference to the path. More...
 
unsigned int _nNbTrajets
 Path number. More...
 
std::deque< TYSIntersection_tabIntersect
 Array of intersections. More...
 
const tympan::nodes_pool_t_nodes
 
const tympan::triangle_pool_t_triangles
 
const tympan::material_pool_t_materials
 

Additional Inherited Members

- Protected Attributes inherited from OTask
bool _running
 Running flag. More...
 
bool _completed
 Completed flag. More...
 
bool _canceled
 Cancel flag. More...
 
- Protected Attributes inherited from IRefCount
int m_refCount
 The reference counter. More...
 

Detailed Description

Task of a thread collection for Tympan.

Definition at line 31 of file TYTask.h.

Constructor & Destructor Documentation

◆ TYTask()

TYTask::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.

Parameters
solverDefault solver object
nodesNodes
trianglesTriangles
materialsMaterials
trajetPath
nNbTrajetsPath number

Definition at line 23 of file TYTask.cpp.

◆ ~TYTask()

TYTask::~TYTask ( )

Destructor.

Definition at line 34 of file TYTask.cpp.

Member Function Documentation

◆ main()

void TYTask::main ( void  )
virtual

Main procedure to run the task.

Implements OTask.

Definition at line 38 of file TYTask.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ _materials

const tympan::material_pool_t& TYTask::_materials
private

Definition at line 64 of file TYTask.h.

◆ _nNbTrajets

unsigned int TYTask::_nNbTrajets
private

Path number.

Definition at line 57 of file TYTask.h.

◆ _nodes

const tympan::nodes_pool_t& TYTask::_nodes
private

Definition at line 62 of file TYTask.h.

◆ _solver

TYSolver& TYTask::_solver
private

Reference to the solver.

Definition at line 51 of file TYTask.h.

◆ _tabIntersect

std::deque<TYSIntersection> TYTask::_tabIntersect
private

Array of intersections.

Definition at line 60 of file TYTask.h.

◆ _trajet

TYTrajet& TYTask::_trajet
private

Reference to the path.

Definition at line 54 of file TYTask.h.

◆ _triangles

const tympan::triangle_pool_t& TYTask::_triangles
private

Definition at line 63 of file TYTask.h.


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