/*
 * *********************************************************************************************************************
 *
 *          !!
 *        .F88X
 *        X8888Y
 *      .}888888N;
 *        i888888N;        .:!              .I$WI:
 *          R888888I      .'N88~            i8}+8Y&8"l8i$8>8W~'>W8}8]KW+8IIN"8&
 *          .R888888I    .;N8888~          .X8'  "8I.!,/8"  !%NY8`"8I8~~8>,88I
 *            +888888N;  .8888888Y                                  "&&8Y.}8,
 *            ./888888N;  .R888888Y        .'}~    .>}'.`+>  i}!    "i'  +/'  .'i~  !11,.:">,  .~]!  .i}i
 *              ~888888%:  .I888888l      .]88~`1/iY88Ii+1'.R$8$8]"888888888>  Y8$  W8E  X8E  W8888'188Il}Y88$*
 *              18888888    E8888881    .]W%8$`R8X'&8%++N8i,8N%N8+l8%`  .}8N:.R$RE%N88N%N$K$R  188,FE$8%~Y88I
 *            .E888888I  .i8888888'      .:$8I;88+`E8R:/8N,.>881.`$8E/1/]N8X.Y8N`"KF&&FK!'88*."88K./$88%RN888+~
 *            8888888I  .,N888888~        ~88i"8W,!N8*.I88.}888%F,i$88"F88"  888:E8X.>88!i88>`888*.}Fl1]*}1YKi'
 *          i888888N'      I888Y          ]88;/EX*IFKFK88X  K8R  .l8W  88Y  ~88}'88E&%8W.X8N``]88!.$8K  .:W8I
 *        .i888888N;        I8Y          .&8$  .X88!  i881.:%888>I88  ;88]  +88+.';;;;:.Y88X  18N.,88l  .+88/
 *      .:R888888I
 *      .&888888I                                          Copyright (c) 2009-2020.  博锐尚格科技股份有限公司
 *        ~8888'
 *        .!88~                                                                     All rights reserved.
 *
 * *********************************************************************************************************************
 */

package com.persagy.server.syn.utils

import java.util.*

/**
 * 参数对比工具类
 *
 * @author 张维新
 */
object ParamTools {

