OMK::LocalObjectHandle Class Reference

#include <OMKLocalObjectHandle.h>

Inheritance diagram for OMK::LocalObjectHandle:

Inheritance graph
[legend]
Collaboration diagram for OMK::LocalObjectHandle:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~LocalObjectHandle ()
 LocalObjectHandle (SimulatedObject &, Controller &)
virtual void receiveEvent (const Event &event)
 redefine event reception to forward event to copies
virtual void receiveEvent (Event *event)
 redefine event reception to forward event to copies
virtual void addProcessOfLocal (const Process *process)=0
 add a process to the data structure storing the location of copies

Protected Member Functions

virtual void broadcastEvent (const Event &event)=0
 broadcast event

Detailed Description

Definition at line 30 of file OMKLocalObjectHandle.h.


Constructor & Destructor Documentation

LocalObjectHandle::~LocalObjectHandle (  )  [virtual]

Definition at line 15 of file OMKLocalObjectHandle.cpp.

00016 {
00017 
00018 }

LocalObjectHandle::LocalObjectHandle ( SimulatedObject ,
Controller  
)

Definition at line 7 of file OMKLocalObjectHandle.cpp.

00008    :
00009    ReferenceObjectHandle ( obj, ctrl )
00010 {
00011 
00012 }


Member Function Documentation

void LocalObjectHandle::receiveEvent ( const Event event  )  [virtual]

redefine event reception to forward event to copies

Reimplemented from OMK::ReferenceObjectHandle.

Definition at line 21 of file OMKLocalObjectHandle.cpp.

References broadcastEvent().

00022 {
00023 #if defined (_DEBUGEVT) || defined (_DEBUGPVMMESS)
00024    std::cerr<<"LocalObjectHandle::receiveEvent (const Event & "<<event<<")"<<std::endl;
00025 #endif
00026    broadcastEvent ( event ) ;
00027 }

void LocalObjectHandle::receiveEvent ( Event event  )  [virtual]

redefine event reception to forward event to copies

Reimplemented from OMK::ReferenceObjectHandle.

Definition at line 31 of file OMKLocalObjectHandle.cpp.

References broadcastEvent().

00032 {
00033 #if defined (_DEBUGEVT) || defined (_DEBUGPVMMESS)
00034    std::cerr<<"LocalObjectHandle::receiveEvent (const Event * "<<*event<<")"<<std::endl;
00035 #endif
00036    broadcastEvent ( * event ) ;
00037 }

virtual void OMK::LocalObjectHandle::addProcessOfLocal ( const Process process  )  [pure virtual]

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

Implemented in OMK::PvmLocalObjectHandle.

virtual void OMK::LocalObjectHandle::broadcastEvent ( const Event event  )  [protected, pure virtual]

broadcast event

Implemented in OMK::PvmLocalObjectHandle.

Referenced by receiveEvent().


logo OpenMask

Documentation generated on Mon Jun 9 11:46:01 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007