Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

QuartzClass Class Reference

The Quartz Class The Quartzclass is to send requests into a specific buffer with a specific frequency. It is the heartbeat of the client. More...

#include <quartz.h>

List of all members.

Public Methods

 QuartzClass ( Buffer*, int reqPackType, int freq = 15 )
 constructor for the quartzclass. More...

void setFrequency ( int freq )
 Changes the frequency the quartz sends request-packages. More...

int getFrequency ( void )
 gets the current frequency setting used by the QuartzThread itself to know with which frequency it shall work. More...

int getRequestPacket ( void )
 gets the current type of request packet used by the QuartzThread itself to know with which packages it shall send. More...

BuffergetBuf ( void )
 gets the buffer used by the QuartzThread itself to know with into which buffer it shall write into. More...


Private Attributes

Bufferqbuf
 the pointer to the buffer the quartz shall write into. More...

int requestPacket
 the type of package. More...

int frequency
 the frequency (in requests per second). More...


Detailed Description

The Quartz Class The Quartzclass is to send requests into a specific buffer with a specific frequency. It is the heartbeat of the client.

Author(s):
xandi
Date:
250400

Definition at line 24 of file quartz.h.

00025 {
00026 
00027     public:
00028 
00030 
00035     QuartzClass ( Buffer*, int reqPackType, int freq = 15 );
00036 
00038 
00042     void setFrequency ( int freq );
00043 
00044 
00046 
00051     int     QuartzClass::getFrequency     ( void );
00052 
00054 
00059     int     QuartzClass::getRequestPacket ( void );
00060 
00062 
00067     Buffer* QuartzClass::getBuf           ( void );
00068 
00069     private:
00070 
00071     Buffer* qbuf;
00072     int requestPacket; 
00073     int frequency; 
00074 
00075     }

Constructor & Destructor Documentation

QuartzClass::QuartzClass ( Buffer * bufferIn,
int reqPackType,
int freq = 15)

constructor for the quartzclass.

Parameters:
Buffer   The Buffer the quartz shall send the requests in
reqPackType   The type of request that shall be sent
freq   The frequency the quartz shall send the requests

Definition at line 25 of file quartz.cpp.

00026 {
00027     qbuf = bufferIn;
00028     requestPacket = reqPackType;
00029     frequency = freq;
00030 
00031     #ifdef DEBUG
00032     fprintf(stderr,"[QUARTZCLASS (%d): %d %d %d\n",this,qbuf,requestPacket,frequency);
00033     #endif
00034     }

Member Function Documentation

Buffer * QuartzClass::getBuf ( void)

gets the buffer used by the QuartzThread itself to know with into which buffer it shall write into.

Returns:
the pointer to the buffer (Buffer*)
See also:
qbuf

Definition at line 51 of file quartz.cpp.

00052 {
00053     return qbuf;
00054     }

int QuartzClass::getFrequency ( void)

gets the current frequency setting used by the QuartzThread itself to know with which frequency it shall work.

Returns:
the frequency (as a integer)
See also:
frequency

Definition at line 41 of file quartz.cpp.

00042 {
00043     return frequency;
00044     }

int QuartzClass::getRequestPacket ( void)

gets the current type of request packet used by the QuartzThread itself to know with which packages it shall send.

Returns:
the packet-type (as a integer)
See also:
requestPacket

Definition at line 46 of file quartz.cpp.

00047 {
00048     return requestPacket;
00049     }

void QuartzClass::setFrequency ( int freq)

Changes the frequency the quartz sends request-packages.

Parameters:
freq   The new frequency
See also:
frequency

Definition at line 36 of file quartz.cpp.

00037 {
00038     frequency = freq;
00039     }

Member Data Documentation

int QuartzClass::frequency [private]

the frequency (in requests per second).

Definition at line 73 of file quartz.h.

Buffer * QuartzClass::qbuf [private]

the pointer to the buffer the quartz shall write into.

Definition at line 71 of file quartz.h.

int QuartzClass::requestPacket [private]

the type of package.

Definition at line 72 of file quartz.h.


The documentation for this class was generated from the following files:
Generated at Sat May 13 13:50:27 2000 for 3Dsia by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000