cplaceholdermod.h

00001 //==========================================================================
00002 //  CPLACEHOLDERMOD.H  -  header for
00003 //
00004 //                   OMNeT++/OMNEST
00005 //           Discrete System Simulation in C++
00006 //
00007 //  Author: Andras Varga, 2003
00008 //          Dept. of Electrical and Computer Systems Engineering,
00009 //          Monash University, Melbourne, Australia
00010 //
00011 //==========================================================================
00012 
00013 /*--------------------------------------------------------------*
00014   Copyright (C) 1992-2008 Andras Varga
00015   Copyright (C) 2006-2008 OpenSim Ltd.
00016 
00017   This file is distributed WITHOUT ANY WARRANTY. See the file
00018   `license' for details on this and other legal matters.
00019 *--------------------------------------------------------------*/
00020 
00021 #ifndef __CPLACEHOLDERMOD_H
00022 #define __CPLACEHOLDERMOD_H
00023 
00024 #include "cmodule.h"
00025 #include "csimulation.h"
00026 
00027 NAMESPACE_BEGIN
00028 
00037 class SIM_API cPlaceholderModule : public cModule // so, noncopyable
00038 {
00039   protected:
00040     // internal: "virtual ctor" for cGate: creates cProxyGate
00041     virtual cGate *createGateObject(cGate::Type type);
00042 
00043     // placeholder modules have no submodules
00044     virtual void doBuildInside() {}
00045 
00046   public:
00053     cPlaceholderModule();
00054 
00058     virtual ~cPlaceholderModule();
00060 
00067     virtual std::string info() const;
00069 
00075     virtual bool isPlaceholder() const  {return true;}
00076 
00080     virtual void arrived(cMessage *msg, cGate *ongate, simtime_t t);
00081 
00085     virtual void scheduleStart(simtime_t t);
00087 };
00088 
00089 
00090 NAMESPACE_END
00091 
00092 
00093 #endif
00094 
Generated on Tue Dec 2 11:16:32 2014 for OMNeT++ Parallel Simulation Support by  doxygen 1.6.3