blob: 031f24fce367602cab4a105d22073f3d7b3a5ff7 [file] [log] [blame]
///////////////////////////////////////////////////////////////////////////////
// //
// Copyright (c) 2000-2019 Ericsson Telecom AB //
// //
// All rights reserved. This program and the accompanying materials //
// are made available under the terms of the Eclipse Public License v2.0 //
// which accompanies this distribution, and is available at //
// https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html //
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////
// Module: EPTF_CLL_TimeProfileEditor_Definitions
//
// Purpose:
// This TTCN-3 module contains definitions for EPTF Time Profile Editor
//
// Module Parameters:
// - tsp_EPTF_ExecCtrl_TimeProfileDescrList - <EPTF_ExecCtrl_TimeProfileDescrList>
// - tsp_EPTF_ExecCtrl_TimeProfileList - <EPTF_ExecCtrl_TimeProfileList>
// - tsp_TimeProfileEditor_DisplayedTimeUnit - <charstring>
// - tsp_TimeProfileEditor_ConfigFilename - <charstring>
// - tsp_TimeProfileEditor_GuiPortListenAddr - <charstring>
// - tsp_TimeProfileEditor_GuiPortListenPort - <integer>
//
// Module depends on:
// <EPTF_CLL_ExecCtrlTimeProfile_Definitions>
// <ttcn_ericsson_se_protocolModules_xtdp_xtdl>
// <ttcn_ericsson_se_protocolModules_xtdp_xtdp>
// <EPTF_CLL_TransportIPL4_Definitions>
// <EPTF_CLL_Base_Definitions>
//
// Current Owner:
// Janos Zoltan Svaner (ejnosvn)
//
// Last Review Date:
// 2008-??-??
//
// Detailed Comments:
// -
//
///////////////////////////////////////////////////////////
module EPTF_CLL_TimeProfileEditor_Definitions
{
//=========================================================================
// Import Part
//=========================================================================
import from EPTF_CLL_ExecCtrlTimeProfile_Definitions all;
import from ttcn_ericsson_se_protocolModules_xtdp_xtdl all;
import from ttcn_ericsson_se_protocolModules_xtdp_xtdp all;
import from EPTF_CLL_TransportIPL4_Definitions all;
import from EPTF_CLL_Base_Definitions all;
//=========================================================================
// Module Parameters
//=========================================================================
modulepar charstring tsp_TimeProfileEditor_DisplayedTimeUnit := "hours";
modulepar charstring tsp_TimeProfileEditor_ConfigFilename := "edited_time_profiles.cfg";
modulepar charstring tsp_TimeProfileEditor_GuiPortListenAddr := "localhost";
modulepar integer tsp_TimeProfileEditor_GuiPortListenPort := 7331;
//=========================================================================
// Data Types
//=========================================================================
type record TimeProfileUnit {
float startTime,
charstring traceId,
charstring traceName,
float targetValue
}
type record of TimeProfileUnit TimeProfileUnitList;
//=========================================================================
//Component Types
//=========================================================================
type component MAIN_CT extends EPTF_Base_CT, EPTF_TransportIPL4_CT {
var XTDP_Message xtdp_message;
var boolean v_EPTF_TimeProfileEditor_initialized := false;
var integer lastRequestId := 0;
var integer connectionId := -1;
var EPTF_ExecCtrl_TimeProfileDescrList timeSequenceList;
var EPTF_ExecCtrl_TimeProfileList profileList;
var Tree timeSequencesPropertiesTree;
var boolean timeSequencesPropertiesTreeDisabled := true;
var charstring currentTimeSequenceSelection := "";
var integer currentBeforeRow := 10;
var integer currentRemoveRow := 1;
var boolean removeRowDisabled := true;
var Tree profilePropertiesTree;
var boolean profilePropertiesTreeDisabled := true;
var charstring currentProfileSelection := "";
var integer currentBeforeProfileRow := 10;
var integer currentRemoveProfileRow := 1;
var boolean removeProfileRowDisabled := true;
var charstring currentTimeSequenceMenuSelection := "";
// time unit is hour by default
var charstring currentTimeUnit := "hours";
var float currentTimeUnitMultiplier := 3600.0;
var charstring currentConfig := "";
var charstring currentError := "";
private var integer v_TPE_lastRequest := 0;
var integer v_handshakeSuccessful := -1;
var integer v_newTimeSequenceNameRequestId := -1;
var integer v_newTimeProfileRequestId := -1;
}
//=========================================================================
// Constants
//=========================================================================
const charstring c_TimeSequencesTspName := "tsp_EPTF_ExecCtrl_TimeProfileDescrList";
const charstring c_TimeProfilesTspName := "tsp_EPTF_ExecCtrl_TimeProfileList";
const charstring c_DisplayedTimeUnitTspName := "tsp_TimeProfileEditor_DisplayedTimeUnit";
const charstring c_timeSequenceListboxId := "time_sequences_listbox";
const charstring c_profileListboxId := "profile_listbox";
const charstring c_EPTF_TimeProfileEditor_LGenType := "TPE_LGEN";
type record of charstring ColorsList;
const ColorsList colors := {
"blue", "red", "cyan", "magenta", "dark_gray", "green", "orange", "light_gray", "pink", "black"
}
const float c_EPTF_TPE_xtdpMyVersion := 1.0;
const float c_EPTF_TPE_xtdlMyVersion := 1.0;
} // end of module