cplaceholdermod.h Source File

Parallel Simulation API: cplaceholdermod.h Source File
Parallel Simulation API
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
23namespace omnetpp {
24
33class 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:
45
50
56
59
63 virtual std::string str() const override;
65
68
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
virtual void scheduleStart(simtime_t t) override
virtual ~cPlaceholderModule()
Definition cplaceholdermod.h:54
cPlaceholderModule()
Definition cplaceholdermod.h:49
virtual bool isPlaceholder() const override
Definition cplaceholdermod.h:71
virtual std::string str() const override
virtual void arrived(cMessage *msg, cGate *ongate, const SendOptions &options, simtime_t t) override