📄 liftcomponents.c
字号:
/* ----- CREATE Lift ----- */
/* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#VubXDIurfR5Lvn4beIa799JV|pos(1,17)") */
#ifdef XCASELABELS
case 4:
#endif
ALLOC_STARTUP_PAR(Lift,ySigN_z_LiftComponents_2_Lift,
ySignalPar_z_LiftComponents_2_Lift)
STARTUP_ALLOC_ERROR
yAssF_SDL_PId(((ySignalPar_z_LiftComponents_2_Lift *)STARTUP_DATA_PTR)->Param1,
yPrdVarP->z_LiftComponents_010_tmpCtrl_1, XASS_MR_ASS_NF);
SDL_CREATE(Lift,yPriN_z_LiftComponents_2_Lift,"Lift")
STARTUP_ALLOC_ERROR_END
XBETWEEN_SYMBOLS_PRD(5, 863)
/* ----- ASSIGNMENT newLift := ... ----- */
/* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#fdUPwV8w5sFLwQD6TV6B-8iE|pos(1,17)") */
#ifdef XCASELABELS
case 5:
#endif
yAssF_SDL_PId(yPrdVarP->z_LiftComponents_011_newLift, SDL_OFFSPRING,
XASS_MR_ASS_FR);
#ifdef XTRACE
xTraceAssign("newLift := ", &(yPrdVarP->z_LiftComponents_011_newLift),
(tSDLTypeInfo *)&ySDL_SDL_PId);
#endif
#ifdef XMSCE
xMSCEAssign(VarP, "newLift := ", &(yPrdVarP->z_LiftComponents_011_newLift),
(tSDLTypeInfo *)&ySDL_SDL_PId);
#endif
XBETWEEN_SYMBOLS_PRD(6, 880)
/* ----- RETURN ----- */
/* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#JcRSWLP4M2ELFR37lLwTsGvE|pos(1,17)") */
#ifdef XCASELABELS
case 6:
#endif
SDL_RETURN
}
XEND_PRD
}
/*****
* 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
XCONST struct xVarIdStruct yVarR_z_LiftComponents_010_tmpCtrl_1 = {xVariableEC
, (xIdNode)0, (xIdNode)0, (xIdNode)&yPrdR_z_LiftComponents_01_add,
"tmpCtrl_1" xIdNumber(0) XCOMMON_EXTRAS, &xSrtR_SDL_PId,
(tSDLTypeInfo *)&ySDL_SDL_PId,
xOffsetOf(yVDef_z_LiftComponents_01_add, z_LiftComponents_010_tmpCtrl_1),
(xptrint)0, 0 XVAR_EXTRAS};
#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
XCONST struct xVarIdStruct yVarR_z_LiftComponents_011_newLift = {xVariableEC ,
(xIdNode)0, (xIdNode)0, (xIdNode)&yPrdR_z_LiftComponents_01_add,
"newLift" xIdNumber(0) XCOMMON_EXTRAS, &xSrtR_SDL_PId,
(tSDLTypeInfo *)&ySDL_SDL_PId,
xOffsetOf(yVDef_z_LiftComponents_01_add, z_LiftComponents_011_newLift),
(xptrint)0, 0 XVAR_EXTRAS};
#endif
/*****
* DCL newRequest
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#gjEOoVaFXJALwPIgoEwghMsL|pos(1,13)")
******/
#ifndef XOPTDCL
XCONST struct xVarIdStruct yVarR_z_LiftComponents_06_newRequest = {xVariableEC
, (xIdNode)0, (xIdNode)0, (xIdNode)&yPrsR_z_LiftComponents_0_LiftManager,
"newRequest" xIdNumber(0) XCOMMON_EXTRAS, &ySrtR_z_Interfaces_U_ptr_Request,
(tSDLTypeInfo *)&ySDL_z_Interfaces_U_ptr_Request,
xOffsetOf(yVDef_z_LiftComponents_0_LiftManager, z_LiftComponents_06_newRequest),
(xptrint)0, 0 XVAR_EXTRAS};
#endif
/*****
* DCL controllers
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#PUqBgEA8GbFLokedkVsE*dkL|pos(1,13)")
******/
#ifndef XOPTDCL
XCONST struct xVarIdStruct yVarR_z_LiftComponents_07_controllers = {xVariableEC
, (xIdNode)0, (xIdNode)0, (xIdNode)&yPrsR_z_LiftComponents_0_LiftManager,
"controllers" xIdNumber(0) XCOMMON_EXTRAS,
&ySrtR_z_LiftComponents_02_AKReferenceControllerList,
(tSDLTypeInfo *)&ySDL_z_LiftComponents_02_AKReferenceControllerList,
xOffsetOf(yVDef_z_LiftComponents_0_LiftManager, z_LiftComponents_07_controllers),
(xptrint)0, 0 XVAR_EXTRAS};
#endif
/*****
* DCL ctrlIndex
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#Xybs0V6XT5ELv8UZvLypcVGV|pos(1,13)")
******/
#ifndef XOPTDCL
XCONST struct xVarIdStruct yVarR_z_LiftComponents_08_ctrlIndex = {xVariableEC ,
(xIdNode)0, (xIdNode)0, (xIdNode)&yPrsR_z_LiftComponents_0_LiftManager,
"ctrlIndex" xIdNumber(0) XCOMMON_EXTRAS, &xSrtR_SDL_Integer,
(tSDLTypeInfo *)&ySDL_SDL_Integer,
xOffsetOf(yVDef_z_LiftComponents_0_LiftManager, z_LiftComponents_08_ctrlIndex),
(xptrint)0, 0 XVAR_EXTRAS};
#endif
/*****
* DCL tmpCtrl
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#KGjxyVyCEgALz9kfyEciV-aI|pos(1,13)")
******/
#ifndef XOPTDCL
XCONST struct xVarIdStruct yVarR_z_LiftComponents_09_tmpCtrl = {xVariableEC ,
(xIdNode)0, (xIdNode)0, (xIdNode)&yPrsR_z_LiftComponents_0_LiftManager,
"tmpCtrl" xIdNumber(0) XCOMMON_EXTRAS, &xSrtR_SDL_PId,
(tSDLTypeInfo *)&ySDL_SDL_PId,
xOffsetOf(yVDef_z_LiftComponents_0_LiftManager, z_LiftComponents_09_tmpCtrl),
(xptrint)0, 0 XVAR_EXTRAS};
#endif
/*****
* DCL respondedCtrl
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#tujU6E4Hf8EL13HhhV-nrWsI|pos(1,13)")
******/
#ifndef XOPTDCL
XCONST struct xVarIdStruct yVarR_z_LiftComponents_0A_respondedCtrl =
{xVariableEC , (xIdNode)0, (xIdNode)0,
(xIdNode)&yPrsR_z_LiftComponents_0_LiftManager, "respondedCtrl" xIdNumber(0)
XCOMMON_EXTRAS, &xSrtR_SDL_Integer, (tSDLTypeInfo *)&ySDL_SDL_Integer,
xOffsetOf(yVDef_z_LiftComponents_0_LiftManager, z_LiftComponents_0A_respondedCtrl),
(xptrint)0, 0 XVAR_EXTRAS};
#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
XCONST struct xVarIdStruct yVarR_z_LiftComponents_0B_minimalEffort =
{xVariableEC , (xIdNode)0, (xIdNode)0,
(xIdNode)&yPrsR_z_LiftComponents_0_LiftManager, "minimalEffort" xIdNumber(0)
XCOMMON_EXTRAS, &xSrtR_SDL_PId, (tSDLTypeInfo *)&ySDL_SDL_PId,
xOffsetOf(yVDef_z_LiftComponents_0_LiftManager, z_LiftComponents_0B_minimalEffort),
(xptrint)0, 0 XVAR_EXTRAS};
#endif
/*****
* DCL leastEffort
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#P2TIBVxUId5LfFgknV1O4pML|pos(1,13)")
******/
#ifndef XOPTDCL
XCONST struct xVarIdStruct yVarR_z_LiftComponents_0C_leastEffort = {xVariableEC
, (xIdNode)0, (xIdNode)0, (xIdNode)&yPrsR_z_LiftComponents_0_LiftManager,
"leastEffort" xIdNumber(0) XCOMMON_EXTRAS, &ySrtR_z_Interfaces_V_ServiceTime,
(tSDLTypeInfo *)&ySDL_z_Interfaces_V_ServiceTime,
xOffsetOf(yVDef_z_LiftComponents_0_LiftManager, z_LiftComponents_0C_leastEffort),
(xptrint)0, 0 XVAR_EXTRAS};
#endif
/*****
* DCL tmpEffort
* <<PACKAGE LiftComponents/PROCESS TYPE LiftManager>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#q9pTNEfvw9ILaW9jfVnhnIaE|pos(1,13)")
******/
#ifndef XOPTDCL
XCONST struct xVarIdStruct yVarR_z_LiftComponents_0D_tmpEffort = {xVariableEC ,
(xIdNode)0, (xIdNode)0, (xIdNode)&yPrsR_z_LiftComponents_0_LiftManager,
"tmpEffort" xIdNumber(0) XCOMMON_EXTRAS, &ySrtR_z_Interfaces_V_ServiceTime,
(tSDLTypeInfo *)&ySDL_z_Interfaces_V_ServiceTime,
xOffsetOf(yVDef_z_LiftComponents_0_LiftManager, z_LiftComponents_0D_tmpEffort),
(xptrint)0, 0 XVAR_EXTRAS};
#endif
/*****
* Synt variable
******/
#ifdef XSYNTVAR
static XCONST struct xVarIdStruct yVarR_z_LiftComponents_0_LiftManager_SV1 =
{xSyntVariableEC xSymbTLink((xIdNode)0, (xIdNode)0),
(xIdNode)&yPrsR_z_LiftComponents_0_LiftManager xIdNames("") xIdNumber(0)
XCOMMON_EXTRAS, &ySrtR_z_Interfaces_U_ptr_Request,
(tSDLTypeInfo *)&ySDL_z_Interfaces_U_ptr_Request,
xOffsetOf(yVDef_z_LiftComponents_0_LiftManager,
xPrdCallRes1_z_Interfaces_U_ptr_Request), (xptrint)0, 0 XVAR_EXTRAS};
#endif
/*****
* PROCESS TYPE LiftController
* <<PACKAGE LiftComponents>>
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#wNLWBEjFLEVLvDrjVLhovX1V|pos(1,18)")
******/
static XPRSNODE yPrsA_z_LiftComponents_1_LiftController = (XPRSNODE)0;
static XPRSNODE yPrsB_z_LiftComponents_1_LiftController = (XPRSNODE)0;
XCONST struct xPrsIdStruct yPriR_z_LiftComponents_1_LiftController =
{xProcessEC , (xIdNode)0, (xIdNode)0, (xIdNode)&ySysR_system,
"LiftController" xIdNumber(0) XCOMMON_EXTRAS,
yPrsT_z_LiftComponents_1_LiftController,
yPrsS_z_LiftComponents_1_LiftController xService(0) xOptChan(0), -1
xNrInst(1) xNrInst(0), &yPrsB_z_LiftComponents_1_LiftController,
(xptrint)sizeof(yVDef_z_LiftComponents_1_LiftController)
xPrsPrioPar(xDefaultPrioProcess), &yPrsA_z_LiftComponents_1_LiftController
xTrace(-1) xGRTrace(-1) xBreakB(yRef_z_LiftComponents_1_LiftController)
xBreakB(ySym_z_LiftComponents_1_LiftController) xBreakB(5) xMSCETrace(-1)
xCoverage(yPrsC_z_LiftComponents_1_LiftController) xCoverage(0) xCoverage(0),
0, 0, &yPrsR_z_LiftComponents_1_LiftController, (xPrdIdNode *)0,
(xBlockIdNode)0
xBreakB("#SDTREF(U2,\"u2:F:\\UML\\LiftManagement20\\SystemDesign\\LiftManagement.u2#wNLWBEjFLEVLvDrjVLhovX1V|pos(1,18)\")")
xThreadName(0) xThreadName(0) XPRS_EXTRAS(z_LiftComponents_1_LiftController)};
#ifdef XCOVERAGE
long int yPrsC_z_LiftComponents_1_LiftController[ySym_z_LiftComponents_1_LiftController+1];
#endif
XCONST XSIGTYPE yPrsS_z_LiftComponents_1_LiftController[] =
{SIGNAL_NAME(gotoFloor, &ySigR_z_Interfaces_2_gotoFloor), SIGNAL_NAME(notify,
&ySigR_z_Interfaces_6_notify), SIGNAL_NAME(associate,
&ySigR_z_Interfaces_7_associate), SIGNAL_NAME(requestServiceTime,
&ySigR_z_Interfaces_A_requestServiceTime), SIGNAL_NAME(handleRequest,
&ySigR_z_Interfaces_B_handleRequest), (XSIGTYPE)0};
XCONST xStateIdNode yPrsT_z_LiftComponents_1_LiftController[] =
{&xStartStateIdRec, &yStaR_z_LiftComponents_12_Idle,
&yStaR_z_LiftComponents_14_HandlingRequest,
&yStaR_z_LiftComponents_15_WaitNotification};
XCONST struct xPrsIdStruct yPrsR_z_LiftComponents_1_LiftController =
{xProcessTypeEC , (xIdNode)0, (xIdNode)0,
(xIdNode)&yPacR_z_LiftComponents__LiftComponents,
"LiftController" xIdNumber(0) XCOMMON_EXTRAS,
yPrsT_z_LiftComponents_1_LiftController,
yPrsS_z_LiftComponents_1_LiftController xService(0) xOptChan(0), 0 xNrInst(1)
xNrInst(0), (XPRSNODE *)0,
(xptrint)sizeof(yVDef_z_LiftComponents_1_LiftController)
xPrsPrioPar(xDefaultPrioProcess), (XPRSNODE *)0 xTrace(-1) xGRTrace(-1)
xBreakB(yRef_z_LiftComponents_1_LiftController)
xBreakB(ySym_z_LiftComponents_1_LiftController) xBreakB(5) xMSCETrace(-1)
xCoverage(yPrsC_z_LiftComponents_1_LiftController) xCoverage(0) xCoverage(0),
yPAD_z_LiftComponents_1_LiftController,
yFree_z_LiftComponents_1_LiftController, (xPrsIdNode)0, (xPrdIdNode *)0,
(xBlockIdNode)0
xBreakB("#SDTREF(U2,\"u2:F:\\UML\\LiftManagement20\\SystemDesign\\LiftManagement.u2#wNLWBEjFLEVLvDrjVLhovX1V|pos(1,18)\")")
xThreadName(0) xThreadName(0) XPRS_EXTRAS(z_LiftComponents_1_LiftController)};
static xSignalNode ySigA_z_LiftComponents_1_LiftController = (xSignalNode)0;
XCONST struct xSignalIdStruct ySigR_z_LiftComponents_1_LiftController =
{xStartUpSignalEC , (xIdNode)0, (xIdNode)0,
(xIdNode)&yPacR_z_LiftComponents__LiftComponents xIdNames("-") xIdNumber(0)
XCOMMON_EXTRAS,
(xptrint)sizeof(ySignalPar_z_LiftComponents_1_LiftController),
&ySigA_z_LiftComponents_1_LiftController, 0 xFreS(0) SIGCODE(STARTUPSIGNAL)
xBreakB("#SDTREF(U2,\"u2:F:\\UML\\LiftManagement20\\SystemDesign\\LiftManagement.u2#wNLWBEjFLEVLvDrjVLhovX1V|pos(1,18)\")")
xSigPrioPar(xDefaultPrioSignal) XSIG_EXTRAS};
XPROCESSDEF_C(LiftController,"LiftController",z_LiftComponents_1_LiftController,
yPAD_z_LiftComponents_1_LiftController,
yVDef_z_LiftComponents_1_LiftController)
void yFree_z_LiftComponents_1_LiftController(void *yVarP)
{
yFree_z_Interfaces_Q_AKReferenceRequestList((void **)&((yVDef_z_LiftComponents_1_LiftController *)yVarP)->z_LiftComponents_16_requests);
}
/*+++++
* GR ref function for process LiftController
* #SDTREF(U2,"u2:F:\UML\LiftManagement20\SystemDesign\LiftManagement.u2#wNLWBEjFLEVLvDrjVLhovX1V|pos(1,32)")
++++++*/
#ifdef XBREAKBEFORE
char * yRef_z_LiftComponents_1_LiftController (int SymbolNo, xSymbolType *SymbolType)
{
switch (SymbolNo) {
case 0: *SymbolType = xsStart;
return "#SDTREF(U2,\"u2:F:\\UML\\LiftManagement20\\SystemDesign\\LiftManagement.u2#zRkOcIOVrpVLGW8hSVMfsRFE|pos(1,9)\")";
case 1: *SymbolType = xsInput;
return "#SDTREF(U2,\"u2:F:\\UML\\LiftManagement20\\SystemDesign\\LiftManagement.u2#ILuiqIfwLfSL*PHfVLtTsEyV|pos(1,13)\")";
case 2: *SymbolType = xsInput;
return "#SDTREF(U2,\"u2:F:\\UML\\LiftManagement20\\SystemDesign\\LiftManagement.u2#sdfWpVzWggvLDBQ7fIEyma4I|pos(1,13)\")";
case 3: *SymbolType = xsContinuousSignal;
return "#SDTREF(U2,\"u2:F:\\UML\\LiftManagement20\\SystemDesign\\LiftManagement.u2#coNmLE-sr0BL86wZ2VTJZRKL|pos(4,13)\")";
case 4: *SymbolType = xsInput;
return "#SDTREF(U2,\"u2:F:\\UML\\LiftManagement20\\SystemDesign\\LiftManagement.u2#nnolREoO*ClLFgHYUVv-jFPI|pos(1,13)\")";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -