BwManagementAPI_Templates.ttcn 3.88 KB
Newer Older
YannGarcia's avatar
YannGarcia committed
module BwManagementAPI_Templates {
  
  // JSON
  import from JSON all;
  
  // LibCommon
  import from LibCommon_BasicTypesAndValues all;

  // LibMec/BwManagementAPI
  import from BwManagementAPI_TypesAndValues all;
  import from BwManagementAPI_Pixits all;
YannGarcia's avatar
YannGarcia committed

  template (value) BwInfo m_bw_info(
                                    in AppInsId p_appInsId := PX_APP_INSTANCE_ID,
YannGarcia's avatar
YannGarcia committed
                                    in RequestType p_requestType,
                                    in FixedBWPriority p_fixedBWPriority,
                                    in FixedAllocation p_fixedAllocation,
                                    in AllocationDirection p_allocationDirection
                                    ) := {
    timeStamp           := omit,
    appInsId            := p_appInsId,
    requestType         := p_requestType,
    sessionFilter       := omit,
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
  } // End of template m_bw_info

  template (present) BwInfo mw_bw_info(
                                       template (present) AppInsId p_appInsId := ?,
                                       template (present) RequestType p_requestType := ?,
                                       template (present) FixedBWPriority p_fixedBWPriority := ?,
                                       template (present) FixedAllocation p_fixedAllocation := ?,
                                       template (present) AllocationDirection p_allocationDirection := ?
                                       ) := {
    timeStamp           := *,
    appInsId            := p_appInsId,
    requestType         := p_requestType,
    sessionFilter       := *,
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
  } // End of template mw_bw_info

  template (value) BwInfoDeltas m_bw_info_delta(
                                                in AppInsId p_appInsId := PX_APP_INSTANCE_ID,
YannGarcia's avatar
YannGarcia committed
                                                in RequestType p_requestType,
                                                in template (value) SessionFilter p_sessionFilter,
                                                in FixedBWPriority p_fixedBWPriority,
                                                in FixedAllocation p_fixedAllocation,
                                                in AllocationDirection p_allocationDirection
                                                ) := {
    appInsId            := p_appInsId,
    requestType         := p_requestType,
    sessionFilter       := p_sessionFilter,
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
  } // End of template m_bw_info_delta

  template (present) BwInfoDeltas mw_bw_info_delta(
                                                   template (present) AppInsId p_appInsId := ?,
                                                   template (present) RequestType p_requestType := ?,
                                                   template (present) SessionFilter p_sessionFilter := ?,
                                                   template (present) FixedBWPriority p_fixedBWPriority := ?,
                                                   template (present) FixedAllocation p_fixedAllocation := ?,
                                                   template (present) AllocationDirection p_allocationDirection := ?
                                                   ) := {
    appInsId            := p_appInsId,
    requestType         := p_requestType,
    sessionFilter       := p_sessionFilter,
    fixedBWPriority     := p_fixedBWPriority,
    fixedAllocation     := p_fixedAllocation,
    allocationDirection := p_allocationDirection
  } // End of template mw_bw_info_delta

} // End of module BwManagementAPI_Templates