#include <VisModelDataI.h>
Public Types | |
typedef VisModelDataI *(* | Factory )() |
Public Member Functions | |
VisModelDataI () | |
empty constructor | |
virtual | ~VisModelDataI () |
From a FTMachine Record VisModelDataI(const Record& ftmachinerec, const Vector<Int>& validfieldids, const Vector<Int>& msIds);. | |
virtual void | addModel (const RecordInterface &rec, const Vector< Int > &msids, const VisBuffer &vb)=0 |
Add Image/FTMachine to generate visibilities for void addFTMachine(const Record& recordFTMachine, const Vector<Int>& validfieldids, const Vector<Int>& msIds); Add componentlist to generate visibilities for void addCompFTMachine(const ComponentList& cl, const Vector<Int>& validfieldids, const Vector<Int>& msIds); For simple model a special case for speed. | |
virtual void | addModel (const RecordInterface &rec, const Vector< Int > &msids, const vi::VisBuffer2 &vb)=0 |
virtual VisModelDataI * | clone ()=0 |
virtual Bool | getModelVis (VisBuffer &vb)=0 |
//put the model data for this VisBuffer in the modelVisCube | |
virtual Bool | getModelVis (vi::VisBuffer2 &vb)=0 |
virtual void | putModelI (const MeasurementSet &thems, const RecordInterface &rec, const Vector< Int > &validfields, const Vector< Int > &spws, const Vector< Int > &starts, const Vector< Int > &nchan, const Vector< Int > &incr, Bool iscomponentlist=True, Bool incremental=False)=0 |
//this is a helper function that writes the model record to the ms | |
virtual void | clearModelI (const MeasurementSet &thems)=0 |
//helper function to clear the keywordSet of the ms of the model for the fields in that ms | |
virtual Bool | isModelDefinedI (const Int fieldId, const MeasurementSet &thems, String &key, Int &sourceRow)=0 |
// ...with field selection and optionally spw static void clearModel(const MeasurementSet& thems, const String field, const String spws=String("")); | |
virtual Bool | getModelRecordI (const String &theKey, TableRecord &theRec, const MeasurementSet &theMs)=0 |
static Bool isModelDefined(const String& elkey, const MeasurementSet& thems); | |
virtual Int | hasModel (Int msid, Int field, Int spw)=0 |
// List the fields static void listModel(const MeasurementSet& thems); | |
Static Public Member Functions | |
static bool | setFactory (Factory, Int whichone=0) |
static VisModelDataI * | create () |
static VisModelDataI * | create2 () |
Static Private Attributes | |
static Factory | factory_p |
static Factory | factory2_p |
Definition at line 20 of file VisModelDataI.h.
typedef VisModelDataI*(* casa::VisModelDataI::Factory)() |
Definition at line 24 of file VisModelDataI.h.
casa::VisModelDataI::VisModelDataI | ( | ) | [inline] |
empty constructor
Definition at line 29 of file VisModelDataI.h.
virtual casa::VisModelDataI::~VisModelDataI | ( | ) | [inline, virtual] |
From a FTMachine Record VisModelDataI(const Record& ftmachinerec, const Vector<Int>& validfieldids, const Vector<Int>& msIds);.
Definition at line 33 of file VisModelDataI.h.
virtual void casa::VisModelDataI::addModel | ( | const RecordInterface & | rec, | |
const Vector< Int > & | msids, | |||
const vi::VisBuffer2 & | vb | |||
) | [pure virtual] |
Implemented in casa::VisModelData, and casa::refim::VisModelData.
virtual void casa::VisModelDataI::addModel | ( | const RecordInterface & | rec, | |
const Vector< Int > & | msids, | |||
const VisBuffer & | vb | |||
) | [pure virtual] |
Add Image/FTMachine to generate visibilities for void addFTMachine(const Record& recordFTMachine, const Vector<Int>& validfieldids, const Vector<Int>& msIds); Add componentlist to generate visibilities for void addCompFTMachine(const ComponentList& cl, const Vector<Int>& validfieldids, const Vector<Int>& msIds); For simple model a special case for speed.
void addFlatModel(const Vector<Double>& value, const Vector<Int>& validfieldids, const Vector<Int>& msIds);
add componentlists or ftmachines
Implemented in casa::VisModelData, and casa::refim::VisModelData.
virtual void casa::VisModelDataI::clearModelI | ( | const MeasurementSet & | thems | ) | [pure virtual] |
//helper function to clear the keywordSet of the ms of the model for the fields in that ms
Implemented in casa::VisModelData, and casa::refim::VisModelData.
virtual VisModelDataI* casa::VisModelDataI::clone | ( | ) | [pure virtual] |
Implemented in casa::VisModelData, and casa::refim::VisModelData.
static VisModelDataI* casa::VisModelDataI::create | ( | ) | [static] |
static VisModelDataI* casa::VisModelDataI::create2 | ( | ) | [static] |
virtual Bool casa::VisModelDataI::getModelRecordI | ( | const String & | theKey, | |
TableRecord & | theRec, | |||
const MeasurementSet & | theMs | |||
) | [pure virtual] |
static Bool isModelDefined(const String& elkey, const MeasurementSet& thems);
Get a given model that is defined by key Forcing user to use a TableRecord rather than Generic RecordInterface ...just so as to avoid a copy.
Implemented in casa::VisModelData, and casa::refim::VisModelData.
virtual Bool casa::VisModelDataI::getModelVis | ( | vi::VisBuffer2 & | vb | ) | [pure virtual] |
Implemented in casa::VisModelData, and casa::refim::VisModelData.
virtual Bool casa::VisModelDataI::getModelVis | ( | VisBuffer & | vb | ) | [pure virtual] |
//put the model data for this VisBuffer in the modelVisCube
Implemented in casa::VisModelData, and casa::refim::VisModelData.
virtual Int casa::VisModelDataI::hasModel | ( | Int | msid, | |
Int | field, | |||
Int | spw | |||
) | [pure virtual] |
// List the fields static void listModel(const MeasurementSet& thems);
static FTMachine* NEW_FT(const Record& ftrec); check if an addFT or addCompFT is necessary Bool hasFT(Int msid, Int fieldid); Bool hasCL(Int msid, Int fieldid); returns a -1 if there is no model for this combination of ms,field,spw...but has not been // checked yet if there is one returns a -2 if it has been tested before but does have it. returns a 1 if it has a model stored
Implemented in casa::VisModelData, and casa::refim::VisModelData.
virtual Bool casa::VisModelDataI::isModelDefinedI | ( | const Int | fieldId, | |
const MeasurementSet & | thems, | |||
String & | key, | |||
Int & | sourceRow | |||
) | [pure virtual] |
// ...with field selection and optionally spw static void clearModel(const MeasurementSet& thems, const String field, const String spws=String(""));
Functions to see if model is defined in the MS either in the SOURCE table or else in the MAIN
Implemented in casa::VisModelData, and casa::refim::VisModelData.
virtual void casa::VisModelDataI::putModelI | ( | const MeasurementSet & | thems, | |
const RecordInterface & | rec, | |||
const Vector< Int > & | validfields, | |||
const Vector< Int > & | spws, | |||
const Vector< Int > & | starts, | |||
const Vector< Int > & | nchan, | |||
const Vector< Int > & | incr, | |||
Bool | iscomponentlist = True , |
|||
Bool | incremental = False | |||
) | [pure virtual] |
//this is a helper function that writes the model record to the ms
Implemented in casa::VisModelData, and casa::refim::VisModelData.
static bool casa::VisModelDataI::setFactory | ( | Factory | , | |
Int | whichone = 0 | |||
) | [static] |
Factory casa::VisModelDataI::factory2_p [static, private] |
Definition at line 91 of file VisModelDataI.h.
Factory casa::VisModelDataI::factory_p [static, private] |
Definition at line 90 of file VisModelDataI.h.