Slice PM Counters VES Standard defined
[o-du/l2.git] / src / o1 / ves / VesEventHandler.cpp
index 09339cf..bf52f1d 100644 (file)
@@ -24,6 +24,9 @@
 #include "PnfRegistrationEvent.hpp"
 #include "SliceMeasurementEvent.hpp"
 #include "Message.hpp"
+#include "CellStateChange.hpp"
+#include "CellStateChangeStdDef.hpp"
+#include "SliceMeasurementEventStdDef.hpp"
 
 /*******************************************************************
  *
@@ -95,8 +98,24 @@ bool VesEventHandler::prepare(VesEventType evtType, const Message* msg)
       }
       case VesEventType::PM_SLICE:
       {
+         #ifdef StdDef
+         mVesEvent = new SliceMeasurementEventStdDef;
+         O1_LOG("\nO1 VesEventHandler : Preparing Standard VES PM Slice");
+         #else
          mVesEvent = new SliceMeasurementEvent;
          O1_LOG("\nO1 VesEventHandler : Preparing VES PM Slice");
+         #endif
+         break;
+      }
+      case VesEventType::FAULT_NOTIFICATION:
+      {
+         #ifdef StdDef
+         O1_LOG("\nO1 VesEventHandler : Preparing Standard VES fault notification");
+         mVesEvent = new CellStateChangeStdDef();
+         #else
+         O1_LOG("\nO1 VesEventHandler : Preparing VES fault notification");
+         mVesEvent = new CellStateChange();
+         #endif
          break;
       }