casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PredictAlgorithm.h
Go to the documentation of this file.
1 //# Predict.h: Parallel model visibility prediction
2 //# Copyright (C) 1996,1997,1998,1999,2000,2002
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id$
27 
28 #ifndef SYNTHESIS_PREDICTALGORITHM_H
29 #define SYNTHESIS_PREDICTALGORITHM_H
30 
31 #include <casa/BasicSL/String.h>
34 #include <msvis/MSVis/VisSet.h>
35 #include <msvis/MSVis/VisSetUtil.h>
41 
42 namespace casa { //# NAMESPACE CASA - BEGIN
43 
44 // <summary> Parallel model visibility prediction </summary>
45 
46 // <use visibility=export>
47 
48 // <reviewed reviewer="" date="" tests="" demos="">
49 
50 // <prerequisite>
51 // <li> <linkto module="FTMachine">FTMachine</linkto> module
52 // <li> <linkto module="Applicator">Algorithm</linkto> module
53 // </prerequisite>
54 //
55 // <etymology>
56 // From "parallel model visibility prediction" and "algorithm"
57 // </etymology>
58 //
59 // <synopsis>
60 // Used by PSkyEquation to predict model visibility in parallel.
61 // Fits within the Applicator/Algorithm framework
62 // </synopsis>
63 //
64 // <example>
65 // <srcblock>
66 
67 // </srcblock>
68 // </example>
69 //
70 // <motivation>
71 // Encapsulates the parallel model visibility prediction
72 // </motivation>
73 //
74 // <todo asof="01/7/20">
75 // <li> Implement changing SkyJones so that mosaicing can be parallelized
76 // </todo>
77 
78 class PredictAlgorithm : public Algorithm {
79  public:
80  // Default constructor and destructor
83 
84  // Get the input data and parameters from the controller
85  void get();
86 
87  // Return the results to the controller
88  void put();
89 
90  // Return the name of the algorithm
92 
93 private:
94  // Private data
96 
104 
105  // The work that a child processor is to do
106  void task();
107 
108  // Initialize the visibility grid
109  void initializeGet(const VisBuffer& vb, casacore::Int row, casacore::Int model,
110  casacore::Bool incremental);
111 
112  // FT and put the result into the model visibility column of the visbuffer
114  casacore::Bool incremental);
115 
116 };
117 
118 
119 } //# NAMESPACE CASA - END
120 
121 #endif
122 
123 
124 
125 
126 
int Int
Definition: aipstype.h:50
Parallel model visibility prediction.
casacore::String & name()
Return the name of the algorithm.
void initializeGet(const VisBuffer &vb, casacore::Int row, casacore::Int model, casacore::Bool incremental)
Initialize the visibility grid.
Defines a computational unit for parallel processing.
Definition: Algorithm.h:89
void put()
Return the results to the controller.
casacore::String msName_p
casacore::TempImage< casacore::Complex > * cImage_p
casacore::Int model_p
Private data.
PredictAlgorithm()
Default constructor and destructor.
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
VisBuffer & getModelVis(VisBuffer &vb, casacore::Int model, casacore::Bool incremental)
FT and put the result into the model visibility column of the visbuffer.
casacore::MeasurementSet * ms_p
A Table intended to hold astronomical data (a set of Measurements).
casacore::Bool incremental_p
void task()
The work that a child processor is to do.
casacore::TempImage< casacore::Float > psf_p
String: the storage and methods of handling collections of characters.
Definition: String.h:223
VisBuffers encapsulate one chunk of visibility data for processing.
Definition: VisBuffer.h:153
casacore::String myName_p
defines interface for the Fourier Transform Machine
Definition: FTMachine.h:120