SuKPvm Class Reference

[KPvm-Demo-suJOIN Index] [KPvm-Demo-suJOIN Hierarchy] [Headers]


is the main pvm-class. More...

#include <sujoin.h>

Inherits: KPvm (Kpvm)

Public Members

Protected Members

Private Members

Private Slots


Detailed Description

SuKPvm is the main pvm-class. It inherits from KPvm.


SuKPvm( KPvm* parent=0, const char* name=0) [public]

It is distincted between parent- and child part. The parent sends tuples of PrincipeActif and BelongsTo to his spawned children, which the children receive and process.

int hash( int) [private]

computes hash-function from given hash-value, is needed to distribute objects.

void guiInit() [private]

creates the lcd-counters and button

void sendPrincipeActif() [private]

sends all PrincipeActif tuples to the children, distributed to the several children with hash method.

void sendBelongsTo() [private]

sends all BelongsTo tuples to the children, distributed to the several children with hash method.

QFile fout[private]

Filehandles for result of join.

QTextStream tstream[private]

TextStream.for for reading and writing on filehandle.

QString s[private]

needed to end all children correctly.

void childHandleRecvPA( QString className, QList<VarTuple> objState, int msgId, KPvmEntity* entity) [private slot]

is a CHILD-SLOT for the dataReceived-SIGNAL. It receives the Pricipe_ Actif-tuples and builds the local hash-table.

When finished - got object of class TransferComplete -, it disconnects the dataReceived-SIGNAL to connect it with childHandleRecvBt to be able to receive BelongsTo tuples.

void childHandleRecvBt( QString className, QList<VarTuple> objState, int msgId, KPvmEntity* entity) [private slot]

is a CHILD-SLOT for the dataReceived-SIGNAL. It receives the BelongsTo tuples and probes them against the local hash-table.

In case of a match it sends the the correspondig JoinRes tuple back to parent.

void parentHandleReceivedData( QString className, QList<VarTuple> objState, int msgId, KPvmEntity* entity) [private slot]

is the PARENT-SLOT for the dataReceived-SIGNAL. Is is connected with the signal after the PrincipeActif tuples have been sent but before the parent starts to send the BelongsTo tuples.

It receives the JoinRes tuples and stores them on harddisk.


  • Author: Susanne Cech <scech@edu.uni-klu.ac.at>
  • Documentation generated by mike@kermit on Mon Jun 29 23:02:32 MEST 1998
Kdoc