| ///////////////////////////////////////////////////////////////////////////////
|
| // //
|
| // Copyright (c) 2000-2017 Ericsson Telecom AB // |
| // // |
| // All rights reserved. This program and the accompanying materials // |
| // are made available under the terms of the Eclipse Public License v1.0 // |
| // which accompanies this distribution, and is available at // |
| // http://www.eclipse.org/legal/epl-v10.html //
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| ///////////////////////////////////////////////////////////
|
| // Module: EPTF_SimpleHello_LGen_Definitions
|
| //
|
| // Purpose:
|
| // This module contains definitions for SimpleHello LoadGen component.
|
| //
|
| // Module Parameters:
|
| // tsp_EPTF_SimpleHello_logEnabled - *boolean* - enables logging in this component
|
| // tsp_EPTF_SimpleHello_loggingComponentMask - *charstring* - component mask name of the Applib
|
| // tsp_EPTF_SimpleHelloNoOfEntities - *integer* - number of entities
|
| //
|
| // Module depends on:
|
| // <EPTF_CLL_Common_Definitions>
|
| // <EPTF_CLL_LGenBase_Definitions>
|
| // <EPTF_CLL_Variable_Definitions>
|
| // <EPTF_SimpleHello_Definitions>
|
| // <EPTF_CLL_Logging_Definitions>
|
| //
|
| // Current Owner:
|
| // Attila Fulop (EFLOATT), Bence Molnar(EBENMOL)
|
| //
|
| // Last Review Date:
|
| // 2009-04-03
|
| //
|
| // Detailed Comments:
|
| // This module contains definitions for SimpleHello LoadGen component.
|
| //
|
| ///////////////////////////////////////////////////////////////
|
| module EPTF_SimpleHello_LGen_Definitions
|
| {
|
| //=========================================================================
|
| // Import Part
|
| //=========================================================================
|
| import from EPTF_CLL_Common_Definitions all;
|
| import from EPTF_CLL_LGenBase_Definitions all;
|
| import from EPTF_CLL_Variable_Definitions all;
|
| import from EPTF_SimpleHello_Definitions all;
|
| import from EPTF_CLL_Logging_Definitions all;
|
|
|
| //=========================================================================
|
| // Module parameters
|
| //=========================================================================
|
| modulepar {
|
| boolean tsp_EPTF_SimpleHello_logEnabled := false;
|
| charstring tsp_EPTF_SimpleHello_loggingComponentMask := "EPTF_SimpleHello";
|
| integer tsp_EPTF_SimpleHelloNoOfEntities := 0;
|
| }
|
|
|
| //=========================================================================
|
| // Data Types
|
| //=========================================================================
|
|
|
| ///////////////////////////////////////////////////////////
|
| // Type: EPTF_SimpleHello_LGen_CT
|
| //
|
| // Purpose:
|
| // component type for SimpleHello Server and Client
|
| //
|
| // Extensions:
|
| // <EPTF_LGenBase_CT>
|
| // <EPTF_Var_CT>
|
| // <EPTF_Logging_CT>
|
| //
|
| // Variables:
|
| // v_EPTF_SimpleHello_myBIdx - *integer* - SimpleHello behavior type index
|
| // v_EPTF_SimpleHello_contexts - <EPTF_SimpleHello_CtxList> - SimpleHello entity context list
|
| // v_EPTF_SimpleHello_statistics - <EPTF_SimpleHello_Statistics> - statistics of sessions
|
| // v_EPTF_SimpleHello_statistics_keys - <EPTF_SimpleHello_Statistics> - keys to statistics of sessions
|
| // v_EPTF_SimpleHello_request - <PDU_SimpleHello_Request> - storing PDU_SimpleHello_Request
|
| // v_EPTF_SimpleHello_response - <PDU_SimpleHello_Response> - storing PDU_SimpleHello_Response
|
| // v_EPTF_SimpleHello_responseList - <EPTF_SimpleHello_Response_List> - for processing-delay support
|
| // vf_EPTF_SimpleHello_sendRequest - <f_EPTF_SimpleHello_messageProcess_FT> - sending function reference
|
| // v_EPTF_SimpleHello_LGen_initialized - *boolean* - component initialization indicator
|
| // v_EPTF_SimpleHello_loggingMaskId - *integer* - The index of the logging mask assigned to the component
|
| // v_EPTF_SimpleHello_templTypeId_customRequest - *integer* - The external template type index of SimpleHello custom Request
|
| // v_EPTF_SimpleHello_templId_customRequest - *integer* - The external template index of SimpleHello custom Request
|
| // v_EPTF_SimpleHello_setId_customRequest - *integer* - The external template set index of SimpleHello custom Request
|
| //
|
| //
|
| // Timers:
|
| // -
|
| //
|
| // Ports:
|
| // -
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| type component EPTF_SimpleHello_LGen_CT extends
|
| EPTF_LGenBase_CT
|
| {
|
| var integer v_EPTF_SimpleHello_myBIdx := -1; //SimpleHello behavior type index
|
| var EPTF_SimpleHello_CtxList v_EPTF_SimpleHello_contexts; //SimpleHello entity context list
|
| var EPTF_SimpleHello_Statistics v_EPTF_SimpleHello_statistics; //statistics of sessions
|
| var EPTF_SimpleHello_Statistics v_EPTF_SimpleHello_statistics_keys; //keys to statistics of sessions
|
| var PDU_SimpleHello_Request v_EPTF_SimpleHello_request; //storing PDU_SimpleHello_Request
|
| var PDU_SimpleHello_Response v_EPTF_SimpleHello_response; //storing PDU_SimpleHello_Response
|
| var EPTF_SimpleHello_Response_List v_EPTF_SimpleHello_responseList; //for processing-delay support
|
| var f_EPTF_SimpleHello_messageProcess_FT vf_EPTF_SimpleHello_sendRequest := null; //sending function reference
|
| var boolean v_EPTF_SimpleHello_LGen_initialized := false; //initialization indicator
|
| var integer v_EPTF_SimpleHello_loggingMaskId := c_EPTF_Logging_invalidMaskId; //ID of logMask
|
| var integer v_EPTF_SimpleHello_templTypeId_customRequest := -1; //template type Id
|
| var integer v_EPTF_SimpleHello_templId_customRequest := -1; //template Id
|
| var integer v_EPTF_SimpleHello_setId_customRequest := -1; //template set Id
|
| }
|
| //const integer c_A_inputIdx_sendFoo := 0;
|
| //const charstring c_A_inputName_sendFoo := "Trigger has occured for making a call";
|
| //const integer c_A_fsmIdx_basicIngoingCall := 0;
|
| //const charstring c_A_fsmName_basicIngoingCall := "FSM for outgoing call";
|
| ///////////////////////////////////////////////////////////
|
| // Type: EPTF_SimpleHello_Statistics
|
| //
|
| // Purpose:
|
| // type to store statistical informations
|
| //
|
| // Elements:
|
| // sessionsStarted - *integer* - number of started sessions
|
| // sessionsACK - *integer* - number of ACK-s
|
| // sessionsNACK - *integer* - number of NACK-s
|
| // sessionsTimeout - *integer* - number of sessions timeouts
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| type record EPTF_SimpleHello_Statistics
|
| {
|
| integer sessionsStarted,
|
| integer sessionsACK,
|
| integer sessionsNACK,
|
| integer sessionsTimeout
|
| }
|
|
|
| ////////////////////////////////////////////////////////////
|
| // Type: EPTF_SimpleHello_Ctx
|
| //
|
| // Purpose:
|
| // SimpleHello entity context
|
| //
|
| // Elements:
|
| // userId - *integer* - user ID
|
| // userName - *charstring* - name of the user
|
| // sessionId - *integer* - session ID
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| type record EPTF_SimpleHello_Ctx
|
| {
|
| integer userId,
|
| charstring userName,
|
| integer sessionId,
|
| charstring msg
|
| }
|
|
|
| ///////////////////////////////////////////////////////////
|
| // Type: EPTF_SimpleHello_CtxList
|
| //
|
| // Purpose:
|
| // FSM Context Database
|
| //
|
| // Elements:
|
| // record of <EPTF_SimpleHello_Ctx>
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| type record of EPTF_SimpleHello_Ctx EPTF_SimpleHello_CtxList;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // Type: EPTF_SimpleHello_Response_List
|
| //
|
| // Purpose:
|
| // List of response messages
|
| //
|
| // Elements:
|
| // record of <PDU_SimpleHello_Response>
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| type record of PDU_SimpleHello_Response EPTF_SimpleHello_Response_List;
|
|
|
|
|
| //=========================================================================
|
| // Function reference types
|
| //=========================================================================
|
|
|
| ///////////////////////////////////////////////////////////
|
| // Type: f_EPTF_SimpleHello_messageProcess_FT
|
| //
|
| // Purpose:
|
| // type for sendRequest callback function
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| type function f_EPTF_SimpleHello_messageProcess_FT(in octetstring pl_Message)
|
| runs on self;
|
|
|
| //=========================================================================
|
| // Constants
|
| //=========================================================================
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_maxEntityCount
|
| //
|
| // Purpose:
|
| // constant for the maximal number of entities
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_maxEntityCount := 100;
|
|
|
| /*
|
| const EPTF_SimpleHello_Statistics c_EPTF_SimpleHello_Statistics := {
|
| sessionsStarted := 0,
|
| sessionsACK := 0,
|
| sessionsNACK := 0,
|
| sessionsTimeout := 0
|
| }
|
| */
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_ACK
|
| //
|
| // Purpose:
|
| // constant for the positiv answer result code
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_ACK := 0;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_NACK
|
| //
|
| // Purpose:
|
| // constant for the negativ answer result code
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_NACK := 1;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_TIMEOUT
|
| //
|
| // Purpose:
|
| // constant for the timout event result code
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_TIMEOUT := 2;
|
|
|
| //Behavior ------------------------------------------------
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_behaviorType_server
|
| //
|
| // Purpose:
|
| // constant for the name of the server behaviour
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_behaviorType_server := "SimpleHello Server Behavior";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_behaviorType_client
|
| //
|
| // Purpose:
|
| // constant for the name of the client behaviour
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_behaviorType_client := "SimpleHello Client Behavior";
|
|
|
| //Statistics ----------------------------------------------
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_statName_nof_initiatedSessions
|
| //
|
| // Purpose:
|
| // constant for the name of an EPTF Variable
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_statName_nof_initiatedSessions :=
|
| "SimpleHello: Nof Initiated Sessions";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_statName_nof_acks
|
| //
|
| // Purpose:
|
| // constant for the name of an EPTF Variable
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_statName_nof_acks :=
|
| "SimpleHello: Nof ACKs";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_statName_nof_nacks
|
| //
|
| // Purpose:
|
| // constant for the name of an EPTF Variable
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_statName_nof_nacks :=
|
| "SimpleHello: Nof NACKs";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_statName_nof_timeoutedSessions
|
| //
|
| // Purpose:
|
| // constant for the name of an EPTF Variable
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_statName_nof_timeoutedSessions :=
|
| "SimpleHello: Nof Timeouted Sessions";
|
|
|
| //=========================================================================
|
| // Constants for Inputs
|
| //=========================================================================
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventIdx_requestSent
|
| //
|
| // Purpose:
|
| // constant for the input index of SimpleHello Request message sending
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_eventIdx_requestSent := 0;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventName_requestSent
|
| //
|
| // Purpose:
|
| // constant for the input name of SimpleHello Request message sending
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_eventName_requestSent := "SimpleHello: C->S Request sent to server";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventIdx_reponseSent
|
| //
|
| // Purpose:
|
| // constant for the input index of SimpleHello Response message sending
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_eventIdx_responseSent := 1;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventName_responseSent
|
| //
|
| // Purpose:
|
| // constant for the input name of SimpleHello Response message sending
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_eventName_responseSent := "SimpleHello: S->C Response sent to client";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventIdx_requestReceived
|
| //
|
| // Purpose:
|
| // constant for the input index of SimpleHello Request message receiving
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_eventIdx_requestReceived := 2;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventName_requestReceived
|
| //
|
| // Purpose:
|
| // constant for the input name of SimpleHello Request message receiving
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_eventName_requestReceived := "SimpleHello: C->S Request received from client";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventIdx_reponseReceived
|
| //
|
| // Purpose:
|
| // constant for the input index of SimpleHello Response message receiving
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_eventIdx_reponseReceived := 3;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventName_responseReceived
|
| //
|
| // Purpose:
|
| // constant for the input name of SimpleHello Response message receiving
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_eventName_responseReceived := "SimpleHello: S->C Response received from server";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventIdx_timeout
|
| //
|
| // Purpose:
|
| // constant for the input index of SimpleHello timeout event
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_eventIdx_timeout := 4;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventName_timeout
|
| //
|
| // Purpose:
|
| // constant for the input name of SimpleHello timeout event
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_eventName_timeout := "SimpleHello: Timeout in communication";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventIdx_unknown
|
| //
|
| // Purpose:
|
| // constant for the input index of SimpleHello unknown event
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_eventIdx_unknown := 5;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_eventName_unknown
|
| //
|
| // Purpose:
|
| // constant for the input name of SimpleHello unknown event
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_eventName_unknown := "SimpleHello: Unknown message received";
|
|
|
| //=========================================================================
|
| // Constants for Steps in FSM Tables
|
| //=========================================================================
|
|
|
| // servers
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepIdx_sendSimple
|
| //
|
| // Purpose:
|
| // constant for the step index of sendSimple
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_stepIdx_sendSimple := 0;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepName_sendSimple
|
| //
|
| // Purpose:
|
| // constant for the step name of sendSimple
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_stepName_sendSimple := "SimpleHello: StepFunction_sendSimple";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepIdx_sendHello
|
| //
|
| // Purpose:
|
| // constant for the step index of sendHello
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_stepIdx_sendHello := 1;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepName_sendHello
|
| //
|
| // Purpose:
|
| // constant for the step name of sendHello
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_stepName_sendHello := "SimpleHello: StepFunction_sendHello";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepIdx_sendBye
|
| //
|
| // Purpose:
|
| // constant for the step index of sendBye
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_stepIdx_sendBye := 2;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepName_sendBye
|
| //
|
| // Purpose:
|
| // constant for the step name of sendBye
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_stepName_sendBye := "SimpleHello: StepFunction_sendBye";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepIdx_over
|
| //
|
| // Purpose:
|
| // constant for the step index of over
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_stepIdx_over := 3;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepName_over
|
| //
|
| // Purpose:
|
| // constant for the step name of over
|
| //
|
| // Detailed Comments:
|
| // This step is used for dispatch Tc success and takes the FSM back to IDLE
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_stepName_over := "SimpleHello: StepFunction_over";
|
|
|
| const charstring c_EPTF_SimpleHello_StepFunction_sendSimple := c_EPTF_SimpleHello_stepName_sendSimple; //for backward compatibility can be removed
|
| const charstring c_EPTF_SimpleHello_StepFunction_sendHello := c_EPTF_SimpleHello_stepName_sendHello; //for backward compatibility can be removed
|
| const charstring c_EPTF_SimpleHello_StepFunction_sendBye := c_EPTF_SimpleHello_stepName_sendBye; //for backward compatibility can be removed
|
| const charstring c_EPTF_SimpleHello_StepFunction_over := c_EPTF_SimpleHello_stepName_over; //for backward compatibility can be removed
|
|
|
| //clients
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepIdx_sendAck_forSimple
|
| //
|
| // Purpose:
|
| // constant for the step index of sendAck_forSimple
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_stepIdx_sendAck_forSimple := 4;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepName_sendAck_forSimple
|
| //
|
| // Purpose:
|
| // constant for the step name of sendAck_forSimple
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_stepName_sendAck_forSimple :="SimpleHello: StepFunction_sendAck_forSimple";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepIdx_sendAck_forHello
|
| //
|
| // Purpose:
|
| // constant for the step index of sendAck_forHello
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_stepIdx_sendAck_forHello := 5;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepName_sendAck_forHello
|
| //
|
| // Purpose:
|
| // constant for the step name of sendAck_forHello
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_stepName_sendAck_forHello :="SimpleHello: StepFunction_sendAck_forHello";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepIdx_sendAck_forBye
|
| //
|
| // Purpose:
|
| // constant for the step index of sendAck_forBye
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_stepIdx_sendAck_forBye := 6;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepName_sendAck_forBye
|
| //
|
| // Purpose:
|
| // constant for the step name of sendAck_forBye
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_stepName_sendAck_forBye :="SimpleHello: StepFunction_sendAck_forBye";
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepIdx_sendfoo
|
| //
|
| // Purpose:
|
| // constant for the step index of sendAfoo
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_stepIdx_sendfoo := 7;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_stepName_sendfoo
|
| //
|
| // Purpose:
|
| // constant for the step name of sendfoo
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_stepName_sendfoo :="SimpleHello: StepFunction_sendfoo";
|
|
|
|
|
| template PDU_SimpleHello_Request tr_SimpleHello_simplehello(charstring pl_message) := {
|
| header := {
|
| 0.0,
|
| 0.0,
|
| 0.0
|
| },
|
| transId := 7,
|
| senderId := ?,//pl_senderId,
|
| msg :=pl_message,
|
| payload := omit //char2oct("This is something else than Hello!")
|
| } ;
|
|
|
|
|
| //servers
|
| const integer c_EPTF_SimpleHello_inputIdx_receivedSimple :=0;
|
| const charstring c_EPTF_SimpleHello_inputName_receivedSimple :="SimpleHello: Simple message has been received";
|
|
|
| const integer c_EPTF_SimpleHello_inputIdx_receivedHello :=1;
|
| const charstring c_EPTF_SimpleHello_inputName_receivedHello :="SimpleHello: Hello message has been received";
|
|
|
| const integer c_EPTF_SimpleHello_inputIdx_receivedBye :=2;
|
| const charstring c_EPTF_SimpleHello_inputName_receivedBye :="SimpleHello: Bye message has been received";
|
| //clients
|
| const integer c_EPTF_SimpleHello_inputIdx_receivedAck_forSimple:=3;
|
| const charstring c_EPTF_SimpleHello_inputName_receivedAck_forSimple :="SimpleHello: Ack for Simple message has been received";
|
|
|
| const integer c_EPTF_SimpleHello_inputIdx_receivedAck_forHello:=4;
|
| const charstring c_EPTF_SimpleHello_inputName_receivedAck_forHello :="SimpleHello: Ack for Hello message has been received";
|
|
|
| const integer c_EPTF_SimpleHello_inputIdx_receivedAck_forBye:=5;
|
| const charstring c_EPTF_SimpleHello_inputName_receivedAck_forBye :="SimpleHello: Ack for Bye message has been received";
|
|
|
| //=========================================================================
|
| // Constants for External templates
|
| //=========================================================================
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_templName_CustomRequest
|
| //
|
| // Purpose:
|
| // Constant for the name of custom Request external template
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_templName_CustomRequest := "SIMPLEHELLO_CUSTOM_REQUEST";
|
|
|
| //=========================================================================
|
| // Constants for FSM Tables
|
| //=========================================================================
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_fsmIdx_basicSHCall
|
| //
|
| // Purpose:
|
| // constant for the FSM index of basic SimpleHello call
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_fsmIdx_basicSHCall := 0;
|
|
|
| ///////////////////////////////////////////////////////////
|
| // const: c_EPTF_SimpleHello_fsmName_basicSHCall
|
| //
|
| // Purpose:
|
| // constant for the FSM name of basic SimpleHello call
|
| //
|
| // Detailed Comments:
|
| // -
|
| //
|
| ///////////////////////////////////////////////////////////
|
| const charstring c_EPTF_SimpleHello_fsmName_basicSHCall := "SimpleHello: FSM for SimpleHello call";
|
|
|
| //=========================================================================
|
| // Constants for Logging classes
|
| //=========================================================================
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // Constant: c_EPTF_SimpleHello_loggingEventClasses
|
| //
|
| // Purpose:
|
| // list of logging event class names used on SimpleHello_CT component
|
| //
|
| // Detailed Comments:
|
| // <EPTF_Logging_EventClassPrefixList> { "Error", "Warning", "Debug" }
|
| ///////////////////////////////////////////////////////////////////////////////
|
| const EPTF_Logging_EventClassPrefixList c_EPTF_SimpleHello_loggingEventClasses := { "Error", "Warning", "Debug" };
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // Constant: c_EPTF_SimpleHello_loggingClassIdx_Error
|
| //
|
| // Purpose:
|
| // logging class index for Error
|
| //
|
| // Detailed Comments:
|
| // *0*
|
| ///////////////////////////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_loggingClassIdx_Error := 0;
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // Constant: c_EPTF_SimpleHello_loggingClassIdx_Warning
|
| //
|
| // Purpose:
|
| // logging class index for Warning
|
| //
|
| // Detailed Comments:
|
| // *1*
|
| ///////////////////////////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_loggingClassIdx_Warning := 1;
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // Constant: c_EPTF_SimpleHello_loggingClassIdx_Debug
|
| //
|
| // Purpose:
|
| // logging class index for Debug
|
| //
|
| // Detailed Comments:
|
| // *2*
|
| ///////////////////////////////////////////////////////////////////////////////
|
| const integer c_EPTF_SimpleHello_loggingClassIdx_Debug := 2;
|
|
|
|
|
| } // end of module
|