blob: 476a10735c7377e2119c2d23896a765674df4021 [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301
2/*
3 * Copyright 2019-present Infosys Limited  
4 *   
5 * SPDX-License-Identifier: Apache-2.0    
6 */
7
8/**************************************
9 * niDetachWfDetachAccept.cpp
10 * This is an auto generated file.
11 * Please do not edit this file.
12 * All edits to be made through template source file
13 * <TOP-DIR/scripts/SMCodeGen/templates/stateMachineTmpls/state.cpp.tt>
14 **************************************/
15
16#include "smEnumTypes.h"
17#include "actionTable.h"
18#include "actionHandlers/actionHandlers.h"
19
20#include "mmeStates/niDetachWfDetachAccept.h"
21#include "mmeStates/niDetachWfS1RelComp.h"
22
23using namespace mme;
24using namespace SM;
25
26/******************************************************************************
27* Constructor
28******************************************************************************/
29NiDetachWfDetachAccept::NiDetachWfDetachAccept():State(State_e::ni_detach_wf_detach_accept)
30{
31}
32
33/******************************************************************************
34* Destructor
35******************************************************************************/
36NiDetachWfDetachAccept::~NiDetachWfDetachAccept()
37{
38}
39
40/******************************************************************************
41* creates and returns static instance
42******************************************************************************/
43NiDetachWfDetachAccept* NiDetachWfDetachAccept::Instance()
44{
45 static NiDetachWfDetachAccept state;
46 return &state;
47}
48
49/******************************************************************************
50* initializes eventToActionsMap
51******************************************************************************/
52void NiDetachWfDetachAccept::initialize()
53{
54 {
55 ActionTable actionTable;
56 actionTable.addAction(&ActionHandlers::process_detach_accept_from_ue);
57 actionTable.addAction(&ActionHandlers::send_s1_rel_cmd_to_ue_for_detach);
58 actionTable.setNextState(NiDetachWfS1RelComp::Instance());
59 eventToActionsMap.insert(pair<Event_e, ActionTable>(Event_e::DETACH_ACCEPT_FROM_UE, actionTable));
60 }
61}