Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

clLocate Class Reference

Master node for locate server. More...

#include <Locate.hh>

Collaboration diagram for clLocate:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clLocate ()
 ~clLocate ()
int Main (int, char **)
void Stop ()
void * ProcessThread (void *)
void * ServeClientThread (void *)

Private Member Functions

bool Initialize ()
void SendParams (int, const char *, int, long, long, float)

Private Attributes

volatile bool bRun
int iSensorCount
int iPort
int iMsgSize
long lWidth
long lHeight
GDT fWeight
GDT * fpLocMatrix
stDirCfg sDirCfg
clAlloc LocMatrix
clAlloc ResMsg
clCondition CndResMsg
clMutex MtxResMsg
clCfgFile Cfg
clDSPOp DSP
clLogFile Log
clLocateMsg Msg
clMPIComm MPICCtrl
clMPIComm MPICParam
clMPIComm MPICNormal

Detailed Description

Master node for locate server.

Definition at line 73 of file Locate.hh.


Constructor & Destructor Documentation

clLocate::clLocate  ) 
 

Definition at line 220 of file Locate.cc.

References clLogFile::Add(), bRun, iSensorCount, LOCATE_CONTROL_TAG, LOCATE_LOGFILE, LOCATE_NORMAL_TAG, LOCATE_PARAM_TAG, Log, MPICCtrl, MPICNormal, MPICParam, clLogFile::Open(), and clMPIComm::SetTag().

clLocate::~clLocate  ) 
 

Definition at line 232 of file Locate.cc.

References clLogFile::Add(), and Log.


Member Function Documentation

bool clLocate::Initialize  )  [private]
 

Definition at line 137 of file Locate.cc.

References Cfg, DSP, _stDirCfg::fAlpha, _stDirCfg::fIntegrationTime, _stDirCfg::fLowFrequency, fpLocMatrix, _stDirCfg::fScalingExp, _stDirCfg::fSoundSpeed, fWeight, GDT, clCfgFile::GetFlt(), clCfgFile::GetInt(), GLOBAL_HEADER_LEN, iMsgSize, iNodeCount, iPort, _stDirCfg::iRemoveNoise, _stDirCfg::iScaling, iSensorCount, _stDirCfg::lGapLength, lHeight, _stDirCfg::lMeanLength, LOCATE_CFGFILE, LOCATE_DEF_ALPHA, LOCATE_DEF_GAPLENGTH, LOCATE_DEF_INTTIME, LOCATE_DEF_LOWFREQ, LOCATE_DEF_MEANLENGTH, LOCATE_DEF_REMOVENOISE, LOCATE_DEF_SCALING, LOCATE_DEF_SCALINGEXP, LOCATE_DEF_SOUNDSPEED, LOCATE_DEF_WINDOWSIZE, LOCATE_HOSTNAME_MAXLEN, LOCATE_SENSOR_LIST, LocMatrix, lWidth, _stDirCfg::lWindowSize, ResMsg, sDirCfg, SendParams(), and clCfgFile::SetFileName().

Referenced by Main().

void clLocate::SendParams int  ,
const char *  ,
int  ,
long  ,
long  ,
float 
[private]
 

Definition at line 200 of file Locate.cc.

References lHeight, LOCATE_HOSTNAME_MAXLEN, lWidth, MPICParam, sDirCfg, and clMPIComm::Send().

Referenced by Initialize().

int clLocate::Main int  ,
char ** 
 

Definition at line 238 of file Locate.cc.

References bDebug, clSockServ::Bind(), bRun, Initialize(), iPort, LOCATE_TIMEOUT, MasterSigHandler(), clSockServ::WaitForConnect(), WrapProcessThread(), and WrapServeClientThread().

Referenced by main().

void clLocate::Stop  ) 
 

Definition at line 267 of file Locate.cc.

References bRun, iNodeCount, LOCATE_CTRL_STOP, MPICCtrl, and clMPIComm::Send().

Referenced by MasterSigHandler().

void * clLocate::ProcessThread void *   ) 
 