    /**
     * 物理世界 一级二级标签 编码
     *
     * @param name  标签名称
     */
    fun TwoLevelCode(name: String): String? {
        return when (name) {
            /** 一级 */
            "台账参数" -> "ledgerParam"
            "通讯参数" -> "commParam"
            "技术参数" -> "techParam"
            "技术参数" -> "techParam"
            "运行参数" -> "runParam"
            "设定参数" -> "settingParam"
            "报警消息" -> "alram"
            "结构信息" -> "structureInfo"
            "人员信息" -> "peopleInfo"
            "地理位置" -> "geoInfo"
            "项目信息" -> "projectInfo"
            "商业信息" -> "commercialInfo"
            "能源价格" -> "energyCost"
            "室外环境" -> "outdoorEnv"
            "天气预报" -> "weather"
            "能耗信息" -> "consumptionInfo"
            "建筑信息" -> "buildingInfo"
            "建筑文档" -> "buildingDoc"
            "工作历" -> "schedule"
            "环境参数" -> "envParam"
            "租赁信息" -> "leaseInfo"
            "租户信息" -> "tenantInfo"
            "温度传感器" -> "tempSensor"
            "技术参数-通用" -> "techParamGeneral"
            "运行参数-通用" -> "runParamGeneral"
            "速度传感器" -> "speedSensor"
            "声音传感器" -> "soundSensor"
            "湿度传感器" -> "humiditySensor"
            "压力传感器" -> "pressTransd"
            "热量传感器" -> "heatSensor"
            "流量传感器" -> "flowSensor"
            "电度传感器" -> "electricitySensor"
            "位移传感器" -> "displSensor"
            "浓度传感器" -> "concentSensor"
            "图像传感器" -> "imageSensor"
            "运行状态"   -> "runningState"
            "反馈参数"  ->  "feedbackParam"
            "人流量传感器" -> "manFlowSensor"
            "动态信息" -> "dynamicInfor"


            /** 二级 */
            "建筑类型" -> "buildingType"
            "设计指标" -> "designIndex"
            "结构参数" -> "structureParam"
            "面积信息" -> "areaInfo"
            "工作作息" -> "workRest"
            "电" -> "electric"
            "燃气" -> "gas"
            "燃油" -> "fuel"
            "自来水" -> "tapWater"
            "供热" -> "heatSupply"
            "供冷" -> "cooling"
            "生活热水" -> "domesticHotWater"
            "季节" -> "season"
            "空气质量" -> "airQuality"
            "蒸汽" -> "steam"
            "未来第1天" -> "dayOne"
            "未来第2天" -> "dayTwo"
            "未来第3天" -> "dayThree"
            "累计" -> "cumulative"
            "逐时" -> "hourly"
            "风速" -> "windSpeed"
            "声强" -> "soundIntensity"
            "光照" -> "illumination"
            "温湿度" -> "temperatureHumidity"
            "加热器" -> "heater"
            "技术参数-噪声传感器" -> "noiseSensor"
            "无负压稳流机组" -> "pressureSteadyFlow"
            "保险文件" -> "insuranceDoc"
            "发射指标" -> "launchIndex"
            "毛发过滤器" -> "hairFilter"
            "压缩机" -> "compressor"
            "烟气余热回收装置" -> "flueGasWasteHeat"
            "膜处理系统" -> "membraneProcessingSystem"
            "制动器" -> "brake"
            "矩阵" -> "matrix"
            "CPU状态" -> "cpuStates"
            "制冷工况" -> "refrigCondition"
            "分支分配器" -> "branchDis"
            "接线端子" -> "connectionTerminal"
            "输入" -> "input"
            "漏电保护器" -> "leakageProtector"
            "发热地膜设备" -> "feverFilmEquip"
            "传输" -> "transmission"
            "整体" -> "whole"
            "龙骨" -> "keel"
            "清水灭火器" -> "cleanWaterExting"
            "扁圆形风管" -> "flatCircularDuct"
            "电加热" -> "electricHeating"
            "隔离/接地开关" -> "earthingSwitch"
            "调节池" -> "regulatingPool"
            "送风段" -> "airSupply"
            "租户管理" -> "tenantManag"
            "通用电气指标" -> "generalElecIndex"
            "热回收段" -> "heatRecoverySection"
            "备用电源" -> "emergencySupply"
            "软件系统" -> "softwareSystem"
            "协议" -> "agreement"
            "冷凝器" -> "condenser"
            "卤代烷灭火器" -> "halogAgentExting"
            "加湿段" -> "humidSection"
            "CD录放盘" -> "cdRecording"
            "泡沫灭火器" -> "foamExtinguisher"
            "辅助设备" -> "auxiliaryEquip"
            "客流探测" -> "passeFlowDetec"
            "设备厂家" -> "equipManufactor"
            "技术参数-热电偶温度传感器" -> "thermTemperSensor"
            "水地暖设备" -> "waterHeatingEquip"
            "柴油机" -> "dieselEngine"
            "排水" -> "drainage"
            "通讯地址" -> "postalAddress"
            "混合器" -> "mixer"
            "性能" -> "performance"
            "运行维保" -> "operationMainte"
            "核心层" -> "coreLayer"
            "发热电缆设备" -> "thermCableEquip"
            "车库出入口" -> "garageEntraExit"
            "整机" -> "completeMachine"
            "电流" -> "electricCurrent"
            "供应购买" -> "supplyPurchase"
            "塑料管" -> "plasticPipe"
            "技术参数-录音" -> "soundRecording"
            "现场安装" -> "siteinstall"
            "技术参数" -> "techParam"
            "累计指标" -> "cumulaIndex"
            "频率" -> "freque"
            "活性炭罐" -> "canister"
            "再热段" -> "reheaSection"
            "接口" -> "interf"
            "变频机组" -> "frequeUnit"
            "调节阀" -> "regulValve"
            "矩形风管" -> "rectDuct"
            "减速器" -> "retarder"
            "加压泵" -> "pressPump"
            "圆形风管" -> "circularDuct"
            "断路器" -> "circuitBreaker"
            "电压互感器" -> "voltageTrans"
            "止回阀" -> "checkValve"
            "园林" -> "gardens"
            "消毒设备" -> "disinfeEquip"
            "总体" -> "population"
            "发电机组" -> "generatorSet"
            "表冷段" -> "surfaceCoolSection"
            "喷泉" -> "fountain"
            "低压" -> "lowPress"
            "播放器" -> "player"
            "玻璃破碎探测器" -> "glassCrushDetec"
            "末端" -> "end"
            "密码键盘" -> "passwordKeyb"
            "灯具" -> "lampsLanterns"
            "网络" -> "network"
            "出口水质" -> "exportWaterQuality"
            "输出" -> "output"
            "排风" -> "exhaustAir"
            "视频式" -> "videoType"
            "显示屏" -> "display"
            "总谐波" -> "totalHarmonic"
            "混风段" -> "mixingSection"
            "电梯" -> "elevator"
            "汇聚层" -> "distriLayer"
            "摄像头" -> "camera"
            "电池" -> "battery"
            "电流互感器" -> "currentTrans"
            "技术参数-玻璃管式温度计" -> "glassTubeTherm"
            "显示" -> "display"
            "应急照明" -> "emerLighting"
            "技术参数-压力式温度计" -> "pressureThermo"
            "空间辐射指标" -> "spatialRadiIndex"
            "照片文档" -> "photoDoc"
            "其他设备" -> "otherEquip"
            "指纹识别仪" -> "fingerIdent"
            "电压" -> "voltage"
            "开关状态" -> "switchingState"
            "对讲系统" -> "intercomSystem"
            "反渗透" -> "reverseOsmosis"
            "电源" -> "powerSupply"
            "接入层" -> "accessLayer"
            "保温材料" -> "thermalInsulMaterial"
            "高频头" -> "tuner"
            "打印机" -> "printer"
            "碳晶地暖设备" -> "carCryGroHeatEquip"
            "干粉灭火器" -> "dryPowderExti"
            "技术参数-电阻温度传感器" -> "resisTempeSensor"
            "瞬时参数" -> "instantParam"
            "运行参数" -> "runParam"
            "紫外线杀菌器" -> "ultravSteri"
            "吸收器" -> "absorber"
            "前置功放" -> "preamplifier"
            "通用" -> "currency"
            "紫外线发生器" -> "ultravGener"
            "技术参数-声音通用" -> "generalVoice"
            "寻车" -> "carSearching"
            "排放标准" -> "emissStand"
            "水侧" -> "waterSide"
            "塔盘水位" -> "trayWater"
            "开关保护" -> "switchProte"
            "太阳能" -> "solarEnergy"
            "蒸汽锅炉" -> "steamBoiler"
            "继电器" -> "relay"
            "疏散指示" -> "evacuaInstr"
            "车位" -> "parkingLot"
            "接收指标" -> "receiIndex"
            "臭氧发生器" -> "ozoneGenerator"
            "电视信号" -> "tvSignal"
            "畸变率" -> "distortRate"
            "熔断器" -> "fuse"
            "风机" -> "fan"
            "技术参数-温度通用" -> "tempGeneral"
            "蒸汽冷凝水回收装置" -> "steamConde"
            "内胆" -> "internalBladder"
            "累计参数" -> "cumuParam"
            "主机" -> "host"
            "消毒剂" -> "disinf"
            "无线模块" -> "wirelessModule"
            "安全阀" -> "safetyValve"
            "IC读卡机" -> "icCardReader"
            "终端设备" -> "terminalEquip"
            "无线" -> "wireless"
            "新风段" -> "freshAir"
            "触点" -> "contact"
            "低压断路器（空气开关）" -> "lowBreaker"
            "前端" -> "frontEnd"
            "红外探测器" -> "infraredDetector"
            "供水" -> "waterSupply"
            "柴发机组" -> "chaiFa"
            "减压阀" -> "pressRreliefValve"
            "提升泵" -> "liftingPump"
            "中水回用池" -> "reclaWater"
            "监视器" -> "monitor"
            "移动信号放大" -> "mobileSignal"
            "软件厂家" -> "softwareManu"
            "调制器" -> "modulator"
            "水质要求" -> "waterQuality"
            "接收器" -> "receiver"
            "二氧化碳灭火器" -> "carbonExting"
            "技术参数-红外测温仪" -> "infraredTempInstru"
            "光端机" -> "opticalTerminal"
            "水处理" -> "waterTreatment"
            "空气侧" -> "airSide"
            "热水锅炉" -> "hotWaterBoiler"
            "基本设定参数" -> "basicSetParam"
            "蒸发器" -> "evaporator"
            "发生器" -> "generator"
            "高压" -> "highPressure"
            "过滤器" -> "filter"
            "节流元件" -> "throtElement"
            "外壳" -> "shell"
            "瞬时状态" -> "instanState"
            "配电柜" -> "powerCabinet"
            "过滤段" -> "filterSegment"
            "负荷开关" -> "loadSwitch"
            "保护" -> "protect"
            "功能" -> "function"
            "保温层" -> "insulLayer"
            "制热工况" -> "heatingCondi"
            "接触器" -> "contactor"
            "沉淀池" -> "sedimenTank"
            "身份证阅读器" -> "idCardReader"
            "软化器" -> "softener"
            "水泵" -> "waterPump"
            "技术参数-IC温度传感器" -> "icTempSensor"
            "组件" -> "assembly"
            "技术参数-热敏电阻温度传感器" -> "thermTempeSensor"
            "联轴器" -> "coupling"
            "集热板" -> "collectorPlate"
            "线圈" -> "coil"
            "功放" -> "powerAmpli"
            "嵌板" -> "panel"
            "盘管" -> "conduits"
            "换热器" -> "heatExcha"
            "盖板" -> "coverPlate"
            "VLAN" -> "vlan"
            "储水箱" -> "waterStoragetank"
            "施肥器" -> "fertiApplicator"
            "其他" -> "other"
            "功率" -> "power"
            "关键指标" -> "keyIndic"
            "通断阀" -> "onOffValve"
            "细格栅" -> "fineScreens"
            "电动机" -> "motor"
            "瞬时指标" -> "instanIndex"
            "压力" -> "pressure"
            "工作历信息" -> "workCalendar"
            else -> {
                ""
            }
        }
    }

