|
a |
|
b/src/policies/DIF/Routing/DomainRouting/rModule.cc |
|
|
1 |
/*
|
|
|
2 |
* DomainModule.cc
|
|
|
3 |
*
|
|
|
4 |
* Created on: Mar 23, 2015
|
|
|
5 |
* Author: gaixas1
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
#include <DomainRouting/rModule.h>
|
|
|
9 |
#include <DomainRouting/Routing.h>
|
|
|
10 |
|
|
|
11 |
namespace DMRnms {
|
|
|
12 |
|
|
|
13 |
RoutingUpdate::RoutingUpdate(const Address &_addr, const std::string &_domain) :IntRoutingUpdate(_addr){
|
|
|
14 |
domain = _domain;
|
|
|
15 |
}
|
|
|
16 |
|
|
|
17 |
rModule::rModule(Routing * _parent, const Address &_naddr, const std::string &_domain, const std::string &_addr)
|
|
|
18 |
:parent(_parent), myNAddress(_naddr), domain(_domain), myAddr(_addr){}
|
|
|
19 |
|
|
|
20 |
void rModule::scheduleAt(const double & time, cMessage *msg){
|
|
|
21 |
parent->chScheduleAt(domain, time, msg);
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
} /* namespace DomainRouting */
|