Alex Bikfalvi
SimStream Documentation
Router.h
00001 #pragma once 00002 00003 #include "Node.h" 00004 #include "LayerIpRoute.h" 00005 #include "LayerPimSm.h" 00006 00007 class CRouter : public CNode 00008 { 00009 protected: 00010 // Layers 00011 CLayerIpRoute* layerIpRoute; 00012 CLayerIgmp* layerIgmp; 00013 CLayerPimSm* layerPimSm; 00014 00015 public: 00016 CRouter( 00017 __uint32 id, 00018 CSimHandler* sim, 00019 CAddress address, 00020 __uint32 numLinks, 00021 CRoute* route, 00022 CInfo* info, 00023 CAddress* rp 00024 ); 00025 virtual ~CRouter(); 00026 00027 virtual void Finalize(); 00028 00029 inline double StatMcastEntriesIgmp() { return this->layerIgmp->StatEntries(); } 00030 inline double StatMcastEntriesPimSm() { return this->layerPimSm->StatEntries(); } 00031 };
Last updated: February 8, 2011