casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
RFAFlagCubeBase.h
Go to the documentation of this file.
00001 //# RFAFlagCubeBase.h: this defines RFAFlagCubeBase
00002 //# Copyright (C) 2000,2001
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //# $Id$
00027 #ifndef FLAGGING_RFAFLAGCUBEBASE_H
00028 #define FLAGGING_RFAFLAGCUBEBASE_H
00029 
00030 #include <casa/Containers/RecordInterface.h>
00031 #include <flagging/Flagging/RFABase.h> 
00032 #include <flagging/Flagging/RFFlagCube.h>
00033 
00034 namespace casa { //# NAMESPACE CASA - BEGIN
00035 
00036 // <summary>
00037 // Abstract RedFlagger Agent class with a flag cube
00038 // </summary>
00039 
00040 // <use visibility=local>
00041 
00042 // <reviewed reviewer="" date="" tests="" demos="">
00043 // </reviewed>
00044 
00045 // <prerequisite>
00046 //   <li> RFFlagCube
00047 // </prerequisite>
00048 //
00049 // <synopsis>
00050 // RFAFlagCubeBase is derived from RFABase. It includes an RFFlagCube
00051 // object, which is essentially an [NCHAN,NIFR,NTIME] lattice of flags.
00052 // Approrpiate vritual methods for managing the cube are defined.
00053 // </synopsis>
00054 //
00055 // <todo asof="2001/04/16">
00056 //   <li> add this feature
00057 //   <li> fix this bug
00058 //   <li> start discussion of this possible extension
00059 // </todo>
00060 
00061 class RFAFlagCubeBase : public RFABase
00062 {
00063 public:
00064   RFAFlagCubeBase  ( RFChunkStats &ch,const RecordInterface &parm );
00065   virtual ~RFAFlagCubeBase ();
00066   
00067   virtual uInt estimateMemoryUse ();  
00068   virtual Bool newChunk ( Int &maxmem );
00069   virtual void endChunk ();
00070   virtual void startData (bool verbose);
00071   virtual void startDry (bool verbose);
00072   virtual void startFlag (bool verbose);
00073   virtual IterMode iterTime (uInt it);
00074   virtual IterMode iterDry  (uInt it);
00075   virtual void iterFlag     (uInt it);
00076   virtual IterMode endData  ();
00077   virtual IterMode endDry   ();
00078 
00079   virtual String getDesc ();
00080   virtual String getStats ();
00081   static const RecordInterface & getDefaults ();
00082 
00083   virtual String getID() {return String("");};
00084   
00085 protected:
00086 // mask of active correlations. Must be setup somewhere before calling
00087 // newChunk()
00088   RFlagWord   corrmask; 
00089 // flag cube lattice
00090   RFFlagCube  flag;   // flag cube lattice  
00091 };
00092 
00093 
00094 } //# NAMESPACE CASA - END
00095 
00096 #endif