anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | |
| 2 | /* |
| 3 | * Copyright 2019-present Infosys Limited |
| 4 | * |
| 5 | * SPDX-License-Identifier: Apache-2.0 |
| 6 | */ |
| 7 | |
| 8 | /************************************** |
| 9 | * attachWfImsiValidateAction.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/attachWfImsiValidateAction.h" |
| 21 | #include "mmeStates/attachWfAia.h" |
| 22 | #include "mmeStates/attachWfIdentityResponse.h" |
| 23 | |
| 24 | using namespace mme; |
| 25 | using namespace SM; |
| 26 | |
| 27 | /****************************************************************************** |
| 28 | * Constructor |
| 29 | ******************************************************************************/ |
| 30 | AttachWfImsiValidateAction::AttachWfImsiValidateAction():State(State_e::attach_wf_imsi_validate_action) |
| 31 | { |
| 32 | } |
| 33 | |
| 34 | /****************************************************************************** |
| 35 | * Destructor |
| 36 | ******************************************************************************/ |
| 37 | AttachWfImsiValidateAction::~AttachWfImsiValidateAction() |
| 38 | { |
| 39 | } |
| 40 | |
| 41 | /****************************************************************************** |
| 42 | * creates and returns static instance |
| 43 | ******************************************************************************/ |
| 44 | AttachWfImsiValidateAction* AttachWfImsiValidateAction::Instance() |
| 45 | { |
| 46 | static AttachWfImsiValidateAction state; |
| 47 | return &state; |
| 48 | } |
| 49 | |
| 50 | /****************************************************************************** |
| 51 | * initializes eventToActionsMap |
| 52 | ******************************************************************************/ |
| 53 | void AttachWfImsiValidateAction::initialize() |
| 54 | { |
| 55 | { |
| 56 | ActionTable actionTable; |
| 57 | actionTable.addAction(&ActionHandlers::send_air_to_hss); |
| 58 | actionTable.setNextState(AttachWfAia::Instance()); |
| 59 | eventToActionsMap.insert(pair<Event_e, ActionTable>(Event_e::IMSI_VALIDATION_SUCCESS, actionTable)); |
| 60 | } |
| 61 | { |
| 62 | ActionTable actionTable; |
| 63 | actionTable.addAction(&ActionHandlers::send_identity_request_to_ue); |
| 64 | actionTable.setNextState(AttachWfIdentityResponse::Instance()); |
| 65 | eventToActionsMap.insert(pair<Event_e, ActionTable>(Event_e::IMSI_VALIDATION_FAILURE, actionTable)); |
| 66 | } |
| 67 | } |