|
@@ -51,43 +51,228 @@ class RwdRelationAdd {
|
|
|
val relCode = message.exts!!["relCode"]
|
|
|
val objFrom = message.exts!!["objFrom"]
|
|
|
val objTo = message.exts!!["relCode"]
|
|
|
- if (graphCode=="ArchSubset") {
|
|
|
- /** 建筑从属关系 */
|
|
|
- }else if (graphCode=="ThroughRelationship") {
|
|
|
- /** 贯通关系 */
|
|
|
- }else if (graphCode=="MechInArch") {
|
|
|
- /** 机电类所在区域关系 */
|
|
|
- }else if (graphCode=="MechForArch") {
|
|
|
- /** 机电类服务区域关系 */
|
|
|
- }
|
|
|
+ when (graphCode) {
|
|
|
+ "ArchSubset" -> {
|
|
|
+ /** 建筑从属关系 */
|
|
|
+ when (relCode) {
|
|
|
+ "Bd2Fl" -> {
|
|
|
+ /** 建筑体下的楼层 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Bd2Sh" -> {
|
|
|
+ /** 建筑体下的竖井 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Bd2Sp" -> {
|
|
|
+ /** 建筑体下的业务空间 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Fl2Sp" -> {
|
|
|
+ /** 楼层下的业务空间 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Sh2Sp" -> {
|
|
|
+ /** 竖井下的业务空间 */
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ "ThroughRelationship" -> {
|
|
|
+ /** 贯通关系 */
|
|
|
+ if (relCode == "Fl2Fl"){
|
|
|
+ /** 楼层贯通关系 */
|
|
|
+ }else if (relCode == "Sh2Sh") {
|
|
|
+ /** 竖井贯通关系 */
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ "MechInArch" -> {
|
|
|
+ /** 机电类所在区域关系 */
|
|
|
+ when (relCode) {
|
|
|
+ "Sy2Bd" -> {
|
|
|
+ /** 系统所在建筑 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Sy2Fl" -> {
|
|
|
+ /** 系统所在楼层 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Sy2Sh" -> {
|
|
|
+ /** 系统所在竖井 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Sy2Sp" -> {
|
|
|
+ /** 系统所在空间 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Eq2Bd" -> {
|
|
|
+ /** 设备设施所在建筑 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Eq2Fl" -> {
|
|
|
+ /** 设备设施所在楼层 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Eq2Sh" -> {
|
|
|
+ /** 设备设施所在竖井 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Eq2Sp" -> {
|
|
|
+ /** 设备设施所在空间 */
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ "MechForArch" -> {
|
|
|
+ /** 机电类服务区域关系 */
|
|
|
+ when (relCode) {
|
|
|
+ "Sy2Bd" -> {
|
|
|
+ /** 系统服务于建筑 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Sy2Fl" -> {
|
|
|
+ /** 系统服务于楼层 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Sy2Sh" -> {
|
|
|
+ /** 系统服务于竖井 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Sy2Sp" -> {
|
|
|
+ /** 系统服务于空间 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Eq2Bd" -> {
|
|
|
+ /** 设备设施服务于建筑 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Eq2Fl" -> {
|
|
|
+ /** 设备设施服务于楼层 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Eq2Sh" -> {
|
|
|
+ /** 设备设施服务于竖井 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "Eq2Sp" -> {
|
|
|
+ /** 设备设施服务于空间 */
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ "SpaceNeighborhood" -> {
|
|
|
+ /** 业务空间(同类)邻接关系 */
|
|
|
+ if (relCode == "None"){
|
|
|
+ /** 空间隔断无门窗 */
|
|
|
+ }else if (relCode == "Door") {
|
|
|
+ /** 空间隔断有门 */
|
|
|
+ }else if (relCode == "Window") {
|
|
|
+ /** 空间隔断有窗 */
|
|
|
+ }
|
|
|
+ }
|
|
|
+ "TrafficNetwork" -> {
|
|
|
+ /** 建筑交通网络(同类) */
|
|
|
+
|
|
|
+ }
|
|
|
+ "ConvectionNetwork" -> {
|
|
|
+ /** 空气流通网络(同类) */
|
|
|
+
|
|
|
+ }
|
|
|
+ "RadiationNetwork" -> {
|
|
|
+ /** 光照辐射网络(同类) */
|
|
|
+
|
|
|
+ }
|
|
|
+ "LUDistribution" -> {
|
|
|
+ /** 低压配电网络 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "HUDistribution" -> {
|
|
|
+ /** 高压变配电网络 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "ChillWaterLoop" -> {
|
|
|
+ /** 空调冷冻水管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "HeatWaterLoop" -> {
|
|
|
+ /** 采暖水管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "CondWaterNetwork" -> {
|
|
|
+ /** 空调冷凝水管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "ACAirNetwork" -> {
|
|
|
+ /** 空调风管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "FreshAirNetwork" -> {
|
|
|
+ /** 新风管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "VentNetwork" -> {
|
|
|
+ /** 通风管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "VRFNetwork" -> {
|
|
|
+ /** 多联机管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "DomesticWaterNetwork" -> {
|
|
|
+ /** 生活给水管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "DrainingWaterNetwork" -> {
|
|
|
+ /** 污水排水管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "RecycleWaterNetwork" -> {
|
|
|
+ /** 中水管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "DrinkingWaterNetwork" -> {
|
|
|
+ /** 直饮水管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "DHWNetwork" -> {
|
|
|
+ /** 生活热水管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "GasNetwork" -> {
|
|
|
+ /** 燃气管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "FireWaterNetwork" -> {
|
|
|
+ /** 消防给水管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "FireVentNetwork" -> {
|
|
|
+ /** 消防排烟管网 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "WENetwork" -> {
|
|
|
+ /** 弱电通信网络 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "MechCtrl" -> {
|
|
|
+ /** 设备控制关系 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "MechPower" -> {
|
|
|
+ /** 设备供电关系 */
|
|
|
+
|
|
|
+ }
|
|
|
+ "SensorRelationship" -> {
|
|
|
+ /** 传感器关系 */
|
|
|
|
|
|
+ }
|
|
|
+ "ValveRelationship" -> {
|
|
|
+ /** 阀门关系 */
|
|
|
|
|
|
- if (graphCode=="ArchSubset"&&relCode=="Bd2Fl"){
|
|
|
- /** 建筑下的楼层 */
|
|
|
- } else if (graphCode=="ArchSubset"&&relCode=="Bd2Sh") {
|
|
|
- /** 建筑下的竖井 */
|
|
|
- } else if (graphCode=="ArchSubset"&&relCode=="Bd2Sp") {
|
|
|
- /** 建筑下的业务空间 */
|
|
|
- } else if (graphCode=="ArchSubset"&&relCode=="Fl2Sp") {
|
|
|
- /** 楼层下的业务空间 */
|
|
|
- }else if (graphCode=="ArchSubset"&&relCode=="Sh2Sp") {
|
|
|
- /** 竖井下的业务空间 */
|
|
|
- }else if (graphCode=="ArchSubset"&&relCode=="Sh2Sp") {
|
|
|
- /** 竖井下的业务空间 */
|
|
|
- }else if (graphCode=="MechInArch"&&relCode=="Sy2Bd") {
|
|
|
- /** 系统所在建筑 */
|
|
|
- }else if (graphCode=="MechInArch"&&relCode=="Sy2Fl") {
|
|
|
- /** 系统所在楼层 */
|
|
|
- }else if (graphCode=="MechInArch"&&relCode=="Sy2Sh") {
|
|
|
- /** 系统所在竖井 */
|
|
|
- }else if (graphCode=="MechInArch"&&relCode=="Sy2Sp") {
|
|
|
- /** 系统所在空间 */
|
|
|
- }else if (graphCode=="MechInArch"&&relCode=="Eq2Bd") {
|
|
|
- /** 设备设施所在建筑 */
|
|
|
- }else if (graphCode=="MechInArch"&&relCode=="Eq2Fl") {
|
|
|
- /** 设备设施所在楼层 */
|
|
|
- }else if (graphCode=="MechInArch"&&relCode=="Eq2Fl") {
|
|
|
- /** 设备设施所在楼层 */
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|