⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 liftcomponents.h

📁 UML语言构建的电梯管理系统
💻 H
📖 第 1 页 / 共 2 页
字号:

/* Program generated by Cbasic 2.2.20  */
#define XSCT_CBASIC

#ifndef XX_LiftComponents_H
#define XX_LiftComponents_H

/*************************************************************************
**                SECTION Types and Forward references                  **
*************************************************************************/

/*****
* PACKAGE LiftComponents
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#QhMwHE2LcZEL2vKbPI9OUZrE|pos(1,9)")
******/
extern XCONST struct xPackageIdStruct yPacR_z_LiftComponents__LiftComponents;

extern void yInit_LiftComponents (void);

/*****
* NEWTYPE @AK@Reference@ControllerList  (TYPE section)
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#*U4LVLnbk4CLhoifJL3CvCZV|pos(1,17)")
******/
extern tSDLGenListInfo ySDL_z_LiftComponents_02_AKReferenceControllerList;

typedef struct z_LiftComponents_02_AKReferenceControllerList_ystruct *z_LiftComponents_02_AKReferenceControllerList_yptr;
typedef struct z_LiftComponents_02_AKReferenceControllerList_ystruct {
  z_LiftComponents_02_AKReferenceControllerList_yptr Suc;
  SDL_PId Data;
} z_LiftComponents_02_AKReferenceControllerList_yrec;
typedef struct {
  z_LiftComponents_02_AKReferenceControllerList_yptr First;
  z_LiftComponents_02_AKReferenceControllerList_yptr Last;
  int Length;
  int IsAssigned;
} z_LiftComponents_02_AKReferenceControllerList;

/*****
* NEWTYPE @AK@Reference@ControllerList  (HEADING section)
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#*U4LVLnbk4CLhoifJL3CvCZV|pos(1,17)")
******/
#ifndef XOPTSORT
extern XCONST struct xSortIdStruct ySrtR_z_LiftComponents_02_AKReferenceControllerList;
#define ySrtN_z_LiftComponents_02_AKReferenceControllerList  (&ySrtR_z_LiftComponents_02_AKReferenceControllerList)
#endif

#define yEmptystring_z_LiftComponents_02_AKReferenceControllerList(Result) GenString_Emptystring(&ySDL_z_LiftComponents_02_AKReferenceControllerList,Result)
#define yMkString_z_LiftComponents_02_AKReferenceControllerList(P1,Result) (z_LiftComponents_02_AKReferenceControllerList *)GenString_MkString((void *)P1,&ySDL_z_LiftComponents_02_AKReferenceControllerList,(xString_Type *)Result)
#define yLength_z_LiftComponents_02_AKReferenceControllerList(P1) GenString_Length((xString_Type *)P1,&ySDL_z_LiftComponents_02_AKReferenceControllerList)
#define yFirst_z_LiftComponents_02_AKReferenceControllerList(P1,Result) (SDL_PId*)GenString_First((xString_Type *)P1,&ySDL_z_LiftComponents_02_AKReferenceControllerList,Result)
#define yLast_z_LiftComponents_02_AKReferenceControllerList(P1,Result) (SDL_PId*)GenString_Last((xString_Type *)P1,&ySDL_z_LiftComponents_02_AKReferenceControllerList,Result)
#define yConcat_z_LiftComponents_02_AKReferenceControllerList(P1,P2,Result) GenString_Concat((xString_Type *)P1,(xString_Type *)P2,&ySDL_z_LiftComponents_02_AKReferenceControllerList,(xString_Type *)Result)
#define ySubString_z_LiftComponents_02_AKReferenceControllerList(P1,P2,P3,Result) GenString_SubString((xString_Type *)P1,P2,P3,&ySDL_z_LiftComponents_02_AKReferenceControllerList,(xString_Type *)Result)
#define yAppend_z_LiftComponents_02_AKReferenceControllerList(P1,P2) GenString_Append((xString_Type *)P1,(void *)P2,&ySDL_z_LiftComponents_02_AKReferenceControllerList)
#define yInsert_z_LiftComponents_02_AKReferenceControllerList(P1,P2,P3) GenString_Insert((xString_Type *)P1,(void *)P2,P3,&ySDL_z_LiftComponents_02_AKReferenceControllerList)
#define yRemove_z_LiftComponents_02_AKReferenceControllerList(P1,P2) GenString_Remove((xString_Type *)P1,P2,&ySDL_z_LiftComponents_02_AKReferenceControllerList)
#define yErase_z_LiftComponents_02_AKReferenceControllerList(P1) GenString_Erase((xString_Type *)P1,&ySDL_z_LiftComponents_02_AKReferenceControllerList)
#define z_LiftComponents_020_s_empty_string yEmptystring_z_LiftComponents_02_AKReferenceControllerList

