SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Public Slots | Signals | Public Member Functions | Private Attributes | List of all members
smile::CNbodyExportStatWorker Class Reference

Worker object that calculates statistics after Nbody export (currently, computes virial ratio). More...

#include <core.h>

Inheritance diagram for smile::CNbodyExportStatWorker:
Inheritance graph
[legend]
Collaboration diagram for smile::CNbodyExportStatWorker:
Collaboration graph
[legend]

Public Slots

void doWork ()
 compute the virial ratio, then delete points (which were const, huh?)
 
void halt ()
 terminate computing the virial ratio immediately
 

Signals

void exportFinished (const QString &result)
 communicate the virial ratio computed and the previous info string
 
void workDone ()
 signal that the helper thread may be deleted
 

Public Member Functions

 CNbodyExportStatWorker (const CPointMassSet< float > *_points, const QString &_info, const CPotential *_extraPotential=NULL)
 

Private Attributes

const CPointMassSet< float > * points
 the point masses of the snapshot
 
CPointMassSetHandler< float > * handler
 actual computation is done by this object
 
QString info
 previous info string which is appended to the output of exportFinished()
 
const CPotentialextraPotential
 additional potential which contributes to the potential energy of the N-body snapshot
 

Detailed Description

Worker object that calculates statistics after Nbody export (currently, computes virial ratio).

Created by CSmileCore and put into a separate thread. Initialized with a pointer to point mass set (Nbody model), and an info string. Point mass set, passed as a parameter to the constructor, is destroyed upon thread completion! Returns info string + virial ratio computed.


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