Brief description of class still missing. More...
#include <ProcessUnit.h>
Public Member Functions | |
void | addCoordinate (QString station, Point p) |
void | clearCoordinates () |
ProcessUnit (QObject *parent=0) | |
void | setArrayWindowLength (double wl) |
void | setHVWindowLength (double wl) |
void | setServer (QString serverAddress, quint16 port) |
void | setStreams (QString streams) |
~ProcessUnit () |
Brief description of class still missing.
Full description of class still missing
ProcessUnit::ProcessUnit | ( | QObject * | parent = 0 | ) |
Description of constructor still missing
References GeopsySLink::SeedLink::setBufferType(), QGpCoreTools::SamplingParameters::setCount(), setHVWindowLength(), QGpCoreTools::SamplingParameters::setRange(), and TRACE.
: QObject(parent) { TRACE; _arrayProcess=0; //_hvProcess=0; _seedLink.setBufferType(SeedLinkStream::Rotate); connect(&_seedLink,SIGNAL(infoAvailable()), this, SLOT(streamInfoAvailable()), Qt::QueuedConnection); connect(&_seedLink,SIGNAL(dataChanged( Signal *, TimeRange)), this, SLOT(monitorDataChange(Signal *, TimeRange)), Qt::QueuedConnection); connect(&_seedLink, SIGNAL(error(SeedLink::Error)), this, SLOT(seedLinkError(SeedLink::Error)), Qt::QueuedConnection); _processUpdateTimer.setInterval(10000); connect (&_processUpdateTimer, SIGNAL(timeout()), this, SLOT(updateDataProcess())); _frequencies.setCount(50); _frequencies.setRange(0.5, 15.0); _arrayWindowLength=50.0; setHVWindowLength(50.0); }
Description of destructor still missing
References GeopsySLink::SeedLink::stop(), and TRACE.
void ProcessUnit::addCoordinate | ( | QString | station, |
Point | p | ||
) |
Referenced by main().
{ stopArrayProcess(); _stationCoordinates.insert(station, p); startArrayProcess(); }
void ProcessUnit::clearCoordinates | ( | ) |
Referenced by main().
{ stopArrayProcess(); _stationCoordinates.clear(); }
void ProcessUnit::setArrayWindowLength | ( | double | wl | ) |
References GeopsySLink::SeedLink::setMaximumDuration(), RealTimeArrayManager::setWindowLenght(), TRACE, and QGpCoreTools::SamplingParameters::value().
{ TRACE; _arrayWindowLength=wl; double arrayTw=_arrayWindowLength/_frequencies.value(0); double maxTw=arrayTw>_hvWindowLength ? arrayTw : _hvWindowLength; _seedLink.setMaximumDuration(10.0*maxTw); if(_arrayProcess) _arrayProcess->setWindowLenght(_arrayWindowLength); }
void ProcessUnit::setHVWindowLength | ( | double | wl | ) |
References GeopsySLink::SeedLink::setMaximumDuration(), TRACE, and QGpCoreTools::SamplingParameters::value().
Referenced by ProcessUnit().
{ TRACE; _hvWindowLength=wl; double arrayTw=_arrayWindowLength/_frequencies.value(0); double maxTw=arrayTw>_hvWindowLength ? arrayTw : _hvWindowLength; _seedLink.setMaximumDuration(10.0*maxTw); //if(_hvProcess) _hvProcess->setWindowLenght(tw); }
void ProcessUnit::setServer | ( | QString | serverAddress, |
quint16 | port | ||
) |
References GeopsySLink::SeedLink::setServer(), and GeopsySLink::SeedLink::streams().
Referenced by main().
{ _seedLink.setServer(serverAddress.toAscii(), port); // Request streams _seedLink.streams(); }
void ProcessUnit::setStreams | ( | QString | selection | ) | [inline] |
Define the streams to select. Specification of streams is either the same as for slinktool or regular expressions:
SL:stream1[:selectors1],stream2[:selectors2],... RX:stream1RX[:selectors1RX,...
'stream' is in NET_STA format, followed by a selection of streams. If no selector is given, all streams are started.
Examples: "SL:WA_WAU01:HHZ HHE HHN, WA_WAU02:HH?,WA_WAU03,..." "RX:WA_WAU[0-9]{2}"
Referenced by main().
{_streams=streams;}