#define yAss_z_LiftComponents_02_AKReferenceControllerList(Addr,Expr,AssName) (void)GenericAssignSort(Addr,Expr,AssName,(tSDLTypeInfo *)&ySDL_z_LiftComponents_02_AKReferenceControllerList)
#define yAssF_z_LiftComponents_02_AKReferenceControllerList(V,E,A)  yAss_z_LiftComponents_02_AKReferenceControllerList(&(V),E,A)
#define yEq_z_LiftComponents_02_AKReferenceControllerList(Expr1,Expr2) GenericEqualSort((void *)Expr1,(void *)Expr2,(tSDLTypeInfo *)&ySDL_z_LiftComponents_02_AKReferenceControllerList)
#define yEqF_z_LiftComponents_02_AKReferenceControllerList(Expr1,Expr2)  yEq_z_LiftComponents_02_AKReferenceControllerList(Expr1,Expr2)
#define yNEqF_z_LiftComponents_02_AKReferenceControllerList(Expr1,Expr2)  ( ! yEq_z_LiftComponents_02_AKReferenceControllerList(Expr1,Expr2) )
#define yFree_z_LiftComponents_02_AKReferenceControllerList(P) GenericFreeSort((void **)P, (tSDLTypeInfo *)&ySDL_z_LiftComponents_02_AKReferenceControllerList)
#define yExtr_z_LiftComponents_02_AKReferenceControllerList(V1,V2) ((SDL_PId *)GenString_Extract((xString_Type *)V1,V2,&ySDL_z_LiftComponents_02_AKReferenceControllerList))
#define yAddr_z_LiftComponents_02_AKReferenceControllerList(V1,V2) ((SDL_PId *)GenString_Extract((xString_Type *)V1,V2,&ySDL_z_LiftComponents_02_AKReferenceControllerList))
#ifndef ANY_z_LiftComponents_02_AKReferenceControllerList
#define ANY_z_LiftComponents_02_AKReferenceControllerList(R) (z_LiftComponents_02_AKReferenceControllerList *)GenericAnySort(R, (tSDLTypeInfo *)&ySDL_z_LiftComponents_02_AKReferenceControllerList)
#endif
#define z_LiftComponents_02H_copy(P)  P

/*****
* PROCESS TYPE LiftManager
* <<PACKAGE LiftComponents>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#izLc2IWf8ZDLv*-k-VcmIr*V|pos(1,18)")
******/
extern XCONST XSIGTYPE yPrsS_z_LiftComponents_0_LiftManager[];
extern XCONST xStateIdNode yPrsT_z_LiftComponents_0_LiftManager[];
extern XCONST struct xPrsIdStruct yPrsR_z_LiftComponents_0_LiftManager;
#define yPrsN_z_LiftComponents_0_LiftManager  (&yPrsR_z_LiftComponents_0_LiftManager)
#ifdef XCOVERAGE
extern long int yPrsC_z_LiftComponents_0_LiftManager[];
#endif
YPAD_PROTOTYPE(yPAD_z_LiftComponents_0_LiftManager)
extern XCONST struct xSignalIdStruct ySigR_z_LiftComponents_0_LiftManager;
#define ySigN_z_LiftComponents_0_LiftManager  (&ySigR_z_LiftComponents_0_LiftManager)
typedef struct {
    SIGNAL_VARS
    STARTUP_VARS
} ySignalPar_z_LiftComponents_0_LiftManager;
typedef ySignalPar_z_LiftComponents_0_LiftManager  *yPDP_z_LiftComponents_0_LiftManager;
XPROCESSDEF_H(LiftManager,"LiftManager",z_LiftComponents_0_LiftManager, \
  yPAD_z_LiftComponents_0_LiftManager,yVDef_z_LiftComponents_0_LiftManager)
