OMNeT++ Parallel Simulation Support  5.4.1
cnosynchronization.h
1 //=========================================================================
2 // CNOSYNCHRONIZATION.H - part of
3 //
4 // OMNeT++/OMNEST
5 // Discrete System Simulation in C++
6 //
7 // Author: Andras Varga, 2003
8 // Dept. of Electrical and Computer Systems Engineering,
9 // Monash University, Melbourne, Australia
10 //
11 //=========================================================================
12 
13 /*--------------------------------------------------------------*
14  Copyright (C) 2003-2017 Andras Varga
15  Copyright (C) 2006-2017 OpenSim Ltd.
16 
17  This file is distributed WITHOUT ANY WARRANTY. See the file
18  `license' for details on this and other legal matters.
19 *--------------------------------------------------------------*/
20 
21 #ifndef __OMNETPP_NOSYNCHRONIZATION_H
22 #define __OMNETPP_NOSYNCHRONIZATION_H
23 
24 #include "omnetpp/cfutureeventset.h"
25 #include "cparsimprotocolbase.h"
26 
27 namespace omnetpp {
28 
29 class cCommBuffer;
30 
41 {
42  public:
47 
51  virtual ~cNoSynchronization();
52 
56  virtual void startRun() override;
57 
61  virtual void endRun() override;
62 
69  virtual cEvent *takeNextEvent() override;
70 
74  virtual void putBackEvent(cEvent *event) override;
75 };
76 
77 } // namespace omnetpp
78 
79 
80 #endif
81 
Definition: cadvlinkdelaylookahead.h:26
Contains utility functions for implementing parallel simulation protocols.
Definition: cparsimprotocolbase.h:36
"Dummy" implementation – just pass messages between partitions, without any synchronization. Of course incausalities may occur which terminate the simulation with error, so this class is only useful as a base "template" for implementing "real" synchronization protocols.
Definition: cnosynchronization.h:40