European
Southern
Observatory

ESO — Reaching New Heights in Astronomy

Countries taking part in the ESO

VLT Software Documentation

trkwsTRANSFER_ASM Class Reference

See man page trkwsTRANSFER_ASM(4)
More...

#include <trkwsTRANSFER_ASM.h>

Inheritance diagram for trkwsTRANSFER_ASM:
Inheritance graph
[legend]
Collaboration diagram for trkwsTRANSFER_ASM:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 trkwsTRANSFER_ASM (const dbSYMADDRESS dbPoint, const dbSYMADDRESS destDbPoint=NULL, const dbSYMADDRESS dbDataPoint=NULL)
 ~trkwsTRANSFER_ASM ()
ccsCOMPL_STAT Init ()
virtual evhCB_COMPL_STAT InitCB (msgMESSAGE &msg, void *udata)
virtual evhCB_COMPL_STAT ReadASMCB (msgMESSAGE &msg, void *udata)

Private Attributes

evhTIMER * timer
msgMESSAGE ASMData
dbSYMADDRESS dataAddr
dbSYMADDRESS dbDataPoint
vltUINT32 errorCounter
INT32 dataPollRate = 30
bytes256 dataAddr

Detailed Description

See man page trkwsTRANSFER_ASM(4)
Manpage of trkwsTRANSFER_ASM

trkwsTRANSFER_ASM

Section: Devices and Network Interfaces (4)
Updated: 2012-04-23 10:11
Index Return to man pages list
 

NAME

trkwsTRANSFER_ASM - handles reading, storing and distribution of data from the Astronomical Site Monitor for the Tracking module.

 

SYNOPSIS


#include "trkwsTRANSFER_ASM.h"

class trkwsTRANSFER_ASM : public trkwsTRANSFER
{
  public:
    trkwsTRANSFER_ASM(const dbSYMADDRESS dbPoint,
                      const dbSYMADDRESS destDbPoint = NULL,
                      const dbSYMADDRESS dbDataPoint = NULL);
    ~trkwsTRANSFER_ASM();

    ccsCOMPL_STAT Init();


    virtual evhCB_COMPL_STAT InitCB(msgMESSAGE &msg, void *udata);
    virtual evhCB_COMPL_STAT ReadASMCB(msgMESSAGE &msg, void *udata);

  protected:

  private:
    evhTIMER    *timer;
    msgMESSAGE   ASMData;
    dbSYMADDRESS dataAddr;
    dbSYMADDRESS dbDataPoint;

};

 

PARENT CLASS


trkwsTRANSFER

 

DESCRIPTION


When created, the object initialises database addresses to where to read
and where to store ASM data, and it creates a periodic call of its
callback ReadASM. The period is a configuration parameter which is read
from the database.
If the polling rate read from the database is <= 0, the periodic sending
of asm data is turned off.
The callback ReadASMCB will send the ASM-data to all LCUs currently
involved in tracking, by using the inherited SendAll method.
NOTE: there is no handling of replies, errors or time-outs on this
command-sending!

 

PUBLIC METHODS


trkwsTRANSFER_ASM(const dbSYMADDRESS dbPoint,
                  const dbSYMADDRESS destDbPoint = NULL);
                  const dbSYMADDRESS dbDataPoint = NULL);

  The constructor receives as parameter the symbolic address of
  online database support point for the object, i.e. the point
  where the object can find configuration and run time values.
  The destDbPoint parameter contains the address for the list
  of whom the ASM commands must be sent.
  The dbDataPoint, if not NULL, contains the address for the point
  where ASM data must be written. It assumes that this point has
  attributes with names befined by:
           trkwsENV_TEMP_ATTRNAME
           trkwsENV_PRES_ATTRNAME
           trkwsENV_HUM_ATTRNAME.
  If the parameter is null, nothing is written.
  The constructor calls the method Init() to read configuration
  parameters,to initialise data members and to initiate a periodic
  call.

 ~trkwsTRANSFER_ASM();

    The destructor deletes the timer, if there is any existing.

 ccsCOMPL_STAT Init();

   This method initialises database addresses to where to read
and where to store ASM data, and it creates a periodic call of its
callback ReadASM. The period is a configuration parameter which is read
from the database.

 virtual evhCB_COMPL_STAT InitCB(msgMESSAGE &msg, void *udata);

   This callback oveloads the inherited InitCB method. It is called every
 time when the main process (trkwsControl) receives an INIT command.
 The Init() method is first called, and then the ReadASMCB method, to
 make sure that ASM data are refreshed immediately, without having to
 wait for the first periodic call.

 virtual evhCB_COMPL_STAT ReadASMCB(msgMESSAGE &msg, void *udata);

   This is the callback that is called periodically. It reads data from
  the ASM database, sends the data to all LCUs curerntly involved in
  tracking, and stores tha data in the Tracking database, if required.


 