#define yChaE_z_LiftComponents_0E_P1  0
#define yChaE_z_LiftComponents_0F_P2  1
#define yChaE_z_LiftComponents_0G_P3  2
#ifdef XBREAKBEFORE
#define ySym_z_LiftComponents_0_LiftManager  28
extern char * yRef_z_LiftComponents_0_LiftManager (int, xSymbolType *);
#endif
typedef struct {
  PROCESS_VARS
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#gjEOoVaFXJALwPIgoEwghMsL|pos(1,13)") */
  z_Interfaces_U_ptr_Request z_LiftComponents_06_newRequest;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#PUqBgEA8GbFLokedkVsE*dkL|pos(1,13)") */
  z_LiftComponents_02_AKReferenceControllerList z_LiftComponents_07_controllers;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#Xybs0V6XT5ELv8UZvLypcVGV|pos(1,13)") */
  SDL_Integer z_LiftComponents_08_ctrlIndex;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#KGjxyVyCEgALz9kfyEciV-aI|pos(1,13)") */
  SDL_PId z_LiftComponents_09_tmpCtrl;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#tujU6E4Hf8EL13HhhV-nrWsI|pos(1,13)") */
  SDL_Integer z_LiftComponents_0A_respondedCtrl;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#vys-8LV-RbLL6g-Z1IYKD3aV|pos(1,13)") */
  SDL_PId z_LiftComponents_0B_minimalEffort;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#P2TIBVxUId5LfFgknV1O4pML|pos(1,13)") */
  z_Interfaces_V_ServiceTime z_LiftComponents_0C_leastEffort;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#q9pTNEfvw9ILaW9jfVnhnIaE|pos(1,13)") */
  z_Interfaces_V_ServiceTime z_LiftComponents_0D_tmpEffort;
  z_Interfaces_U_ptr_Request  xPrdCallRes1_z_Interfaces_U_ptr_Request;
} yVDef_z_LiftComponents_0_LiftManager;
typedef yVDef_z_LiftComponents_0_LiftManager  *yVDP_z_LiftComponents_0_LiftManager;
extern void yFree_z_LiftComponents_0_LiftManager (void *);

/*****
* PROCEDURE add
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#JcRSWLP4M2ELFR37lLwTsGvE|pos(1,19)")
******/
YPRD_PROTOTYPE(z_LiftComponents_01_add)
extern XCONST struct xPrdIdStruct yPrdR_z_LiftComponents_01_add;
#define yPrdN_z_LiftComponents_01_add  (&yPrdR_z_LiftComponents_01_add)
#ifdef XBREAKBEFORE
#define ySym_z_LiftComponents_01_add  6
extern char * yRef_z_LiftComponents_01_add (int, xSymbolType *);
#endif
typedef struct {
  PROCEDURE_VARS
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#D6Q0NVz04zBLN85hRVkjqNnI|pos(1,17)") */
  SDL_PId z_LiftComponents_010_tmpCtrl_1;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#qTME3Ekb0feLd4AZXLfOeYOI|pos(1,17)") */
  SDL_PId z_LiftComponents_011_newLift;
} yVDef_z_LiftComponents_01_add;
typedef yVDef_z_LiftComponents_01_add  *yVDP_z_LiftComponents_01_add;
extern void yFree_z_LiftComponents_01_add (void *);

/*****
* DCL tmpCtrl_1
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager/PROCEDURE add>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#D6Q0NVz04zBLN85hRVkjqNnI|pos(1,17)")
******/
#ifndef XOPTDCL
extern XCONST struct xVarIdStruct yVarR_z_LiftComponents_010_tmpCtrl_1;
#endif

/*****
* DCL newLift
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager/PROCEDURE add>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#qTME3Ekb0feLd4AZXLfOeYOI|pos(1,17)")
******/
#ifndef XOPTDCL
extern XCONST struct xVarIdStruct yVarR_z_LiftComponents_011_newLift;
#endif

/*****
* STATE Idle
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#DhDx-Eewnp5Lrjoc3Ercy1yI|pos(2,15)")
******/
#define z_LiftComponents_03_Idle  1
extern XCONST struct xStateIdStruct yStaR_z_LiftComponents_03_Idle;
#define yStaN_z_LiftComponents_03_Idle  (&yStaR_z_LiftComponents_03_Idle)

/*****
* STATE *
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#DhDx-Eewnp5Lrjoc3Ercy1yI|pos(3,15)")
******/
extern XCONST struct xStateIdStruct yStaR_z_LiftComponents_04_Asterisk;
#define yStaN_z_LiftComponents_04_Asterisk  (&yStaR_z_LiftComponents_04_Asterisk)

/*****
* STATE WaitEstimation
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#wSJ-0VD3ubFLqqwgPI0hSe8V|pos(3,15)")
******/
#define z_LiftComponents_05_WaitEstimation  2
extern XCONST struct xStateIdStruct yStaR_z_LiftComponents_05_WaitEstimation;
#define yStaN_z_LiftComponents_05_WaitEstimation  (&yStaR_z_LiftComponents_05_WaitEstimation)

/*****
* DCL newRequest
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#gjEOoVaFXJALwPIgoEwghMsL|pos(1,13)")
******/
#ifndef XOPTDCL
extern XCONST struct xVarIdStruct yVarR_z_LiftComponents_06_newRequest;
#endif

/*****
* DCL controllers
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#PUqBgEA8GbFLokedkVsE*dkL|pos(1,13)")
******/
#ifndef XOPTDCL
extern XCONST struct xVarIdStruct yVarR_z_LiftComponents_07_controllers;
#endif

