// 옥내소화전설비의 화재안전기준(nfsc 102) 6조 (배관 등) 6항 Check(NFSC102_6_6){ IF (CS1 THEN KS1) OR (CS2 THEN KS2) OR (CS3 THEN KS3) OR (CS4 THEN KS4) } Port myPort{ Port.typeForWater = "IndoorFireHydrantDischarge" } Pipe myPipe{ isObjectProperty(Pipe.isBranchLines) = TRUE isConnectedTo(Pipe, myPort) = TRUE } Pipe myPipe2{ isObjectProperty(Pipe.isRiser) = TRUE } CS1{ getObjectProperty(myPipe.systemType) = "HoseReelHydrantSystem" } KS1{ getObjectProperty(myPipe.diameter) >= 25mm } CS2{ getObjectProperty(myPipe.systemType) != "HoseReelHydrantSystem" } KS2{ getObjectProperty(myPipe.diameter) >= 40mm } CS3{ getObjectProperty(myPipe2.systemType) = "HoseReelHydrantSystem" } KS3{ getObjectProperty(myPipe2.diameter) >= 32mm } CS4{ getObjectProperty(myPipe2.systemType) != "HoseReelHydrantSystem" } KS4{ getObjectProperty(myPipe2.diameter) >= 50mm }
Python Code 변환 예정
// 옥내소화전설비의 화재안전기준(nfsc 102) 7조 (함 및 방수구 등) 2항 3호 Check(NFSC503A_7_2_3){ IF (CS1 THEN KS1) OR (CS2 THEN KS2) } CS1{ ! HoseReelIndoorFireHydrantSystem } KS2{ isObjectPropertyt(Hose.diameter) >= 40mm } CS1{ HoseReelIndoorFireHydrantSystem } KS2{ isObjectPropertyt(Hose.diameter) >= 25mm }
//연결송수관설비의 화재안전기준(NFSC 502) 6조 (방수구) 4호 Check(NFSC502_6_0_4){ KS } KS{ getObjectVerticalDistance(FloorSlab, FireDepartmentConnectionSystem.Port.HosePort) > 0.5m OR getObjectVerticalDistance(FloorSlab, FireDepartmentConnectionSystem.Port.HosePort) <= 1m