    /**
     *字典默认不显示
     */
    fun dicConfigureVisible():HashMap<String,Boolean>{
        val map = HashMap<String,Boolean>()

        return map
    }

    /**
     * 默认不可编辑的
     */
    fun dicConfigureEditable():HashMap<String,Boolean>{
        val map = HashMap<String,Boolean>()
        map["id"] = true
        map["name"] = true

        map["qRCodePic"] = true
        map["bimId"] = true
//        map["BIMLocation"] = false
        map["defaultQRCode"] = true
        map["localId"] = true
        map["localName"] = true

        map["bimFamilyName"] = true
        map["bimFamilySymbol"] = true
        map["modelId"] = true
        map["modelID"] = true
        map["outline"] = true
        return map
    }

    /**
     * 默认不可编辑的
     */
    fun dicConfigure():HashMap<String,Boolean>{
        val map = HashMap<String,Boolean>()
        map["localId"] = true
        map["localName"] = true
        map["modelId"] = true
        map["modelID"] = true
        
        return map
    }

    /**
     * 业务空间（同类）邻接关系
     */
    fun spaceNeighborhood(graphCode: String,type: String): String {
        if (graphCode == "SpaceNeighborhood"&& type == "None") {
            /** 空间隔断无门窗 */
        } else if (graphCode == "SpaceNeighborhood"&& type == "Door") {
            /** 空间隔断有门 */
        }else if (graphCode == "SpaceNeighborhood"&& type == "Window") {
            /** 空间隔断有窗 */
        }else if (graphCode == "SpaceNeighborhood"&& type == "DoorWindow") {
            /** 空间隔断有门窗 */
        }else if (graphCode == "SpaceNeighborhood"&& type == "Connect") {
            /** 空间连通 */
        }
        return ""
    }

