Switch to side-by-side view

--- a
+++ b/src/policies/DIF/FA/NewFlowRequest/NewFlowRequestBase.cc
@@ -0,0 +1,40 @@
+//
+// 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
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU Lesser General Public License for more details.
+// 
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program.  If not, see http://www.gnu.org/licenses/.
+// 
+
+#include <NewFlowRequest/NewFlowRequestBase.h>
+
+Define_Module(NewFlowRequestBase);
+
+bool NewFlowRequestBase::run(Flow& flow) {
+    Enter_Method("invokeNewFlowRequestPolicy()");
+    //Implicitly accept any flow
+    return true;
+}
+
+void NewFlowRequestBase::handleMessage(cMessage* msg) {
+    return;
+}
+
+void NewFlowRequestBase::initialize() {
+    // Get RA
+    ResourceAllocator = check_and_cast<RABase*>(getParentModule()->getParentModule()->getSubmodule(MOD_RESALLOC)->getSubmodule(MOD_RA));
+
+    // display active policy name
+    cDisplayString& disp = getDisplayString();
+    disp.setTagArg("t", 1, "t");
+    disp.setTagArg("t", 0, getClassName());
+
+    return;
+}