Project

General

Profile

Statistics
| Branch: | Revision:

root / src / sim / parsim / cplaceholdermod.cc @ 81ad8b66

History | View | Annotate | Download (2.02 KB)

1
//==========================================================================
2
//   CPLACEHOLDERMOD.CC  -  header for
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) 1992-2008 Andras Varga
15
  Copyright (C) 2006-2008 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
#include "cplaceholdermod.h"
22
#include "cproxygate.h"
23

    
24
USING_NAMESPACE
25

    
26

    
27
cPlaceholderModule::cPlaceholderModule()
28
{
29
}
30

    
31
cPlaceholderModule::~cPlaceholderModule()
32
{
33
}
34

    
35
void cPlaceholderModule::arrived(cMessage *msg, cGate *ongate, simtime_t t)
36
{
37
    throw cRuntimeError(this, "internal error: arrived() called");
38
}
39

    
40
void cPlaceholderModule::scheduleStart(simtime_t t)
41
{
42
    // do nothing
43
}
44

    
45
cGate *cPlaceholderModule::createGateObject(cGate::Type type)
46
{
47
    if (type==cGate::INPUT)
48
        return new cProxyGate();
49
    else
50
        return cModule::createGateObject(type);
51
}
52

    
53
//----------------------------------------
54
// as usual: tribute to smart linkers
55
#include "cfilecomm.h"
56
#include "cnamedpipecomm.h"
57
#include "cmpicomm.h"
58
#include "cnosynchronization.h"
59
#include "cnullmessageprot.h"
60
#include "cispeventlogger.h"
61
#include "cidealsimulationprot.h"
62
#include "clinkdelaylookahead.h"
63
#include <stdio.h>
64
void parsim_dummy()
65
{
66
    cFileCommunications fc;
67
    cNamedPipeCommunications npc;
68
#ifdef WITH_MPI
69
    cMPICommunications mc;
70
#endif
71
    cNoSynchronization ns;
72
    cNullMessageProtocol np;
73
    cISPEventLogger iel;
74
    cIdealSimulationProtocol ip;
75
    cLinkDelayLookahead ldla;
76
    // prevent "unused variable" warnings:
77
    (void)fc; (void)npc; (void)ns; (void)np; (void)iel; (void)ip; (void)ldla;
78
}
79