Definition at line 278 of file Locate.cc.

References clLocateSystem::Add(), bDebug, bRun, CndResMsg, fpLocMatrix, fWeight, GDT, clLocateSystem::GetResults(), clLocateSystem::Initialize(), iNodeCount, lHeight, _stLocateRes::lPointCount, lWidth, MPICNormal, Msg, MtxResMsg, clLocateSystem::Process(), clMPIComm::Recv(), ResMsg, and clLocateMsg::SetResult().

Referenced by WrapProcessThread().

void * clLocate::ServeClientThread void *   ) 
 

Definition at line 319 of file Locate.cc.

References bRun, CndResMsg, GLOBAL_HEADER_LEN, _stLocateHdr::iHeight, iMsgSize, _stLocateHdr::iWidth, lHeight, lWidth, Msg, MtxResMsg, ResMsg, clLocateMsg::SetHeader(), SOp, and clSockOp::WriteN().

Referenced by WrapServeClientThread().


Member Data Documentation

volatile bool clLocate::bRun [private]
 

Definition at line 75 of file Locate.hh.

Referenced by clLocate(), Main(), ProcessThread(), ServeClientThread(), and Stop().

int clLocate::iSensorCount [private]
 

Definition at line 76 of file Locate.hh.

Referenced by clLocate(), and Initialize().

int clLocate::iPort [private]
 

Definition at line 77 of file Locate.hh.

Referenced by Initialize(), and Main().

int clLocate::iMsgSize [private]
 

Definition at line 78 of file Locate.hh.

Referenced by Initialize(), and ServeClientThread().

long clLocate::lWidth [private]
 

Definition at line 79 of file Locate.hh.

Referenced by Initialize(), ProcessThread(), SendParams(), and ServeClientThread().

long clLocate::lHeight [private]
 

Definition at line 80 of file Locate.hh.

Referenced by Initialize(), ProcessThread(), SendParams(), and ServeClientThread().

GDT clLocate::fWeight [private]
 

Definition at line 81 of file Locate.hh.

Referenced by Initialize(), and ProcessThread().

GDT* clLocate::fpLocMatrix [private]
 

Definition at line 82 of file Locate.hh.

Referenced by Initialize(), and ProcessThread().

stDirCfg clLocate::sDirCfg [private]
 

Definition at line 83 of file Locate.hh.

Referenced by Initialize(), and SendParams().

clAlloc clLocate::LocMatrix [private]
 

Definition at line 84 of file Locate.hh.

Referenced by Initialize().

clAlloc clLocate::ResMsg [private]
 

Definition at line 85 of file Locate.hh.

Referenced by Initialize(), ProcessThread(), and ServeClientThread().

clCondition clLocate::CndResMsg [private]
 

Definition at line 86 of file Locate.hh.

Referenced by ProcessThread(), and ServeClientThread().

clMutex clLocate::MtxResMsg [private]
 

Definition at line 87 of file Locate.hh.

Referenced by ProcessThread(), and ServeClientThread().

clCfgFile clLocate::Cfg [private]
 

Definition at line 88 of file Locate.hh.

Referenced by Initialize().

clDSPOp clLocate::DSP [private]
 

Definition at line 89 of file Locate.hh.

Referenced by Initialize().

clLogFile clLocate::Log [private]
 

Definition at line 90 of file Locate.hh.

Referenced by clLocate(), and ~clLocate().

clLocateMsg clLocate::Msg [private]
 

Definition at line 91 of file Locate.hh.

Referenced by ProcessThread(), and ServeClientThread().

clMPIComm clLocate::MPICCtrl [private]
 

Definition at line 92 of file Locate.hh.

Referenced by clLocate(), and Stop().

clMPIComm clLocate::MPICParam [private]
 

Definition at line 93 of file Locate.hh.

Referenced by clLocate(), and SendParams().

clMPIComm clLocate::MPICNormal [private]
 

Definition at line 94 of file Locate.hh.

Referenced by clLocate(), and ProcessThread().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:21 2003 for HASAS by doxygen 1.3.3