Protected Members
- virtual ~IChangeDetector() throw(AipsError)
///////////////////////////////////////////////////////////////////////////
An interface class to detect changes in the VisBuffer
Exact meaning of the "change" is defined in the derived classes
Member Description
virtual Bool changed(const VisBuffer &vb, Int row) const throw(AipsError) = 0
return True if a change occurs in the given row since the last call of update
virtual void update(const VisBuffer &vb, Int row) throw(AipsError) = 0
start looking for a change from the given row of the VisBuffer
virtual void reset() throw(AipsError) = 0
reset to the state which exists just after construction
Bool changed(const VisBuffer &vb) const throw(AipsError)
some derived methods, which use the abstract virtual function changed(vb,row)
return True if a change occurs somewhere in the buffer
Bool changedBuffer(const VisBuffer &vb, Int row1, Int &row2) const throw(AipsError)
return True if a change occurs somewhere in the buffer starting from row1
up to row2 (row2=-1 means up to the end of the buffer). The row number,
where the change occurs is returned in the row2 parameter
a virtual destructor to make the compiler happy
Interface
Public Members
- ParAngleChangeDetector():pa_tolerance_p(0.0)
- ParAngleChangeDetector(const Quantity &pa_tolerance) throw(AipsError)
- virtual void setTolerance(const Quantity &pa_tolerance)
- virtual void reset() throw(AipsError)
- Quantity getParAngleTolerance() const throw(AipsError)
- virtual Bool changed(const VisBuffer &vb, Int row) const throw(AipsError)
- virtual void update(const VisBuffer &vb, Int row) throw(AipsError)
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
ParAngleChangeDetector - a class to detect a change in the parallactic
angle.
Member Description
The default constructor
ParAngleChangeDetector(const Quantity &pa_tolerance) throw(AipsError)
set up the tolerance, which determines how much the position angle should
change to report the change by this class
virtual void setTolerance(const Quantity &pa_tolerance)
virtual void reset() throw(AipsError)
reset to the state which exists just after construction
return parallactic angle tolerance
virtual Bool changed(const VisBuffer &vb, Int row) const throw(AipsError)
implementation of the base class' virtual functions
return True if a change occurs in the given row since the last call of update
virtual void update(const VisBuffer &vb, Int row) throw(AipsError)
start looking for a change from the given row of the VisBuffer