Brief description of class still missing. More...
#include <FKLoop.h>
Public Member Functions | |
void | addLog (const QString &s) const |
FKLoop () | |
bool | hasComponent (int iComp) const |
void | lockOutput (int iComp) const |
QFile * | output (int iComp) const |
void | setArray (const ArrayStations *a) |
void | setLog (QString *l) |
bool | setParameters (FKParameters *p) |
void | unlockOutput (int iComp) const |
~FKLoop () | |
Protected Member Functions | |
virtual LoopTask * | newTask () |
Protected Attributes | |
const ArrayStations * | _array |
const FKParameters * | _param |
Brief description of class still missing.
Full description of class still missing
FKLoop::FKLoop | ( | ) |
FKLoop::~FKLoop | ( | ) |
void FKLoop::addLog | ( | const QString & | s | ) | const |
References TRACE.
Referenced by LinearFKPassiveLoopTask::run(), and FKLoopTask::run().
{ TRACE; if(_log) { _logMutex.lock(); (*_log) += s; _logMutex.unlock(); } }
bool FKLoop::hasComponent | ( | int | iComp | ) | const [inline] |
Referenced by FKLoopTask::run(), HRFKLoopTask::setGrid(), FKLoopTask::setGrid(), and FKLoopTask::~FKLoopTask().
{return _dotmax[iComp];}
void FKLoop::lockOutput | ( | int | iComp | ) | const [inline] |
Referenced by FKLoopTask::exportResults().
{_dotmaxMutex[iComp].lock();}
LoopTask * FKLoop::newTask | ( | ) | [protected, virtual] |
Implements QGpCoreTools::ParallelLoop.
Reimplemented in LinearFKPassiveLoop, and HRFKLoop.
References _array, _param, FKLoopTask::setArray(), FKLoopTask::setGrid(), FKLoopTask::setLoop(), and FKLoopTask::setParameters().
{ FKLoopTask * t=new FKLoopTask; t->setLoop(this); t->setArray(*_array); t->setParameters(_param); t->setGrid(); return t; }
QFile* FKLoop::output | ( | int | iComp | ) | const [inline] |
Referenced by FKLoopTask::exportResults().
{return _dotmax[iComp];}
void FKLoop::setArray | ( | const ArrayStations * | a | ) |
Referenced by ToolLinearFKPassive::start(), ToolHRFK::start(), and ToolFK::start().
void FKLoop::setLog | ( | QString * | l | ) | [inline] |
Referenced by ToolLinearFKPassive::start(), ToolHRFK::start(), and ToolFK::start().
{_log=l;}
bool FKLoop::setParameters | ( | FKParameters * | p | ) |
References _array, _param, GeopsyCore::StationList::components(), and ArrayCore::ArrayParameters::outputFile().
Referenced by ToolLinearFKPassive::start(), and ToolFK::start().
{ ASSERT(_array); _param=p; if(_param->outputFile().isEmpty()) { return false; } // Open output files QFile * f; StationSignals::Components comps=_array->components(); if(comps & StationSignals::VerticalComponent) { QString suffix=comps & StationSignals::HorizontalComponent ? "vertical" : ""; f=initMaxFile(suffix); if(!f) return false; _dotmax[0]=f; } if(comps & StationSignals::HorizontalComponent) { f=initMaxFile("radial"); if(!f) return false; _dotmax[1]=f; f=initMaxFile("transverse"); if(!f) return false; _dotmax[2]=f; } return true; }
void FKLoop::unlockOutput | ( | int | iComp | ) | const [inline] |
Referenced by FKLoopTask::exportResults().
{_dotmaxMutex[iComp].unlock();}
const ArrayStations* FKLoop::_array [protected] |
Referenced by FKLoop(), HRFKLoop::newTask(), newTask(), LinearFKPassiveLoop::newTask(), setArray(), and setParameters().
const FKParameters* FKLoop::_param [protected] |
Referenced by FKLoop(), HRFKLoop::newTask(), newTask(), LinearFKPassiveLoop::newTask(), HRFKLoop::parameters(), setParameters(), and ~FKLoop().