My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::antenna::control::AntennaDrive Class Reference

#include <AntennaDrive.h>

Inheritance diagram for gcp::antenna::control::AntennaDrive:
gcp::antenna::control::SpecificTask gcp::util::GenericTask< AntennaDriveMsg >

Public Member Functions

void sendDriveConnectedMsg (bool connected)
 
void sendDriveDoneMsg (unsigned int seq)
 
void sendBenchDoneMsg (unsigned int seq)
 
void sendScanDoneMsg (unsigned int seq)
 
void sendSourceSetMsg (unsigned int seq)
 
void sendPollGpsStatusMsg ()
 
bool simPmac ()
 
- Public Member Functions inherited from gcp::antenna::control::SpecificTask
 SpecificTask ()
 
virtual ~SpecificTask ()
 
SpecificSharegetShare ()
 
- Public Member Functions inherited from gcp::util::GenericTask< AntennaDriveMsg >
void sendRestartMsg ()
 
void sendStopMsg ()
 
void sendHeartBeatMsg ()
 
virtual void fwdTaskMsg (AntennaDriveMsg *msg)
 

Friends

class AntennaMaster
 

Additional Inherited Members

- Public Attributes inherited from gcp::antenna::control::SpecificTask
SpecificShareshare_
 
- Protected Member Functions inherited from gcp::util::GenericTask< AntennaDriveMsg >
 GenericTask ()
 
 GenericTask (Thread *thread)
 
virtual ~GenericTask ()
 
void sendTaskMsg (AntennaDriveMsg *msg)
 
void startThreads (void *arg)
 
void startThread (void *arg, unsigned order)
 
unsigned getMinStartOrder ()
 
bool threadsNeedStarting ()
 
void cancelThreads ()
 
void cancelThread (unsigned order)
 
unsigned getMinCancelOrder ()
 
bool threadsNeedCancelling ()
 
void pingThreads (void *arg)
 
void raise (std::string name, int sigNo)
 
ThreadgetThread (std::string name)
 
bool threadsAreRunning ()
 
void shutdownConnection (int fd)
 
virtual void serviceMsgQ (void)
 
virtual void restart (void)
 
virtual void run (void)
 
virtual void processTaskMsg (bool *stop)
 
virtual void processMsg (AntennaDriveMsg *msg)
 
virtual void installTimer (AntennaDriveMsg *msg)
 
virtual void installSignal (AntennaDriveMsg *msg)
 
virtual void enableTimer (AntennaDriveMsg *msg)
 
virtual void addHandler (AntennaDriveMsg *msg)
 
void stepCommands ()
 
- Protected Attributes inherited from gcp::util::GenericTask< AntennaDriveMsg >
Threadthread_
 
std::vector< Thread * > threads_
 
PipeQ< AntennaDriveMsg > msgq_
 
gcp::util::FdSet fdSet_
 
std::vector< Command * > commands_
 
struct timeval * timeOut_
 
TimeVal commandTimeOut_
 

Detailed Description

The AntennaDrive collects together the functionality of the base class Drive and its descendants, namely PointingModel. Remotely, there will be a single CORBA DO for an Antenna object, from which antenna->Drive()->Pointingmodel() and its methods can be accessed directly. However, we want these methods to be routed through the AntennaDrive message queue, and so the antenna->Drive() portion of the DO is managed by the AntennaDrive class.

Member Function Documentation

void AntennaDrive::sendBenchDoneMsg ( unsigned int  seq)

Send a message to the parent that the bench is on target

....................................................................... Send a message to the parent that the pmac is disconnected

void AntennaDrive::sendDriveConnectedMsg ( bool  connected)

Send a message that the pmac is dis/connected

....................................................................... Send a message to the parent that the drive is connected

void AntennaDrive::sendDriveDoneMsg ( unsigned int  seq)

Send a message to the parent that the pmac is disconnected

....................................................................... Send a message to the parent that the pmac is disconnected

void AntennaDrive::sendPollGpsStatusMsg ( )

....................................................................... Send a message to the parent that the source has set.

void AntennaDrive::sendScanDoneMsg ( unsigned int  seq)

Send a message to the parent that the scan has finished

....................................................................... Send a message to the parent that the scan has completed

void AntennaDrive::sendSourceSetMsg ( unsigned int  seq)

Send a message to the parent that the source has set.

....................................................................... Send a message to the parent that the source has set.

Friends And Related Function Documentation

friend class AntennaMaster
friend

We declare AntennaMaster a friend because its startAntennaDrive() method will call serviceMsgQ().


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