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

PsnDuplicatedObjectHandle Class Reference

in this implementation, a duplicated object handle is a reference object handle this means that event sent to a duplicated object aren't propoagated to other copies More...

#include <PsnDuplicatedObjectHandle.h>

Inheritance diagram for PsnDuplicatedObjectHandle:

Inheritance graph
[legend]
Collaboration diagram for PsnDuplicatedObjectHandle:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual ~PsnDuplicatedObjectHandle ()
 PsnDuplicatedObjectHandle (PsSimulatedObject &, PsController &)
virtual void receiveEvent (const PsEvent &event)
 redefine event reception to forward event to copies

virtual void receiveEvent (PsEvent *event)
 redefine event reception to forward event to copies

virtual void addProcessOfDuplicate (const PsnProcess *process)=0
 add a process to the data structure storing the location of copies


Protected Methods

virtual void broadcastEvent (const PsEvent &event)=0
 broadcast event sends event to all copies, including oneself


Detailed Description

in this implementation, a duplicated object handle is a reference object handle this means that event sent to a duplicated object aren't propoagated to other copies

Author:
David Margery
Version:
1.0

Definition at line 30 of file PsnDuplicatedObjectHandle.h.


Constructor & Destructor Documentation

PsnDuplicatedObjectHandle::~PsnDuplicatedObjectHandle   [virtual]
 

Definition at line 13 of file PsnDuplicatedObjectHandle.cxx.

00014 {
00015 
00016 }

PsnDuplicatedObjectHandle::PsnDuplicatedObjectHandle PsSimulatedObject  ,
PsController  
 

Definition at line 5 of file PsnDuplicatedObjectHandle.cxx.

00006    :
00007    PsnReferenceObjectHandle ( obj, ctrl )
00008 {
00009 
00010 }


Member Function Documentation

virtual void PsnDuplicatedObjectHandle::addProcessOfDuplicate const PsnProcess   process [pure virtual]
 

add a process to the data structure storing the location of copies

Implemented in PsnPvmDuplicatedObjectHandle.

virtual void PsnDuplicatedObjectHandle::broadcastEvent const PsEvent   event [protected, pure virtual]
 

broadcast event sends event to all copies, including oneself

Implemented in PsnPvmDuplicatedObjectHandle.

Referenced by receiveEvent().

void PsnDuplicatedObjectHandle::receiveEvent PsEvent   event [virtual]
 

redefine event reception to forward event to copies

Reimplemented from PsnReferenceObjectHandle.

Definition at line 30 of file PsnDuplicatedObjectHandle.cxx.

References broadcastEvent().

00031 {
00032 #if defined (_DEBUGEVT) || defined (_DEBUGPVMMESS)
00033    cerr<<"PsnDuplicatedObjectHandle::receiveEvent (const PsEvent * "<<*event<<")"<<endl;
00034 #endif
00035    broadcastEvent ( * event ) ;
00036 }

void PsnDuplicatedObjectHandle::receiveEvent const PsEvent   event [virtual]
 

redefine event reception to forward event to copies

Reimplemented from PsnReferenceObjectHandle.

Definition at line 20 of file PsnDuplicatedObjectHandle.cxx.

References broadcastEvent().

00021 {
00022 #if defined (_DEBUGEVT) || defined (_DEBUGPVMMESS)
00023    cerr<<"PsnDuplicatedObjectHandle::receiveEvent (const PsEvent & "<<event<<")"<<endl;
00024 #endif
00025    broadcastEvent ( event ) ;
00026 }


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

Documentation generated on Mon Nov 25 15:25:59 2002

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