OMNeT++ Parallel Simulation Support  6.0.3
cplaceholdermod.h
1 //==========================================================================
2 // CPLACEHOLDERMOD.H - header for
3 //
4 // OMNeT++/OMNEST
5 // Discrete System Simulation in C++
6 //
7 //=========================================================================
8 
9 /*--------------------------------------------------------------*
10  Copyright (C) 1992-2017 Andras Varga
11  Copyright (C) 2006-2017 OpenSim Ltd.
12 
13  This file is distributed WITHOUT ANY WARRANTY. See the file
14  `license' for details on this and other legal matters.
15 *--------------------------------------------------------------*/
16 
17 #ifndef __OMNETPP_CPLACEHOLDERMOD_H
18 #define __OMNETPP_CPLACEHOLDERMOD_H
19 
20 #include "omnetpp/cmodule.h"
21 #include "omnetpp/csimulation.h"
22 
23 namespace omnetpp {
24 
33 class SIM_API cPlaceholderModule : public cModule // so, noncopyable
34 {
35  protected:
36  // internal: "virtual ctor" for cGate: creates cProxyGate
37  virtual cGate *createGateObject(cGate::Type type) override;
38 
39  // placeholder modules have no submodules
40  virtual void doBuildInside() override {}
41 
42  public:
50 
54  virtual ~cPlaceholderModule() {}
56 
63  virtual std::string str() const override;
65 
71  virtual bool isPlaceholder() const override {return true;}
72 
76  virtual void arrived(cMessage *msg, cGate *ongate, const SendOptions& options, simtime_t t) override;
77 
81  virtual void scheduleStart(simtime_t t) override;
83 };
84 
85 
86 } // namespace omnetpp
87 
88 
89 #endif
90 
omnetpp::cModule
omnetpp::cPlaceholderModule
In distributed parallel simulation, modules of the network are distributed across partitions.
Definition: cplaceholdermod.h:33
omnetpp::cPlaceholderModule::~cPlaceholderModule
virtual ~cPlaceholderModule()
Definition: cplaceholdermod.h:54
omnetpp::cGate::Type
Type
omnetpp::cPlaceholderModule::isPlaceholder
virtual bool isPlaceholder() const override
Definition: cplaceholdermod.h:71
omnetpp::SendOptions
omnetpp::cGate
simtime_t
SimTime simtime_t
omnetpp::cMessage
omnetpp::cPlaceholderModule::cPlaceholderModule
cPlaceholderModule()
Definition: cplaceholdermod.h:49