    /**
     * 贯通关系
     */
    fun throughRelationship(graphCode: String,type: String): String {
        if (graphCode == "ThroughRelationship"&& type == "Fl2Fl") {
            /** 楼层贯通关系 */
        } else if (graphCode == "ThroughRelationship"&& type == "Sh2Sh") {
            /** 竖井贯通关系 */
        }
        return ""
    }

    /**
     * 建筑交通网络（同类）
     */
    fun trafficNetwork(graphCode: String,type: String): String{
        if (graphCode == "TrafficNetwork"&& type == "Normal") {
            /** 普通交通 */
        } else if (graphCode == "TrafficNetwork"&& type == "FFOpen") {
            /** 消防常开交通 */
        }else if (graphCode == "TrafficNetwork"&& type == "FFClose") {
            /** 消防常关交通 */
        }
        return ""
    }

    /**
     * 空气流通网络（同类）
     */
    fun convectionNetwork(graphCode: String,type: String): String {
        if (graphCode == "ConvectionNetwork"&& type == "Natural") {
            /** 空气自然对流 */
        } else if (graphCode == "ConvectionNetwork"&& type == "OnewayMech") {
            /** 空气单向机械通风 */
        }else if (graphCode == "ConvectionNetwork"&& type == "MixMech") {
            /** 空气混合机械通风 */
        }
        return ""
    }

