Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef FAILUREMANAGER_H
00019 #define FAILUREMANAGER_H
00020
00021 #include <omnetpp.h>
00022
00023 #include "IScriptable.h"
00024
00028 class INET_API FailureManager : public cSimpleModule, public IScriptable
00029 {
00030 protected:
00031 virtual void initialize();
00032 virtual void handleMessage(cMessage *msg);
00033
00034
00035 virtual void processCommand(const cXMLElement& node);
00036
00037 protected:
00038 virtual void replaceNode(cModule *mod, const char *newNodeType);
00039 virtual void reconnectNode(cModule *old, cModule *n);
00040 virtual void reconnectAllGates(cModule *old, cModule *n);
00041 virtual void reconnectGates(cModule *old, cModule *n, const char *gateName, int gateIndex=-1);
00042 virtual void reconnectGate(cGate *oldGate, cGate *newGate);
00043 virtual cModule* getTargetNode(const char *target);
00044 private:
00045 static cChannel *copyChannel(cChannel *channel);
00046 static void copyParams(cComponent *from, cComponent *to);
00047 };
00048
00049 #endif