blob: 38c50f1073662488cf73a0467c4c46cd902c81d8 [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 * attachWfEsmInfoCheck.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/attachWfEsmInfoCheck.h"
21#include "mmeStates/attachWfEsmInfoResp.h"
22#include "mmeStates/attachWfUla.h"
23
24using namespace mme;
25using namespace SM;
26
27/******************************************************************************
28* Constructor
29******************************************************************************/
30AttachWfEsmInfoCheck::AttachWfEsmInfoCheck():State(State_e::attach_wf_esm_info_check)
31{
32}
33
34/******************************************************************************
35* Destructor
36******************************************************************************/
37AttachWfEsmInfoCheck::~AttachWfEsmInfoCheck()
38{
39}
40
41/******************************************************************************
42* creates and returns static instance
43******************************************************************************/
44AttachWfEsmInfoCheck* AttachWfEsmInfoCheck::Instance()
45{
46 static AttachWfEsmInfoCheck state;
47 return &state;
48}
49
50/******************************************************************************
51* initializes eventToActionsMap
52******************************************************************************/
53void AttachWfEsmInfoCheck::initialize()
54{
55 {
56 ActionTable actionTable;
57 actionTable.addAction(&ActionHandlers::send_esm_info_req_to_ue);
58 actionTable.setNextState(AttachWfEsmInfoResp::Instance());
59 eventToActionsMap.insert(pair<Event_e, ActionTable>(Event_e::ESM_INFO_REQUIRED, actionTable));
60 }
61 {
62 ActionTable actionTable;
63 actionTable.addAction(&ActionHandlers::send_ulr_to_hss);
64 actionTable.setNextState(AttachWfUla::Instance());
65 eventToActionsMap.insert(pair<Event_e, ActionTable>(Event_e::ESM_INFO_NOT_REQUIRED, actionTable));
66 }
67}