    /**
     * 光照辐射网络（同类）
     */
    fun radiationNetwork(graphCode: String,type: String): String {
        if (graphCode == "RadiationNetwork"&& type == "Connect") {
            /** 光照连通 */
        } else if (graphCode == "RadiationNetwork"&& type == "Transparent") {
            /** 光照透明隔断 */
        }
        return ""
    }

    /**
     * 机电类所在区域关系
     */
    fun mechInArch(graphCode: String,type: String): String {
        if (graphCode == "MechInArch"&& type == "Sy2Bd") {
            /** 系统所在建筑 */
        } else if (graphCode == "MechInArch"&& type == "Sy2Fl") {
            /** 系统所在楼层 */
        } else if (graphCode == "MechInArch"&& type == "Sy2Sh") {
            /** 系统所在竖井 */
        } else if (graphCode == "MechInArch"&& type == "Sy2Sp") {
            /** 系统所在空间 */
        } else if (graphCode == "MechInArch"&& type == "Eq2Bd") {
            /** 设备设施所在建筑 */
        } else if (graphCode == "MechInArch"&& type == "Eq2Fl") {
            /** 设备设施所在楼层 */
        } else if (graphCode == "MechInArch"&& type == "Eq2Sh") {
            /** 设备设施所在竖井 */
        } else if (graphCode == "MechInArch"&& type == "Eq2Sp") {
            /** 设备设施所在空间 */
        }
        return ""
    }

    /**
     * 机电类服务区域关系
     */
    fun mechForArch(graphCode: String,type: String): String {
        if (graphCode == "MechForArch"&& type == "Sy2Bd") {
            /** 系统服务于建筑 */
        } else if (graphCode == "MechForArch"&& type == "Sy2Fl") {
            /** 系统服务于楼层 */
        } else if (graphCode == "MechForArch"&& type == "Sy2Sh") {
            /** 系统服务于竖井 */
        } else if (graphCode == "MechForArch"&& type == "Sy2Sp") {
            /** 系统服务于空间 */
        } else if (graphCode == "MechForArch"&& type == "Eq2Bd") {
            /** 设备设施服务于建筑 */
        } else if (graphCode == "MechForArch"&& type == "Eq2Fl") {
            /** 设备设施服务于楼层 */
        } else if (graphCode == "MechForArch"&& type == "Eq2Sh") {
            /** 设备设施服务于竖井 */
        } else if (graphCode == "MechForArch"&& type == "Eq2Sp") {
            /** 设备设施服务于空间 */
        }
        return ""
    }