/*****
* DCL ctrlIndex
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#Xybs0V6XT5ELv8UZvLypcVGV|pos(1,13)")
******/
#ifndef XOPTDCL
extern XCONST struct xVarIdStruct yVarR_z_LiftComponents_08_ctrlIndex;
#endif

/*****
* DCL tmpCtrl
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#KGjxyVyCEgALz9kfyEciV-aI|pos(1,13)")
******/
#ifndef XOPTDCL
extern XCONST struct xVarIdStruct yVarR_z_LiftComponents_09_tmpCtrl;
#endif

/*****
* DCL respondedCtrl
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#tujU6E4Hf8EL13HhhV-nrWsI|pos(1,13)")
******/
#ifndef XOPTDCL
extern XCONST struct xVarIdStruct yVarR_z_LiftComponents_0A_respondedCtrl;
#endif

/*****
* DCL minimalEffort
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#vys-8LV-RbLL6g-Z1IYKD3aV|pos(1,13)")
******/
#ifndef XOPTDCL
extern XCONST struct xVarIdStruct yVarR_z_LiftComponents_0B_minimalEffort;
#endif

/*****
* DCL leastEffort
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#P2TIBVxUId5LfFgknV1O4pML|pos(1,13)")
******/
#ifndef XOPTDCL
extern XCONST struct xVarIdStruct yVarR_z_LiftComponents_0C_leastEffort;
#endif

/*****
* DCL tmpEffort
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#q9pTNEfvw9ILaW9jfVnhnIaE|pos(1,13)")
******/
#ifndef XOPTDCL
extern XCONST struct xVarIdStruct yVarR_z_LiftComponents_0D_tmpEffort;
#endif

/*****
* PROCESS TYPE LiftController
* <<PACKAGE LiftComponents>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#wNLWBEjFLEVLvDrjVLhovX1V|pos(1,18)")
******/
extern XCONST struct xPrsIdStruct yPriR_z_LiftComponents_1_LiftController;
#define yPriN_z_LiftComponents_1_LiftController  (&yPriR_z_LiftComponents_1_LiftController)
extern XCONST XSIGTYPE yPrsS_z_LiftComponents_1_LiftController[];
extern XCONST xStateIdNode yPrsT_z_LiftComponents_1_LiftController[];
extern XCONST struct xPrsIdStruct yPrsR_z_LiftComponents_1_LiftController;
#define yPrsN_z_LiftComponents_1_LiftController  (&yPrsR_z_LiftComponents_1_LiftController)
#ifdef XCOVERAGE
extern long int yPrsC_z_LiftComponents_1_LiftController[];
#endif
YPAD_PROTOTYPE(yPAD_z_LiftComponents_1_LiftController)
extern XCONST struct xSignalIdStruct ySigR_z_LiftComponents_1_LiftController;
#define ySigN_z_LiftComponents_1_LiftController  (&ySigR_z_LiftComponents_1_LiftController)
typedef struct {
    SIGNAL_VARS
    STARTUP_VARS
} ySignalPar_z_LiftComponents_1_LiftController;
typedef ySignalPar_z_LiftComponents_1_LiftController  *yPDP_z_LiftComponents_1_LiftController;
XPROCESSDEF_H(LiftController,"LiftController",z_LiftComponents_1_LiftController, \
  yPAD_z_LiftComponents_1_LiftController, \
  yVDef_z_LiftComponents_1_LiftController)
#define yChaE_z_LiftComponents_1E_P1  0
#define yChaE_z_LiftComponents_1F_P2  1
#define yChaE_z_LiftComponents_1G_P3  2
#ifdef XBREAKBEFORE
#define ySym_z_LiftComponents_1_LiftController  33
extern char * yRef_z_LiftComponents_1_LiftController (int, xSymbolType *);
#endif
typedef struct {
  PROCESS_VARS
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#I39yWVkAXVCLJ6LY7Vbj5ctV|pos(1,13)") */
  z_Interfaces_Q_AKReferenceRequestList z_LiftComponents_16_requests;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#Bmxm-LVf0NvL1ClZtE7Mp7PV|pos(1,13)") */
  z_Interfaces_U_ptr_Request z_LiftComponents_17_req;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#Qbpc8LoWqXBLIuZWULnmszvV|pos(1,13)") */
  z_Interfaces_T_ptr_LiftInfo z_LiftComponents_18_currentInfo;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#CAS41IeOMYLLY3qdxEL9D5VL|pos(1,13)") */
  SDL_PId z_LiftComponents_19_theLift;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#PN2PAEaWk8ILRr49YE77cfVI|pos(1,13)") */
  z_Interfaces_V_ServiceTime z_LiftComponents_1A_service_time;
                /* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#rXLC-L734i0LvUvg4EjHm65E|pos(1,13)") */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -