####################################
## SCFD file version: 0.3         ##
## PDDB version: TLF17_1605_002   ##
####################################

#General checking for rule file execution
check_version minor TL17A
check_version minor TLF17A
check_version minor TLC17A

#v0.3 exit rule for 17SP
check_version minor TLF17SP
check_version minor TLC17SP
#v0.3 end


check_param minor LNBTS actUTCBroadcast


###########
# COMMON: #
###########

#Macro specific
##############################################################################################################################
#LTE2733 - Baseband pooling [FL17, Macro, LTE:24 RA:2]
##############################################################################################################################
#Updated from optional to mandatory
#add_param minor BBPOOLALLOC bbPoolAllocMode automatic


##############################################################################################################################
#LTE3056-A-a GPS and UTC time information broadcast support (SIB16) -- Feature de/activation [FL17/TL17,Macro+Micro,  LTE:13 RA:2 ]
##############################################################################################################################
#OM_LTE_SFS_RNL.16333
#Following parameters are new mandatory parameter and must be initialized with its default value:
#-+	LNBTS - actUTCBroadcast
add_param minor LNBTS actUTCBroadcast false

#Update the following mandatory parameters from MOC XPARAM to MOC SIB with the following rule:
#	-+       dayLt(SIB) = 0 if dayLt(XPARAM) = 0 (FALSE), 
#	-+       dayLt(SIB) = 1 if dayLt(XPARAM) = 1 (TRUE), 
# 	-+       ltmOff(SIB) = ltmOff(XPARAM) * 2
#note: The above two parameters migration rules are defined with internal value, and the granularity of the parameter ltmOff  is changed to 0.25 from 0.5 after it migrates from MOC XPARAM to SIB.
add_param minor SIB dayLt tempValue

#v0.2  Update dayLt to Number and ltmOff to optional according to NIDD TLF17_1606_001 definition
#add_param minor SIB ltmOff 18
add_param minor SIB ltmOff tempValue

#dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL/SIB dayLt = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/XPARAM-1 dayLt == CONST "true" ? CONST "true" : CONST "false"
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL/SIB dayLt = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/XPARAM-1 dayLt == CONST "true" ? CONST 1 : CONST 0
dependence_mod_param_conditional_expression_relative minor PARAM MRBTS/LNBTS/LNCEL/SIB ltmOff = PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/XPARAM-1 ltmOff >= CONST -24 && PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/XPARAM-1 ltmOff <= CONST 24 ? PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/LNCEL-${LNCEL}/XPARAM-1 ltmOff * CONST 2 :

dependence_del_param minor SIB dayLt tempValue dayLt
dependence_del_param minor SIB ltmOff tempValue ltmOff

#Following parameters in MOC XPARAM are deleted:
#-+	XPARAM - dayLt 
#-+	XPARAM - ltmOff 
#-+	XPARAM - lpSec
del_param minor XPARAM dayLt
del_param minor XPARAM ltmOff
del_param minor XPARAM lpSec


##############################################################################################################################
#LTE2664 Load Based PUCCH Region [FL/TL17 (PREP), LTE:17 RA:0]
##############################################################################################################################
#OM_LTE_SFS_RNL.15305
add_param minor APUCCH actLbPucchReg false

#OM_LTE_SFS_RNL.15382
#A MOC LBPUCCHRDPR (Load Based PUCCH Region Default PRofile) is added as new child class of the LNBTS. 
#This class is a predefined instance, defined as singleton that can't be deleted.
#Note: With CRL11313 the feature LTE2664 is moved from FL16A to FL17
#the class location and its cardinality information can be seen in OM_LTE_SFS_RNL.13373.

add_cls minor LNBTS/LBPUCCHRDPR-0
set_operation minor LBPUCCHRDPR create

add_param minor LBPUCCHRDPR countdownPucchCompr 60min
add_param minor LBPUCCHRDPR countdownPucchExp 1min 
add_param minor LBPUCCHRDPR rrcConnectedLowerThresh 10
add_param minor LBPUCCHRDPR rrcConnectedUpperThresh 80



########
# TDD: #
########




#version
#FZM Replace# set_version major TL17
dependence_set_version major PARAM MRBTS-${MRBTS}/LNBTS-${LNBTS}/FTM-${FTM}/UNIT-${UNIT} unitTypeExpected == CONST "FZC1100" ? CONST "TLC17" : CONST "TLF17"

#history:
#FZM Replace# add_log minor "Conversion from TL17 FB16.05 (001) to TL17 FB16.05 (002)"
add_log minor "Conversion from TLF17 FB16.05 (001) to TLF17 FB16.05 (002)"