    /**
     * 物理连通关系
     */
//    fun eq2Eq(graphCode: String,type: String): String{
//        return if (graphCode == "LUDistribution"&& type == "Normal") {
//            /** 低压配电普通连接 */
//        } else if (graphCode == "LUDistribution"&& type == "Backup") {
//            /** 高压变配电互备连接 */
//        } else if (graphCode == "ChillWaterLoop"&& type == "Supply") {
//            /** 空调冷冻水供水 */
//        } else if (graphCode == "ChillWaterLoop"&& type == "Return") {
//            /** 空调冷冻水回水 */
//        }else if (graphCode == "ChillWaterLoop"&& type == "Bypass") {
//            /** 空调冷冻水旁通 */
//        }else if (graphCode == "ChillWaterLoop"&& type == "Fill") {
//            /** 空调冷冻水补水 */
//        }else if (graphCode == "CoolingWaterLoop"&& type == "Supply") {
//            /** 空调冷却水供水 */
//        } else if (graphCode == "CoolingWaterLoop"&& type == "Return") {
//            /** 空调冷却水回水 */
//        }else if (graphCode == "CoolingWaterLoop"&& type == "Bypass") {
//            /** 空调冷却水旁通 */
//        }else if (graphCode == "CoolingWaterLoop"&& type == "Fill") {
//            /** 空调冷却水补水 */
//        }else if (graphCode == "HeatWaterLoop"&& type == "Supply") {
//            /** 采暖水供水 */
//        } else if (graphCode == "HeatWaterLoop"&& type == "Return") {
//            /** 采暖水回水 */
//        }else if (graphCode == "HeatWaterLoop"&& type == "Bypass") {
//            /** 采暖水旁通 */
//        }else if (graphCode == "HeatWaterLoop"&& type == "Fill") {
//            /** 采暖水补水 */
//        }else if (graphCode == "CondWaterNetwork"&& type == "Discharge") {
//            /** 空调冷凝水排水 */
//        }else if (graphCode == "ACAirNetwork"&& type == "Supply") {
//            /** 空调送风 */
//        }else if (graphCode == "ACAirNetwork"&& type == "Return") {
//            /** 空调回风 */
//        }else if (graphCode == "ACAirNetwork"&& type == "Discharge") {
//            /** 空调排风 */
//        }else if (graphCode == "FreshAirNetwork"&& type == "Fresh") {
//            /** 新风送风 */
//        }else if (graphCode == "VentNetwork"&& type == "Supply") {
//            /** 通风送风 */
//        }else if (graphCode == "VentNetwork"&& type == "Discharge") {
//            /** 通风排风 */
//        }else if (graphCode == "VentNetwork"&& type == "Uncertain") {
//            /** 通风不确定 */
//        }else if (graphCode == "VRFNetwork"&& type == "SupplyReturn") {
//            /** 多联机供回制冷剂 */
//        }else if (graphCode == "DomesticWaterNetwork"&& type == "Supply") {
//            /** 生活给水供水 */
//        }else if (graphCode == "DomesticWaterNetwork"&& type == "Bypass") {
//            /** 生活给水旁通 */
//        }else if (graphCode == "DrainingWaterNetwork"&& type == "Discharge") {
//            /** 污水排水 */
//        }else if (graphCode == "DrainingWaterNetwork"&& type == "Bypass") {
//            /** 污水旁通 */
//        }else if (graphCode == "RecycleWaterNetwork"&& type == "Supply") {
//            /** 中水供水 */
//        }else if (graphCode == "RecycleWaterNetwork"&& type == "Bypass") {
//            /** 中水旁通 */
//            "eq2eq_RecycleWaterNetwork_2"
//        }else if (graphCode == "DrinkingWaterNetwork"&& type == "Bypass") {
//            /** 直饮水旁通 */
//            "eq2eq_DrinkingWaterNetwork_2"
//        }else if (graphCode == "DrinkingWaterNetwork"&& type == "Supply") {
//            /** 直饮水供水 */
//            "eq2eq_DrinkingWaterNetwork_1"
//        }else if (graphCode == "DHWNetwork"&& type == "Supply") {
//            /** 生活热水供水 */
//            "eq2eq_DHWNetwork_1"
//        }else if (graphCode == "DHWNetwork"&& type == "Bypass") {
//            /** 生活热水旁通 */
//            "eq2eq_DHWNetwork_2"
//        }else if (graphCode == "GasNetwork"&& type == "Supply") {
//            /** 燃气供气 */
//            "eq2eq_GasNetwork_1"
//        }else if (graphCode == "GasNetwork"&& type == "Bypass") {
//            /** 燃气旁通 */
//            "eq2eq_GasNetwork_2"
//        }else if (graphCode == "FireWaterNetwork"&& type == "Supply") {
//            /** 消防给水供水 */
//            "eq2eq_FireWaterNetwork_1"
//        }else if (graphCode == "FireWaterNetwork"&& type == "Bypass") {
//            /** 消防给水旁通 */
//            "eq2eq_FireWaterNetwork_2"
//        }else if (graphCode == "FireVentNetwork"&& type == "Discharge") {
//            /** 消防排烟 */
//            "eq2eq_FireVentNetwork_1"
//        }else if (graphCode == "WENetwork"&& type == "Normal") {
//            /** 弱电通信连接 */
//            "eq2eq_SensorNetwork_1"
//        }else if (graphCode == "MechCtrl"&& type == "EqCtrl") {
//            /** 设备控制关系 */
//            "eq2eq_ControlRelation_1"
//        }else if (graphCode == "MechPower"&& type == "EqNormal") {
//            /** 设备常规电源 */
//            "eq2eq_EquipPower_1"
//        }else if (graphCode == "MechPower"&& type == "EqBackup") {
//            /** 设备备用电源 */
//            "eq2eq_EquipPower_2"
//        }else if (graphCode == "SensorRelationship"&& type == "Ss2Eq") {
//            /** 传感器测量设备关系 */
//            "eq2eq_SensorRelationship_ss2eq"
//        }else if (graphCode == "ValveRelationship"&& type == "Vv2Eq") {
//            /** 阀门限制设备关系 */
//            "eq2eq_ValveRelationship_vv2eq"
//        }else if (graphCode == "MechCtrl"&& type == "SyCtrl") {
//            /** 系统控制关系 */
//            "eq2eq_ControlRelation_2"
//        }else if (graphCode == "MechPower"&& type == "SyNormal") {
//            /** 系统常规电源 */
//            "eq2eq_EquipPower_3"
//        }else if (graphCode == "MechPower"&& type == "SyBackup") {
//            /** 系统备用电源 */
//            "eq2eq_EquipPower_4"
//        }else if (graphCode == "SensorRelationship"&& type == "Ss2Sy") {
//            /** 传感器测量系统关系 */
//            "eq2sy_SensorRelationship_ss2sy"
//        }else if (graphCode == "SensorRelationship"&& type == "Ss2Sp") {
//            /** 传感器测量空间关系 */
//            "eq2sp_SensorRelationship_ss2sp"
//        }else if (graphCode == "ValveRelationship"&& type == "Vv2Sy") {
//            /** 阀门限制系统关系 */
//            "eq2sy_ValveRelationship_vv2sy"
//        }else {
//            ""
//        }
//    }

    /**
     * 操作类型
     */
    fun operationType(type: String): String {
        when(type){
            "create" -> {
                return "创建"
            }
            "delete" -> {
                return "删除"
            }
            "update" ->{
                return "修改"
            }
        }
        return ""
    }



} // Object ParamTools