PRIVATE DATA MEMBERS


  evhTIMER    *timer;       object handling the periodic call
  msgMESSAGE   ASMData;     the message sent to all tracking LCUs
  dbSYMADDRESS dataAddr;    address of ASM data
  dbSYMADDRESS dbDataPoint; address of ASM data in Tracking database.

 

ON LINE DATABASE


The following database branch structure is used to handle
an object of class trkwsTRANSFER_ASM:

CLASS trkwsTRANSFER    trkwsTRANSFER_ASM
 

BEGIN


    ATTRIBUTE INT32       dataPollRate   30
    ATTRIBUTE bytes256    dataAddr          ""
 

END


dataAddr    must point to an instance of mswMOD_LIST_COMMAND_CLASS
dbDataPoint must point to an instance of trkwsDATA or must
            contain attributes as defined in
                 trkwsENV_TEMP_ATTRNAME
                 trkwsENV_PRES_ATTRNAME
                 trkwsENV_HUM_ATTRNAME.



 

Index

NAME
SYNOPSIS
PARENT CLASS
DESCRIPTION
PUBLIC METHODS
PRIVATE DATA MEMBERS
ON LINE DATABASE
BEGIN
END

This document was created by man2html, using the manual pages.
Time: 10:11:26 GMT, April 23, 2012

Definition at line 26 of file trkwsTRANSFER_ASM.h.


Constructor & Destructor Documentation

trkwsTRANSFER_ASM::trkwsTRANSFER_ASM ( const dbSYMADDRESS  dbPoint,
const dbSYMADDRESS  destDbPoint = NULL,
const dbSYMADDRESS  dbDataPoint = NULL 
)
trkwsTRANSFER_ASM::~trkwsTRANSFER_ASM (  ) 

Definition at line 268 of file trkwsTRANSFER_ASM.C.

References timer.


Member Function Documentation

ccsCOMPL_STAT trkwsTRANSFER_ASM::Init (  ) 

Definition at line 290 of file trkwsTRANSFER_ASM.C.

References ASM_DATA_ADDR, ASM_POLL_RATE, dataAddr, errorCounter, ReadASMCB(), timer, trkwsERR_INIT, and trkwsMOD.

Referenced by InitCB().

evhCB_COMPL_STAT trkwsTRANSFER_ASM::InitCB ( msgMESSAGE &  msg,
void *  udata 
) [virtual]

Definition at line 357 of file trkwsTRANSFER_ASM.C.

References Init(), ReadASMCB(), trkwsERR_INIT, and trkwsMOD.

evhCB_COMPL_STAT trkwsTRANSFER_ASM::ReadASMCB ( msgMESSAGE &  msg,
void *  udata 
) [virtual]

Member Data Documentation

msgMESSAGE trkwsTRANSFER_ASM::ASMData [private]

Definition at line 45 of file trkwsTRANSFER_ASM.h.

Referenced by ReadASMCB().

bytes256 trkwsTRANSFER_ASM::dataAddr [private]

Definition at line 47 of file trkwsTRANSFER_ASM.class.

dbSYMADDRESS trkwsTRANSFER_ASM::dataAddr [private]

Definition at line 46 of file trkwsTRANSFER_ASM.h.

Referenced by Init(), and ReadASMCB().

INT32 trkwsTRANSFER_ASM::dataPollRate = 30 [private]

Definition at line 46 of file trkwsTRANSFER_ASM.class.

dbSYMADDRESS trkwsTRANSFER_ASM::dbDataPoint [private]

Definition at line 47 of file trkwsTRANSFER_ASM.h.

Referenced by ReadASMCB().

vltUINT32 trkwsTRANSFER_ASM::errorCounter [private]

Definition at line 48 of file trkwsTRANSFER_ASM.h.

Referenced by Init(), and ReadASMCB().

evhTIMER* trkwsTRANSFER_ASM::timer [private]

Definition at line 44 of file trkwsTRANSFER_ASM.h.

Referenced by Init(), and ~trkwsTRANSFER_ASM().


The documentation for this class was generated from the following files:
Generated on Mon Apr 23 10:12:59 2012 for INTROOT API by doxygen 1.6.3