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

A GBTDAPFiller for LO1 DAPs. More...

#include <GBTLO1DAPFiller.h>

Inheritance diagram for GBTLO1DAPFiller:
GBTDAPFiller GBTDAPFillerBase

List of all members.

Public Member Functions

 GBTLO1DAPFiller (const String &device, Table &parent)
 makes new one if not already present in parent, otherwise it opens that one up as is
virtual ~GBTLO1DAPFiller ()
virtual Int prepare (const String &fileName, const String &manager, const String &sampler, const MVTime &startTime)
 prepare the filler to use the indicated manager, sampler, and filename starting with the given startTime.
virtual void fill ()
 fill to the standard table attached to the parent used at construction
const Vector< Double > & frequency (Double time, Double interval, Int nphases)
 Return the frequency for the given the phase numbers, given the time and interval Time is in MJD seconds UT and interval is in seconds.
Double initialFreq ()
 return the value of the frequency column in the first row
uInt nrow ()
 how many rows are in the underlying table

Private Member Functions

void cleanup ()
void nextCache ()
void prevCache ()
Bool atCacheEnd ()
Bool atCacheStart ()
Bool atEnd ()
Bool atStart ()
 GBTLO1DAPFiller ()
 unavailable, undefined
 GBTLO1DAPFiller (const GBTLO1DAPFiller &)
GBTLO1DAPFilleroperator= (const GBTLO1DAPFiller &)

Private Attributes

Table * itsLO1Table
ROScalarColumn< Double > itsFrequencyColumn
ROScalarColumn< Double > itsTimeColumn
ROScalarColumn< Int > itsPhaseColumn
Int itsCachePtr
Int itsCacheStart
Int itsCacheEnd
Int itsCacheSize
Bool itsHasPhaseState
Vector< Double > itsFreqs
Vector< Double > itsTimeCache
Vector< Double > itsFreqCache
Vector< Int > itsPhaseCache

Detailed Description

A GBTDAPFiller for LO1 DAPs.

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

This fills GBT DAP FITS file from the LO1 device into a subtable of the MS.

Synopsis

Example

Motivation

It is necessary to have access to the frequency information during each scan for use in filling other parts of the MS.

Thrown Exceptions

Definition at line 81 of file GBTLO1DAPFiller.h.


Constructor & Destructor Documentation

GBTLO1DAPFiller::GBTLO1DAPFiller ( const String device,
Table &  parent 
)

makes new one if not already present in parent, otherwise it opens that one up as is

virtual GBTLO1DAPFiller::~GBTLO1DAPFiller ( ) [virtual]

unavailable, undefined


Member Function Documentation

Bool GBTLO1DAPFiller::atCacheEnd ( ) [inline, private]

Definition at line 126 of file GBTLO1DAPFiller.h.

References itsCacheEnd, and itsFrequencyColumn.

Referenced by atEnd().

Bool GBTLO1DAPFiller::atCacheStart ( ) [inline, private]

Definition at line 128 of file GBTLO1DAPFiller.h.

References itsCacheStart, and itsFrequencyColumn.

Referenced by atStart().

Bool GBTLO1DAPFiller::atEnd ( ) [inline, private]

Definition at line 129 of file GBTLO1DAPFiller.h.

References atCacheEnd(), itsCachePtr, and itsFreqCache.

Bool GBTLO1DAPFiller::atStart ( ) [inline, private]

Definition at line 130 of file GBTLO1DAPFiller.h.

References atCacheStart(), and itsCachePtr.

void GBTLO1DAPFiller::cleanup ( ) [private]
virtual void GBTLO1DAPFiller::fill ( ) [virtual]

fill to the standard table attached to the parent used at construction

Reimplemented from GBTDAPFiller.

const Vector<Double>& GBTLO1DAPFiller::frequency ( Double  time,
Double  interval,
Int  nphases 
)

Return the frequency for the given the phase numbers, given the time and interval Time is in MJD seconds UT and interval is in seconds.

These values are based on the results of the most recent fill. A value of 0.0 is returned for all phases if there are no rows within the specified time interval

Double GBTLO1DAPFiller::initialFreq ( ) [inline]

return the value of the frequency column in the first row

Definition at line 104 of file GBTLO1DAPFiller.h.

References itsFrequencyColumn, and nrow().

void GBTLO1DAPFiller::nextCache ( ) [private]
uInt GBTLO1DAPFiller::nrow ( ) [inline]

how many rows are in the underlying table

Definition at line 107 of file GBTLO1DAPFiller.h.

References itsLO1Table.

Referenced by initialFreq().

GBTLO1DAPFiller& GBTLO1DAPFiller::operator= ( const GBTLO1DAPFiller ) [private]
virtual Int GBTLO1DAPFiller::prepare ( const String fileName,
const String manager,
const String sampler,
const MVTime &  startTime 
) [virtual]

prepare the filler to use the indicated manager, sampler, and filename starting with the given startTime.

The return value is the ID of this sampler/manager combo. A negative return value indicates a problem.

Reimplemented from GBTDAPFiller.

void GBTLO1DAPFiller::prevCache ( ) [private]

Member Data Documentation

Definition at line 114 of file GBTLO1DAPFiller.h.

Referenced by atCacheEnd().

Definition at line 114 of file GBTLO1DAPFiller.h.

Referenced by atEnd(), and atStart().

Definition at line 114 of file GBTLO1DAPFiller.h.

Definition at line 114 of file GBTLO1DAPFiller.h.

Referenced by atCacheStart().

Vector<Double> GBTLO1DAPFiller::itsFreqCache [private]

Definition at line 119 of file GBTLO1DAPFiller.h.

Referenced by atEnd().

Vector<Double> GBTLO1DAPFiller::itsFreqs [private]

Definition at line 117 of file GBTLO1DAPFiller.h.

Definition at line 111 of file GBTLO1DAPFiller.h.

Referenced by atCacheEnd(), atCacheStart(), and initialFreq().

Definition at line 115 of file GBTLO1DAPFiller.h.

Table* GBTLO1DAPFiller::itsLO1Table [private]

Definition at line 110 of file GBTLO1DAPFiller.h.

Referenced by nrow().

Vector<Int> GBTLO1DAPFiller::itsPhaseCache [private]

Definition at line 120 of file GBTLO1DAPFiller.h.

Definition at line 112 of file GBTLO1DAPFiller.h.

Vector<Double> GBTLO1DAPFiller::itsTimeCache [private]

Definition at line 119 of file GBTLO1DAPFiller.h.

Definition at line 111 of file GBTLO1DAPFiller.h.


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