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

PsnPvmMessage Class Reference

Defining a message for a message passing virtual machine. More...

#include <PsnPvmMessage.h>

Inheritance diagram for PsnPvmMessage:

Inheritance graph
[legend]
List of all members.

Public Types

enum  MessageTag {
  ProcessTable, EndOfSimulation, EnterBarrier, SiteName,
  LocalInitSuccessfull, ExitBarrier, SynchronisationMessage, MirrorNeedsInitialValues,
  InitialValuesForMirror, NameServiceGetId, NameServiceGetString, NameServiceReturnId,
  NameServiceReturnString, NameServiceVerifyLocalNameServer, NameServiceVerifyResult
}

Public Methods

 PsnPvmMessage (int bufid)
 constructor

virtual ~PsnPvmMessage ()
 destructor

virtual int getSize () const
 getSize find out the number of bytes used by the buffer


Protected Attributes

int _currentBuffer

Detailed Description

Defining a message for a message passing virtual machine.

Author:
Siames
Version:
1.0

Definition at line 28 of file PsnPvmMessage.h.


Member Enumeration Documentation

enum PsnPvmMessage::MessageTag
 

Enumeration values:
ProcessTable 
EndOfSimulation 
EnterBarrier 
SiteName 
LocalInitSuccessfull 
ExitBarrier 
SynchronisationMessage 
MirrorNeedsInitialValues 
InitialValuesForMirror 
NameServiceGetId 
NameServiceGetString 
NameServiceReturnId 
NameServiceReturnString 
NameServiceVerifyLocalNameServer 
NameServiceVerifyResult 

Definition at line 32 of file PsnPvmMessage.h.

Referenced by PsnSvm::broadcast(), PsnSvm::processReceivedMessages(), PsnPvmUnicastMessage::send(), PsnPvmSvmLink::send(), PsnPvmMulticastMessage::send(), PsnSvm::sendCurrentBuffersWithTag(), PsnPvmSvmLink::sendOutgoingBuffer(), PsnSvm::synchroniseReceiveAndProcessMessages(), PsnSvm::synchronizeOn(), PsnPvmSvmLink::testForAnyMessage(), PsnPvmSvmLink::testForMessage(), PsnSvm::waitAndProcessMessages(), PsnSvm::waitForAnswerToBlockingRequest(), PsnSvm::waitForMessage(), PsnPvmSvmLink::waitForMessage(), and PsnSvm::waitForMessageFrom().


Constructor & Destructor Documentation

PsnPvmMessage::PsnPvmMessage int    bufid
 

constructor

Definition at line 38 of file PsnPvmMessage.cxx.

00038                                        :
00039    _currentBuffer ( bufid )
00040 {
00041 
00042 }

PsnPvmMessage::~PsnPvmMessage   [virtual]
 

destructor

Definition at line 44 of file PsnPvmMessage.cxx.

00045 {
00046 
00047 }


Member Function Documentation

int PsnPvmMessage::getSize   const [virtual]
 

getSize find out the number of bytes used by the buffer

Definition at line 49 of file PsnPvmMessage.cxx.

References _currentBuffer.

Referenced by PsnPvmOutgoingMessage::insertTimeStamp(), and PsnSvm::processReceivedMessages().

00050 {
00051    int info, bytes, msgtag, tid ;
00052 #ifdef _PVM
00053    info = pvm_bufinfo ( _currentBuffer, &bytes, &msgtag, &tid ) ;
00054 #ifdef _DEBUGPVMMESS
00055    cerr <<"PsnPvmMessage::getSize() of message of tag "<<msgtag<<", of sender"<<tid<<". I'm "<<pvm_mytid()<<endl;
00056 #endif
00057    assert ( info == 0 );
00058 #endif
00059    return bytes ;
00060 }


Member Data Documentation

int PsnPvmMessage::_currentBuffer [protected]
 

Definition at line 61 of file PsnPvmMessage.h.

Referenced by PsnPvmIncomingMessage::get(), getSize(), PsnPvmIncomingMessage::hasMessage(), PsnPvmIncomingMessage::initialise(), PsnPvmOutgoingMessage::insertTimeStamp(), PsnPvmOutgoingMessage::pack(), PsnPvmOutgoingMessage::PsnPvmOutgoingMessage(), PsnPvmOutgoingMessage::reinitAndRevertPvmContext(), PsnPvmUnicastMessage::send(), PsnPvmMulticastMessage::send(), and PsnPvmOutgoingMessage::~PsnPvmOutgoingMessage().


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

Documentation generated on Mon Nov 25 15:26:22 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001