CoordBasedRoutingAccess.h
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
00024 #ifndef __COORDBASEDROUTING_ACCESS_H__
00025 #define __COORDBASEDROUTING_ACCESS_H__
00026
00027 #include <omnetpp.h>
00028 #include "CoordBasedRouting.h"
00029
00030
00034 class CoordBasedRoutingAccess
00035 {
00036 public:
00037 CoordBasedRouting* get()
00038 {
00039 CoordBasedRouting* temp =
00040 (CoordBasedRouting*)simulation.getModuleByPath("globalObserver."
00041 "globalFunctions[0].function.coordBasedRouting");
00042 if (temp) return temp;
00043 return (CoordBasedRouting*)simulation.getModuleByPath("globalObserver."
00044 "globalFunctions[1].function.coordBasedRouting");
00045 }
00046 };
00047
00048 #endif
00049