casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
casa::FlagAgentShadow Class Reference

#include <FlagAgentShadow.h>

Inheritance diagram for casa::FlagAgentShadow:
casa::FlagAgentBase casa::async::Thread

List of all members.

Public Member Functions

 FlagAgentShadow (FlagDataHandler *dh, Record config, Bool writePrivateFlagCube=false, Bool flag=true)
 ~FlagAgentShadow ()

Protected Member Functions

void preProcessBuffer (const vi::VisBuffer2 &visBuffer)
 Common functionality for each visBuffer (don't repeat at the row level)
void preProcessBufferCore (const vi::VisBuffer2 &visBuffer)
 Common preProcessing code for the single/multiple agent cases.
bool computeRowFlags (const vi::VisBuffer2 &visBuffer, FlagMapper &flags, uInt row)
 Compute flags afor a given mapped visibility point.
void setAgentParameters (Record config)
 Parse configuration parameters.

Private Member Functions

Bool computeAntUVW (const vi::VisBuffer2 &vb, Int rownr)
 Function to compute antenna UVW values for the current timestep.
void calculateShadowedAntennas (const vi::VisBuffer2 &visBuffer, Int rownr)
 Function to compute shadowed antennas, given a list of antenna UVWs.
void decideBaselineShadow (Double uvDistance, Double w, Int antenna1, Int antenna2)
 Function to decide if the 'behind' antenna is shadowed or not, for one baseline.
uInt baselineIndex (uInt nAnt, uInt a1, uInt a2)
 Function to return baseline index.

Private Attributes

Double shadowTolerance_p
 Input parameters ///.
Record additionalAntennas_p
Vector< DoubleshadowAntennaDiameters_p
 Copies of antenna-information lists, containing extra antennas if specified.
Vector< MPositionshadowAntennaPositions_p
uShort agentNumber_p
 Declaration of static members for common pre-processing.
Matrix< DoubleuvwAnt_p
 Private variables that change with each timestep.
Double currTime_p
Bool firststep_p

Static Private Attributes

static vector< IntshadowedAntennas_p
static casa::async::Mutex staticMembersMutex_p
static vector< bool > startedProcessing_p
static bool preProcessingDone_p
static uShort nAgents_p

Detailed Description

Definition at line 50 of file FlagAgentShadow.h.


Constructor & Destructor Documentation

casa::FlagAgentShadow::FlagAgentShadow ( FlagDataHandler dh,
Record  config,
Bool  writePrivateFlagCube = false,
Bool  flag = true 
)

Member Function Documentation

uInt casa::FlagAgentShadow::baselineIndex ( uInt  nAnt,
uInt  a1,
uInt  a2 
) [private]

Function to return baseline index.

void casa::FlagAgentShadow::calculateShadowedAntennas ( const vi::VisBuffer2 visBuffer,
Int  rownr 
) [private]

Function to compute shadowed antennas, given a list of antenna UVWs.

Bool casa::FlagAgentShadow::computeAntUVW ( const vi::VisBuffer2 vb,
Int  rownr 
) [private]

Function to compute antenna UVW values for the current timestep.

bool casa::FlagAgentShadow::computeRowFlags ( const vi::VisBuffer2 visBuffer,
FlagMapper flags,
uInt  row 
) [protected, virtual]

Compute flags afor a given mapped visibility point.

Reimplemented from casa::FlagAgentBase.

void casa::FlagAgentShadow::decideBaselineShadow ( Double  uvDistance,
Double  w,
Int  antenna1,
Int  antenna2 
) [private]

Function to decide if the 'behind' antenna is shadowed or not, for one baseline.

void casa::FlagAgentShadow::preProcessBuffer ( const vi::VisBuffer2 visBuffer) [protected, virtual]

Common functionality for each visBuffer (don't repeat at the row level)

Reimplemented from casa::FlagAgentBase.

void casa::FlagAgentShadow::preProcessBufferCore ( const vi::VisBuffer2 visBuffer) [protected]

Common preProcessing code for the single/multiple agent cases.

void casa::FlagAgentShadow::setAgentParameters ( Record  config) [protected, virtual]

Parse configuration parameters.

Reimplemented from casa::FlagAgentBase.


Member Data Documentation

Definition at line 84 of file FlagAgentShadow.h.

Declaration of static members for common pre-processing.

Definition at line 92 of file FlagAgentShadow.h.

Definition at line 101 of file FlagAgentShadow.h.

Definition at line 103 of file FlagAgentShadow.h.

Definition at line 97 of file FlagAgentShadow.h.

Definition at line 96 of file FlagAgentShadow.h.

Copies of antenna-information lists, containing extra antennas if specified.

Vector<String> shadowAntennaNames_p;

Definition at line 88 of file FlagAgentShadow.h.

Definition at line 89 of file FlagAgentShadow.h.

Definition at line 93 of file FlagAgentShadow.h.

Input parameters ///.

Definition at line 83 of file FlagAgentShadow.h.

vector<bool> casa::FlagAgentShadow::startedProcessing_p [static, private]

Definition at line 95 of file FlagAgentShadow.h.

Definition at line 94 of file FlagAgentShadow.h.

Private variables that change with each timestep.

Definition at line 100 of file FlagAgentShadow.h.


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