--- a/src/DIF/RMT/RMTQMonitorBase.cc
+++ b/src/DIF/RMT/RMTQMonitorBase.cc
@@ -1,5 +1,5 @@
//
-// Copyright © 2014 PRISTINE Consortium (http://ict-pristine.eu)
+// Copyright © 2014 - 2015 PRISTINE Consortium (http://ict-pristine.eu)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
@@ -26,8 +26,14 @@
disp.setTagArg("t", 1, "t");
disp.setTagArg("t", 0, getClassName());
+ rmtAllocator = check_and_cast<RMTModuleAllocator*>
+ (getModuleByPath("^.rmtModuleAllocator"));
+
schedPolicy = check_and_cast<RMTSchedulingBase*>
(getModuleByPath("^.schedulingPolicy"));
+
+ addrComparator = check_and_cast<AddressComparatorBase*>
+ (getModuleByPath("^.^.resourceAllocator.addressComparator"));
onPolicyInit();
}
@@ -48,7 +54,7 @@
{
}
-void RMTQMonitorBase::onMessageDrop(RMTQueue* queue, const cMessage* pdu)
+void RMTQMonitorBase::onMessageDrop(RMTQueue* queue, const cPacket* pdu)
{
}