TTEthernet Model for INET Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
TTEthernetModel::SyncBase Class Reference

Base for sync modules. More...

#include <SyncBase.h>

Inheritance diagram for TTEthernetModel::SyncBase:
TTEthernetModel::DummySync

Protected Member Functions

void notify (SyncNotificationKind kind)
 

Detailed Description

Base for sync modules.

Definition at line 29 of file SyncBase.h.

Member Function Documentation

void SyncBase::notify ( SyncNotificationKind  kind)
protected

Definition at line 22 of file SyncBase.cc.

Referenced by TTEthernetModel::DummySync::initialize().

22  {
23  SyncNotification *notification = new SyncNotification("SyncNotification", kind);
24  cModule* tteApps = getParentModule()->getSubmodule("tteApp",0);
25  if(tteApps){
26  for(int i=0; i<tteApps->size();i++){
27  sendDirect(notification->dup(),getParentModule()->getSubmodule("tteApp",i)->gate("syncIn"));
28  }
29  }
30  delete notification;
31 }

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