# engine.LingYi.entitys.supportmission

View Source

      1# -*- coding:utf-8 -*-
      2
      3from .global_util import *
      4from .mission_common import MissionCommon
      5
      6
      7class SupportMission(MissionCommon):
      8    """
      9    支援任务
     10    1、三分之一规则
     11    2、阵位上每类平台保持几个
     12    3、仅一次
     13    4、仅在阵位上打开电磁辐射
     14    5、导航类型
     15    6、编队规模
     16    7、是否飞机数低于编队规模不允许起飞
     17    8、设置任务的飞机出航油门
     18    9、设置任务的飞机阵位油门
     19    10、设置任务的飞机出航高度
     20    11、设置任务的阵位高度
     21    12、支援任务区域按顺序排列的参考点名
     22    13、支援任务设置一个加油周期后，加油队列为空时，加油机返回起降机场
     23    14、支援任务设置加油机可给飞机加油数
     24    15、设置任务所需最少飞机数
     25    16、设置任务舰船/潜艇编队规模
     26    17、是否舰船/潜艇数低于编队规模不允许出发
     27    18、设置飞机出航地形跟随
     28    19、设置飞机阵地地形跟随
     29    20、设置潜艇出航油门
     30    21、设置潜艇出航潜深
     31    22、设置潜艇阵位潜深
     32    23、设置潜艇阵位油门
     33    24、设置水面舰艇出航油门
     34    25、设置水面舰艇阵位油门
     35
     36    示例：
     37     self.YiEr_78_support = self.create_support_mission("YiEr_78_support", [(15.1, -88.6), (14.4, -87.4)])  #创建支援任务
     38     YiEr_78_support = self.get_mission_by_name('YiEr_78_support')   # 通过任务名字 获取支援任务对象
     39     unit_list = ['fsl-fsjdlf2-dfs', 'pgjdlg-sfl2-sfls']  # 单元id列表
     40     self.assign_units_to_mission(mission_name='Y78_patrol', unit_list=unit_guid_list) #将多个单元分配给支援任务
     41     YiEr_78_support.support_flightSize(FlightSize.One)  # 设置支援任务的编队规模
     42    """
     43    def __init__(self, guid, name, side_name):
     44        MissionCommon.__init__(self, guid, name, side_name, ElementType.SupportMission)
     45        self.Type = 0  # 支援任务无任务子类型
     46        self.Area = []  # 支援航线--参考点guid列表
     47        self.NLT = 0  # 支援任务导航循环类型
     48        self.OTR = False  # 三分之一规则
     49        self.MNOS = 0  # 阵位上的最小数量
     50        self.OTO = False  # 仅限一次性 OneTimeOnly
     51        self.AEOOS = False  # 仅在阵位上激活电磁辐射控制 ActiveEMCONOnlyOnStation
     52        self.TransitThrottleAircraft = 0  # 运输油门_飞机
     53        self.StationThrottleAircraft = 0  # 阵位油门_飞机
     54        self.TransitAltitudeAircraft = 0.0  # 运输高度_飞机
     55        self.StationAltitudeAircraft = 0.0  # 阵位高度_飞机
     56        self.TransitTerrainFollowingAircraft = False  # 运输地形跟随_飞机
     57        self.StationTerrainFollowingAircraft = False  # 阵位地形跟随_飞机
     58        self.TransitThrottleSubmarine = 0  # 运输油门_潜艇
     59        self.StationThrottleSubmarine = 0  # 阵位油门_潜艇
     60        self.TransitDepthSubmarine = 0.0  # 9999表示无设置  // 运输深度_潜艇
     61        self.StationDepthSubmarine = 0.0  # 阵位深度_潜艇
     62        self.TransitThrottleShip = 0  # 运输油门_舰船
     63        self.StationThrottleShip = 0  # 阵位油门_舰船
     64        self.TransitThrottleFacility = 0  # 运输油门_设施
     65        self.StationThrottleFacility = 0  # 阵位油门_设施
     66        self.FormationCruise = 0  # 巡航队形
     67        self.A2ARMaxNumberOfReceiversPerTanker = 0  # 空中加油_每艘油轮的最大接收器数量
     68        self.A2AROneTankingCycleOnly = False  # 空中加油_仅限一个油轮循环
     69        self.MinAircraftReq = 0  # 最小飞机数量
     70        self.ContinousCoverageEnable = False  # 连续覆盖启用
     71        self.ContinousCoverageAllowQRA = False  # 连续覆盖_QRA启用
     72        self.ContinousCoverageFlightGenerationMethod = 0  # 连续覆盖_航班方法
     73        self.ContinousCoverageStationTime = 0  # 连续覆盖_阵位时间
     74        self.ContinousCoverageOverlap = 0  # 连续覆盖_重叠
     75        self.ContinousCoverageDuration = 0  # 连续覆盖_持续时间
     76        self.CCSList = []  # 连续覆盖_阵位--THCCS列表
     77        self.QRAs = []  # 连续覆盖_QRA--THCCS列表
     78        self.ContinousCoverageQRANumberOfFlights = 0  # 连续覆盖_QRA航班数量
     79        self.ContinousCoverageQRAFlightGenerationMethod = 0  # 连续覆盖_QRA航班方法
     80        self.ContinousCoverageNumberOfFlightsNeededToAllowQRA = 0  # 连续覆盖_允许QRA所需的航班数量
     81
     82    def set_one_third_rule(self, one_third):
     83        """
     84        1、三分之一规则
     85        :param one_third: bool, True,设置三分之一规则  False:不遵守三分之一规则
     86        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
     87        """
     88        str_set = "oneThirdRule=%s" % str(one_third).lower()
     89        return self._set(str_set)
     90
     91    def station_count(self, station_count):
     92        """
     93        2、阵位上每类平台保持几个
     94        :param station_count: int, 保持阵位的数量
     95        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
     96        """
     97        str_set = "onStation=%d" % station_count
     98        return self._set(str_set)
     99
    100    def support_oneTimeOnly(self, isoneTimeOnly):
    101        """
    102        3、仅一次
    103        :param isoneTimeOnly: bool, 是否仅一次
    104        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    105        """
    106        str_set = "oneTimeOnly=%s" % str(isoneTimeOnly).lower()
    107        return self._set(str_set)
    108
    109    def support_activeEMCON(self, isactiveEMCON):
    110        """
    111        4、仅在阵位上打开电磁辐射
    112        :param isactiveEMCON: bool, True:打开, False:不打开
    113        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    114        """
    115        str_set = "activeEMCON=%s" % str(isactiveEMCON).lower()
    116        return self._set(str_set)
    117
    118    def support_loopType(self, single_loop):
    119        """
    120        5、导航类型
    121        :param single_loop: bool, True-仅一次；False-连续循环
    122        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    123        """
    124        if single_loop:
    125            str_set = "loopType=1"
    126        else:
    127            str_set = "loopType=0"
    128        return self._set(str_set)
    129
    130    def support_flightSize(self, enum_flightSize):
    131        """
    132        6、编队规模
    133        :param enum_flightSize: FlightSize, 编队规模，global_util.py中定义，例：FlightSize.Two：双机编队
    134        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    135        """
    136        str_set = "flightSize=%d" % enum_flightSize.value
    137        return self._set(str_set)
    138
    139    def support_useFlightSize(self, useFlightSize):
    140        """
    141        7、是否飞机数低于编队规模不允许起飞
    142        :param useFlightSize: bool, True:是
    143        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    144        """
    145        str_set = "useFlightSize=%s" % str(useFlightSize).lower()
    146        return self._set(str_set)
    147
    148    def support_throttle_transit(self, enum_throttle):
    149        """
    150        8、设置任务的飞机出航油门
    151        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    152        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    153        """
    154        if enum_throttle.value == 0:
    155            str_set = "transitThrottleAircraft='Unspecified'"
    156        else:
    157            str_set = "transitThrottleAircraft=%d" % (enum_throttle.value - 1)
    158        return self._set(str_set)
    159
    160    def support_throttle_station(self, enum_throttle):
    161        """
    162        9、设置任务的飞机阵位油门
    163        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    164        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    165        """
    166        if enum_throttle.value == 0:
    167            str_set = "stationThrottleAircraft='Unspecified'"
    168        else:
    169            str_set = "stationThrottleAircraft=%d" % (enum_throttle.value - 1)
    170        return self._set(str_set)
    171
    172    def support_transitAltitude(self, transitAltitude):
    173        """
    174        10、设置任务的飞机出航高度
    175        :param transitAltitude: float, 出航高度， 单位：米，最多6位字符，例：99999.9， 888888
    176        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    177        """
    178        str_set = "transitAltitudeAircraft=%.2lf" % transitAltitude
    179        return self._set(str_set)
    180
    181    def support_stationAltitude(self, stationAltitude):
    182        """
    183        11、设置任务的阵位高度
    184        :param stationAltitude: float, 阵位高度， 单位：米，最多6位字符
    185        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    186        """
    187        str_set = "StationAltitudeAircraft=%.2lf" % stationAltitude
    188        return self._set(str_set)
    189
    190    def support_set_zone(self, Zone):
    191        """
    192        12、支援任务区域按顺序排列的参考点名
    193        :param Zone: 参考点列表, list,
    194        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    195        """
    196        str_set = "Zone=%s" % (str(Zone).replace("[", "{").replace("]", "}"))
    197        return self._set(str_set)
    198
    199    def support_tanker_one_time(self, tanker_one_time):
    200        """
    201        13、支援任务设置一个加油周期后，加油队列为空时，加油机返回起降机场
    202        :param tanker_one_time:  bool
    203        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    204        """
    205        str_set = "tankerOneTime=%s" % str(tanker_one_time).lower()
    206        return self._set(str_set)
    207
    208    def support_tanker_max_recv(self, tanker_max_recv):
    209        """
    210        14、支援任务设置加油机可给飞机加油数
    211        :param tanker_max_recv: int，最多受油机数
    212        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    213        """
    214        str_set = "tankerMaxReceivers=%d" % tanker_max_recv
    215        return self._set(str_set)
    216
    217    def support_minaircraft(self, min_aircraft):
    218        """
    219        15、设置任务所需最少飞机数
    220        :param min_aircraft:枚举MinAircraftReq的值, global_util.py中定义
    221        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    222        """
    223        str_set = "minAircraftReq=%d" % min_aircraft.value
    224        return self._set(str_set)
    225
    226    def support_ship_size(self, ship_size):
    227        """
    228        16、设置任务舰船/潜艇编队规模
    229        :param ship_size:枚举GroupSize的值, global_util.py中定义
    230        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    231        """
    232        str_set = "groupSize=%d" % ship_size.value
    233        return self._set(str_set)
    234
    235    def support_use_group_size(self, use_group_size):
    236        """
    237        17、是否舰船/潜艇数低于编队规模不允许出发
    238        :param use_group_size: bool, True:是
    239        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    240        """
    241        str_set = "useGroupSize=%s" % str(use_group_size).lower()
    242        return self._set(str_set)
    243
    244    def support_set_transit_terrain_following(self, transit_terrain):
    245        """
    246        18、设置飞机出航地形跟随
    247        :param transit_terrain: bool
    248        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    249        """
    250        str_set = "TransitTerrainFollowingAircraft=%s" % str(transit_terrain).lower()
    251        return self._set(str_set)
    252
    253    def support_set_station_terrain_following(self, station_terrain):
    254        """
    255        19、设置飞机阵地地形跟随
    256        :param station_terrain: bool
    257        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    258        """
    259        str_set = "stationTerrainFollowingAircraft=%s" % str(station_terrain).lower()
    260        return self._set(str_set)
    261
    262    def support_set_throttle_transit_submarine(self, enum_throttle):
    263        """
    264        20、设置潜艇出航油门
    265        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    266        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    267        """
    268        if enum_throttle.value == 0:
    269            str_set = "transitThrottleSubmarine='Unspecified'"
    270        else:
    271            str_set = "transitThrottleSubmarine=%d" % (enum_throttle.value - 1)
    272        return self._set(str_set)
    273
    274    def support_set_depth_transit_submarine(self, depth_value):
    275        """
    276        21、设置潜艇出航潜深
    277        :param depth_value: float,  出潜深度， 米
    278        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    279        """
    280        str_set = "transitDepthSubmarine=%.2lf" % depth_value
    281        return self._set(str_set)
    282
    283    def support_set_depth_station_submarine(self, depth_value):
    284        """
    285        22、设置潜艇阵位潜深
    286        :param depth_value: float, 阵位潜深， 米
    287        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    288        """
    289        str_set = "stationDepthSubmarine=%.2lf" % depth_value
    290        return self._set(str_set)
    291
    292    def support_set_throttle_station_submarine(self, enum_throttle):
    293        """
    294        23、设置潜艇阵位油门
    295        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    296        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    297        """
    298        if enum_throttle.value == 0:
    299            str_set = "stationThrottleSubmarine='Unspecified'"
    300        else:
    301            str_set = "stationThrottleSubmarine=%d" % (enum_throttle.value - 1)
    302        return self._set(str_set)
    303
    304    def support_set_throttle_transit_ship(self, enum_throttle):
    305        """
    306        24、设置水面舰艇出航油门
    307        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    308        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    309        """
    310        if enum_throttle.value == 0:
    311            str_set = "transitThrottleShip='Unspecified'"
    312        else:
    313            str_set = "transitThrottleShip=%d" % (enum_throttle.value - 1)
    314        return self._set(str_set)
    315
    316    def support_set_throttle_station_ship(self, enum_throttle):
    317        """
    318        25、设置水面舰艇阵位油门
    319        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    320        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    321        """
    322        if enum_throttle.value == 0:
    323            str_set = "stationThrottleShip='Unspecified'"
    324        else:
    325            str_set = "stationThrottleShip=%d" % (enum_throttle.value - 1)
    326        return self._set(str_set)

class SupportMission(engine.LingYi.entitys.mission_common.MissionCommon): View Source

      8class SupportMission(MissionCommon):
      9    """
     10    支援任务
     11    1、三分之一规则
     12    2、阵位上每类平台保持几个
     13    3、仅一次
     14    4、仅在阵位上打开电磁辐射
     15    5、导航类型
     16    6、编队规模
     17    7、是否飞机数低于编队规模不允许起飞
     18    8、设置任务的飞机出航油门
     19    9、设置任务的飞机阵位油门
     20    10、设置任务的飞机出航高度
     21    11、设置任务的阵位高度
     22    12、支援任务区域按顺序排列的参考点名
     23    13、支援任务设置一个加油周期后，加油队列为空时，加油机返回起降机场
     24    14、支援任务设置加油机可给飞机加油数
     25    15、设置任务所需最少飞机数
     26    16、设置任务舰船/潜艇编队规模
     27    17、是否舰船/潜艇数低于编队规模不允许出发
     28    18、设置飞机出航地形跟随
     29    19、设置飞机阵地地形跟随
     30    20、设置潜艇出航油门
     31    21、设置潜艇出航潜深
     32    22、设置潜艇阵位潜深
     33    23、设置潜艇阵位油门
     34    24、设置水面舰艇出航油门
     35    25、设置水面舰艇阵位油门
     36
     37    示例：
     38     self.YiEr_78_support = self.create_support_mission("YiEr_78_support", [(15.1, -88.6), (14.4, -87.4)])  #创建支援任务
     39     YiEr_78_support = self.get_mission_by_name('YiEr_78_support')   # 通过任务名字 获取支援任务对象
     40     unit_list = ['fsl-fsjdlf2-dfs', 'pgjdlg-sfl2-sfls']  # 单元id列表
     41     self.assign_units_to_mission(mission_name='Y78_patrol', unit_list=unit_guid_list) #将多个单元分配给支援任务
     42     YiEr_78_support.support_flightSize(FlightSize.One)  # 设置支援任务的编队规模
     43    """
     44    def __init__(self, guid, name, side_name):
     45        MissionCommon.__init__(self, guid, name, side_name, ElementType.SupportMission)
     46        self.Type = 0  # 支援任务无任务子类型
     47        self.Area = []  # 支援航线--参考点guid列表
     48        self.NLT = 0  # 支援任务导航循环类型
     49        self.OTR = False  # 三分之一规则
     50        self.MNOS = 0  # 阵位上的最小数量
     51        self.OTO = False  # 仅限一次性 OneTimeOnly
     52        self.AEOOS = False  # 仅在阵位上激活电磁辐射控制 ActiveEMCONOnlyOnStation
     53        self.TransitThrottleAircraft = 0  # 运输油门_飞机
     54        self.StationThrottleAircraft = 0  # 阵位油门_飞机
     55        self.TransitAltitudeAircraft = 0.0  # 运输高度_飞机
     56        self.StationAltitudeAircraft = 0.0  # 阵位高度_飞机
     57        self.TransitTerrainFollowingAircraft = False  # 运输地形跟随_飞机
     58        self.StationTerrainFollowingAircraft = False  # 阵位地形跟随_飞机
     59        self.TransitThrottleSubmarine = 0  # 运输油门_潜艇
     60        self.StationThrottleSubmarine = 0  # 阵位油门_潜艇
     61        self.TransitDepthSubmarine = 0.0  # 9999表示无设置  // 运输深度_潜艇
     62        self.StationDepthSubmarine = 0.0  # 阵位深度_潜艇
     63        self.TransitThrottleShip = 0  # 运输油门_舰船
     64        self.StationThrottleShip = 0  # 阵位油门_舰船
     65        self.TransitThrottleFacility = 0  # 运输油门_设施
     66        self.StationThrottleFacility = 0  # 阵位油门_设施
     67        self.FormationCruise = 0  # 巡航队形
     68        self.A2ARMaxNumberOfReceiversPerTanker = 0  # 空中加油_每艘油轮的最大接收器数量
     69        self.A2AROneTankingCycleOnly = False  # 空中加油_仅限一个油轮循环
     70        self.MinAircraftReq = 0  # 最小飞机数量
     71        self.ContinousCoverageEnable = False  # 连续覆盖启用
     72        self.ContinousCoverageAllowQRA = False  # 连续覆盖_QRA启用
     73        self.ContinousCoverageFlightGenerationMethod = 0  # 连续覆盖_航班方法
     74        self.ContinousCoverageStationTime = 0  # 连续覆盖_阵位时间
     75        self.ContinousCoverageOverlap = 0  # 连续覆盖_重叠
     76        self.ContinousCoverageDuration = 0  # 连续覆盖_持续时间
     77        self.CCSList = []  # 连续覆盖_阵位--THCCS列表
     78        self.QRAs = []  # 连续覆盖_QRA--THCCS列表
     79        self.ContinousCoverageQRANumberOfFlights = 0  # 连续覆盖_QRA航班数量
     80        self.ContinousCoverageQRAFlightGenerationMethod = 0  # 连续覆盖_QRA航班方法
     81        self.ContinousCoverageNumberOfFlightsNeededToAllowQRA = 0  # 连续覆盖_允许QRA所需的航班数量
     82
     83    def set_one_third_rule(self, one_third):
     84        """
     85        1、三分之一规则
     86        :param one_third: bool, True,设置三分之一规则  False:不遵守三分之一规则
     87        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
     88        """
     89        str_set = "oneThirdRule=%s" % str(one_third).lower()
     90        return self._set(str_set)
     91
     92    def station_count(self, station_count):
     93        """
     94        2、阵位上每类平台保持几个
     95        :param station_count: int, 保持阵位的数量
     96        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
     97        """
     98        str_set = "onStation=%d" % station_count
     99        return self._set(str_set)
    100
    101    def support_oneTimeOnly(self, isoneTimeOnly):
    102        """
    103        3、仅一次
    104        :param isoneTimeOnly: bool, 是否仅一次
    105        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    106        """
    107        str_set = "oneTimeOnly=%s" % str(isoneTimeOnly).lower()
    108        return self._set(str_set)
    109
    110    def support_activeEMCON(self, isactiveEMCON):
    111        """
    112        4、仅在阵位上打开电磁辐射
    113        :param isactiveEMCON: bool, True:打开, False:不打开
    114        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    115        """
    116        str_set = "activeEMCON=%s" % str(isactiveEMCON).lower()
    117        return self._set(str_set)
    118
    119    def support_loopType(self, single_loop):
    120        """
    121        5、导航类型
    122        :param single_loop: bool, True-仅一次；False-连续循环
    123        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    124        """
    125        if single_loop:
    126            str_set = "loopType=1"
    127        else:
    128            str_set = "loopType=0"
    129        return self._set(str_set)
    130
    131    def support_flightSize(self, enum_flightSize):
    132        """
    133        6、编队规模
    134        :param enum_flightSize: FlightSize, 编队规模，global_util.py中定义，例：FlightSize.Two：双机编队
    135        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    136        """
    137        str_set = "flightSize=%d" % enum_flightSize.value
    138        return self._set(str_set)
    139
    140    def support_useFlightSize(self, useFlightSize):
    141        """
    142        7、是否飞机数低于编队规模不允许起飞
    143        :param useFlightSize: bool, True:是
    144        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    145        """
    146        str_set = "useFlightSize=%s" % str(useFlightSize).lower()
    147        return self._set(str_set)
    148
    149    def support_throttle_transit(self, enum_throttle):
    150        """
    151        8、设置任务的飞机出航油门
    152        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    153        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    154        """
    155        if enum_throttle.value == 0:
    156            str_set = "transitThrottleAircraft='Unspecified'"
    157        else:
    158            str_set = "transitThrottleAircraft=%d" % (enum_throttle.value - 1)
    159        return self._set(str_set)
    160
    161    def support_throttle_station(self, enum_throttle):
    162        """
    163        9、设置任务的飞机阵位油门
    164        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    165        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    166        """
    167        if enum_throttle.value == 0:
    168            str_set = "stationThrottleAircraft='Unspecified'"
    169        else:
    170            str_set = "stationThrottleAircraft=%d" % (enum_throttle.value - 1)
    171        return self._set(str_set)
    172
    173    def support_transitAltitude(self, transitAltitude):
    174        """
    175        10、设置任务的飞机出航高度
    176        :param transitAltitude: float, 出航高度， 单位：米，最多6位字符，例：99999.9， 888888
    177        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    178        """
    179        str_set = "transitAltitudeAircraft=%.2lf" % transitAltitude
    180        return self._set(str_set)
    181
    182    def support_stationAltitude(self, stationAltitude):
    183        """
    184        11、设置任务的阵位高度
    185        :param stationAltitude: float, 阵位高度， 单位：米，最多6位字符
    186        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    187        """
    188        str_set = "StationAltitudeAircraft=%.2lf" % stationAltitude
    189        return self._set(str_set)
    190
    191    def support_set_zone(self, Zone):
    192        """
    193        12、支援任务区域按顺序排列的参考点名
    194        :param Zone: 参考点列表, list,
    195        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    196        """
    197        str_set = "Zone=%s" % (str(Zone).replace("[", "{").replace("]", "}"))
    198        return self._set(str_set)
    199
    200    def support_tanker_one_time(self, tanker_one_time):
    201        """
    202        13、支援任务设置一个加油周期后，加油队列为空时，加油机返回起降机场
    203        :param tanker_one_time:  bool
    204        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    205        """
    206        str_set = "tankerOneTime=%s" % str(tanker_one_time).lower()
    207        return self._set(str_set)
    208
    209    def support_tanker_max_recv(self, tanker_max_recv):
    210        """
    211        14、支援任务设置加油机可给飞机加油数
    212        :param tanker_max_recv: int，最多受油机数
    213        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    214        """
    215        str_set = "tankerMaxReceivers=%d" % tanker_max_recv
    216        return self._set(str_set)
    217
    218    def support_minaircraft(self, min_aircraft):
    219        """
    220        15、设置任务所需最少飞机数
    221        :param min_aircraft:枚举MinAircraftReq的值, global_util.py中定义
    222        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    223        """
    224        str_set = "minAircraftReq=%d" % min_aircraft.value
    225        return self._set(str_set)
    226
    227    def support_ship_size(self, ship_size):
    228        """
    229        16、设置任务舰船/潜艇编队规模
    230        :param ship_size:枚举GroupSize的值, global_util.py中定义
    231        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    232        """
    233        str_set = "groupSize=%d" % ship_size.value
    234        return self._set(str_set)
    235
    236    def support_use_group_size(self, use_group_size):
    237        """
    238        17、是否舰船/潜艇数低于编队规模不允许出发
    239        :param use_group_size: bool, True:是
    240        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    241        """
    242        str_set = "useGroupSize=%s" % str(use_group_size).lower()
    243        return self._set(str_set)
    244
    245    def support_set_transit_terrain_following(self, transit_terrain):
    246        """
    247        18、设置飞机出航地形跟随
    248        :param transit_terrain: bool
    249        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    250        """
    251        str_set = "TransitTerrainFollowingAircraft=%s" % str(transit_terrain).lower()
    252        return self._set(str_set)
    253
    254    def support_set_station_terrain_following(self, station_terrain):
    255        """
    256        19、设置飞机阵地地形跟随
    257        :param station_terrain: bool
    258        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    259        """
    260        str_set = "stationTerrainFollowingAircraft=%s" % str(station_terrain).lower()
    261        return self._set(str_set)
    262
    263    def support_set_throttle_transit_submarine(self, enum_throttle):
    264        """
    265        20、设置潜艇出航油门
    266        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    267        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    268        """
    269        if enum_throttle.value == 0:
    270            str_set = "transitThrottleSubmarine='Unspecified'"
    271        else:
    272            str_set = "transitThrottleSubmarine=%d" % (enum_throttle.value - 1)
    273        return self._set(str_set)
    274
    275    def support_set_depth_transit_submarine(self, depth_value):
    276        """
    277        21、设置潜艇出航潜深
    278        :param depth_value: float,  出潜深度， 米
    279        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    280        """
    281        str_set = "transitDepthSubmarine=%.2lf" % depth_value
    282        return self._set(str_set)
    283
    284    def support_set_depth_station_submarine(self, depth_value):
    285        """
    286        22、设置潜艇阵位潜深
    287        :param depth_value: float, 阵位潜深， 米
    288        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    289        """
    290        str_set = "stationDepthSubmarine=%.2lf" % depth_value
    291        return self._set(str_set)
    292
    293    def support_set_throttle_station_submarine(self, enum_throttle):
    294        """
    295        23、设置潜艇阵位油门
    296        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    297        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    298        """
    299        if enum_throttle.value == 0:
    300            str_set = "stationThrottleSubmarine='Unspecified'"
    301        else:
    302            str_set = "stationThrottleSubmarine=%d" % (enum_throttle.value - 1)
    303        return self._set(str_set)
    304
    305    def support_set_throttle_transit_ship(self, enum_throttle):
    306        """
    307        24、设置水面舰艇出航油门
    308        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    309        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    310        """
    311        if enum_throttle.value == 0:
    312            str_set = "transitThrottleShip='Unspecified'"
    313        else:
    314            str_set = "transitThrottleShip=%d" % (enum_throttle.value - 1)
    315        return self._set(str_set)
    316
    317    def support_set_throttle_station_ship(self, enum_throttle):
    318        """
    319        25、设置水面舰艇阵位油门
    320        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    321        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    322        """
    323        if enum_throttle.value == 0:
    324            str_set = "stationThrottleShip='Unspecified'"
    325        else:
    326            str_set = "stationThrottleShip=%d" % (enum_throttle.value - 1)
    327        return self._set(str_set)

支援任务
1、三分之一规则
2、阵位上每类平台保持几个
3、仅一次
4、仅在阵位上打开电磁辐射
5、导航类型
6、编队规模
7、是否飞机数低于编队规模不允许起飞
8、设置任务的飞机出航油门
9、设置任务的飞机阵位油门
10、设置任务的飞机出航高度
11、设置任务的阵位高度
12、支援任务区域按顺序排列的参考点名
13、支援任务设置一个加油周期后，加油队列为空时，加油机返回起降机场
14、支援任务设置加油机可给飞机加油数
15、设置任务所需最少飞机数
16、设置任务舰船/潜艇编队规模
17、是否舰船/潜艇数低于编队规模不允许出发
18、设置飞机出航地形跟随
19、设置飞机阵地地形跟随
20、设置潜艇出航油门
21、设置潜艇出航潜深
22、设置潜艇阵位潜深
23、设置潜艇阵位油门
24、设置水面舰艇出航油门
25、设置水面舰艇阵位油门

示例：
self.YiEr_78_support = self.create_support_mission("YiEr_78_support", [(15.1, -88.6), (14.4, -87.4)]) #创建支援任务
YiEr_78_support = self.get_mission_by_name('YiEr_78_support') # 通过任务名字 获取支援任务对象
unit_list = ['fsl-fsjdlf2-dfs', 'pgjdlg-sfl2-sfls'] # 单元id列表
self.assign_units_to_mission(mission_name='Y78_patrol', unit_list=unit_guid_list) #将多个单元分配给支援任务
YiEr_78_support.support_flightSize(FlightSize.One) # 设置支援任务的编队规模

SupportMission(guid, name, side_name) View Source

    44    def __init__(self, guid, name, side_name):
    45        MissionCommon.__init__(self, guid, name, side_name, ElementType.SupportMission)
    46        self.Type = 0  # 支援任务无任务子类型
    47        self.Area = []  # 支援航线--参考点guid列表
    48        self.NLT = 0  # 支援任务导航循环类型
    49        self.OTR = False  # 三分之一规则
    50        self.MNOS = 0  # 阵位上的最小数量
    51        self.OTO = False  # 仅限一次性 OneTimeOnly
    52        self.AEOOS = False  # 仅在阵位上激活电磁辐射控制 ActiveEMCONOnlyOnStation
    53        self.TransitThrottleAircraft = 0  # 运输油门_飞机
    54        self.StationThrottleAircraft = 0  # 阵位油门_飞机
    55        self.TransitAltitudeAircraft = 0.0  # 运输高度_飞机
    56        self.StationAltitudeAircraft = 0.0  # 阵位高度_飞机
    57        self.TransitTerrainFollowingAircraft = False  # 运输地形跟随_飞机
    58        self.StationTerrainFollowingAircraft = False  # 阵位地形跟随_飞机
    59        self.TransitThrottleSubmarine = 0  # 运输油门_潜艇
    60        self.StationThrottleSubmarine = 0  # 阵位油门_潜艇
    61        self.TransitDepthSubmarine = 0.0  # 9999表示无设置  // 运输深度_潜艇
    62        self.StationDepthSubmarine = 0.0  # 阵位深度_潜艇
    63        self.TransitThrottleShip = 0  # 运输油门_舰船
    64        self.StationThrottleShip = 0  # 阵位油门_舰船
    65        self.TransitThrottleFacility = 0  # 运输油门_设施
    66        self.StationThrottleFacility = 0  # 阵位油门_设施
    67        self.FormationCruise = 0  # 巡航队形
    68        self.A2ARMaxNumberOfReceiversPerTanker = 0  # 空中加油_每艘油轮的最大接收器数量
    69        self.A2AROneTankingCycleOnly = False  # 空中加油_仅限一个油轮循环
    70        self.MinAircraftReq = 0  # 最小飞机数量
    71        self.ContinousCoverageEnable = False  # 连续覆盖启用
    72        self.ContinousCoverageAllowQRA = False  # 连续覆盖_QRA启用
    73        self.ContinousCoverageFlightGenerationMethod = 0  # 连续覆盖_航班方法
    74        self.ContinousCoverageStationTime = 0  # 连续覆盖_阵位时间
    75        self.ContinousCoverageOverlap = 0  # 连续覆盖_重叠
    76        self.ContinousCoverageDuration = 0  # 连续覆盖_持续时间
    77        self.CCSList = []  # 连续覆盖_阵位--THCCS列表
    78        self.QRAs = []  # 连续覆盖_QRA--THCCS列表
    79        self.ContinousCoverageQRANumberOfFlights = 0  # 连续覆盖_QRA航班数量
    80        self.ContinousCoverageQRAFlightGenerationMethod = 0  # 连续覆盖_QRA航班方法
    81        self.ContinousCoverageNumberOfFlightsNeededToAllowQRA = 0  # 连续覆盖_允许QRA所需的航班数量

Type
Area
NLT
OTR
MNOS
OTO
AEOOS
TransitThrottleAircraft
StationThrottleAircraft
TransitAltitudeAircraft
StationAltitudeAircraft
TransitTerrainFollowingAircraft
StationTerrainFollowingAircraft
TransitThrottleSubmarine
StationThrottleSubmarine
TransitDepthSubmarine
StationDepthSubmarine
TransitThrottleShip
StationThrottleShip
TransitThrottleFacility
StationThrottleFacility
FormationCruise
A2ARMaxNumberOfReceiversPerTanker
A2AROneTankingCycleOnly
MinAircraftReq
ContinousCoverageEnable
ContinousCoverageAllowQRA
ContinousCoverageFlightGenerationMethod
ContinousCoverageStationTime
ContinousCoverageOverlap
ContinousCoverageDuration
CCSList
QRAs
ContinousCoverageQRANumberOfFlights
ContinousCoverageQRAFlightGenerationMethod
ContinousCoverageNumberOfFlightsNeededToAllowQRA
def set_one_third_rule(self, one_third): View Source

    83    def set_one_third_rule(self, one_third):
    84        """
    85        1、三分之一规则
    86        :param one_third: bool, True,设置三分之一规则  False:不遵守三分之一规则
    87        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    88        """
    89        str_set = "oneThirdRule=%s" % str(one_third).lower()
    90        return self._set(str_set)

1、三分之一规则 :param one_third: bool, True,设置三分之一规则 False:不遵守三分之一规则 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def station_count(self, station_count): View Source

    92    def station_count(self, station_count):
    93        """
    94        2、阵位上每类平台保持几个
    95        :param station_count: int, 保持阵位的数量
    96        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    97        """
    98        str_set = "onStation=%d" % station_count
    99        return self._set(str_set)

2、阵位上每类平台保持几个 :param station_count: int, 保持阵位的数量 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_oneTimeOnly(self, isoneTimeOnly): View Source

    101    def support_oneTimeOnly(self, isoneTimeOnly):
    102        """
    103        3、仅一次
    104        :param isoneTimeOnly: bool, 是否仅一次
    105        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    106        """
    107        str_set = "oneTimeOnly=%s" % str(isoneTimeOnly).lower()
    108        return self._set(str_set)

3、仅一次 :param isoneTimeOnly: bool, 是否仅一次 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_activeEMCON(self, isactiveEMCON): View Source

    110    def support_activeEMCON(self, isactiveEMCON):
    111        """
    112        4、仅在阵位上打开电磁辐射
    113        :param isactiveEMCON: bool, True:打开, False:不打开
    114        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    115        """
    116        str_set = "activeEMCON=%s" % str(isactiveEMCON).lower()
    117        return self._set(str_set)

4、仅在阵位上打开电磁辐射 :param isactiveEMCON: bool, True:打开, False:不打开 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_loopType(self, single_loop): View Source

    119    def support_loopType(self, single_loop):
    120        """
    121        5、导航类型
    122        :param single_loop: bool, True-仅一次；False-连续循环
    123        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    124        """
    125        if single_loop:
    126            str_set = "loopType=1"
    127        else:
    128            str_set = "loopType=0"
    129        return self._set(str_set)

5、导航类型 :param single_loop: bool, True-仅一次；False-连续循环 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_flightSize(self, enum_flightSize): View Source

    131    def support_flightSize(self, enum_flightSize):
    132        """
    133        6、编队规模
    134        :param enum_flightSize: FlightSize, 编队规模，global_util.py中定义，例：FlightSize.Two：双机编队
    135        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    136        """
    137        str_set = "flightSize=%d" % enum_flightSize.value
    138        return self._set(str_set)

6、编队规模 :param enum_flightSize: FlightSize, 编队规模，global_util.py中定义，例：FlightSize.Two：双机编队 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_useFlightSize(self, useFlightSize): View Source

    140    def support_useFlightSize(self, useFlightSize):
    141        """
    142        7、是否飞机数低于编队规模不允许起飞
    143        :param useFlightSize: bool, True:是
    144        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    145        """
    146        str_set = "useFlightSize=%s" % str(useFlightSize).lower()
    147        return self._set(str_set)

7、是否飞机数低于编队规模不允许起飞 :param useFlightSize: bool, True:是 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_throttle_transit(self, enum_throttle): View Source

    149    def support_throttle_transit(self, enum_throttle):
    150        """
    151        8、设置任务的飞机出航油门
    152        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    153        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    154        """
    155        if enum_throttle.value == 0:
    156            str_set = "transitThrottleAircraft='Unspecified'"
    157        else:
    158            str_set = "transitThrottleAircraft=%d" % (enum_throttle.value - 1)
    159        return self._set(str_set)

8、设置任务的飞机出航油门 :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_throttle_station(self, enum_throttle): View Source

    161    def support_throttle_station(self, enum_throttle):
    162        """
    163        9、设置任务的飞机阵位油门
    164        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    165        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    166        """
    167        if enum_throttle.value == 0:
    168            str_set = "stationThrottleAircraft='Unspecified'"
    169        else:
    170            str_set = "stationThrottleAircraft=%d" % (enum_throttle.value - 1)
    171        return self._set(str_set)

9、设置任务的飞机阵位油门 :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_transitAltitude(self, transitAltitude): View Source

    173    def support_transitAltitude(self, transitAltitude):
    174        """
    175        10、设置任务的飞机出航高度
    176        :param transitAltitude: float, 出航高度， 单位：米，最多6位字符，例：99999.9， 888888
    177        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    178        """
    179        str_set = "transitAltitudeAircraft=%.2lf" % transitAltitude
    180        return self._set(str_set)

10、设置任务的飞机出航高度 :param transitAltitude: float, 出航高度， 单位：米，最多6位字符，例：99999.9， 888888 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_stationAltitude(self, stationAltitude): View Source

    182    def support_stationAltitude(self, stationAltitude):
    183        """
    184        11、设置任务的阵位高度
    185        :param stationAltitude: float, 阵位高度， 单位：米，最多6位字符
    186        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    187        """
    188        str_set = "StationAltitudeAircraft=%.2lf" % stationAltitude
    189        return self._set(str_set)

11、设置任务的阵位高度 :param stationAltitude: float, 阵位高度， 单位：米，最多6位字符 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_set_zone(self, Zone): View Source

    191    def support_set_zone(self, Zone):
    192        """
    193        12、支援任务区域按顺序排列的参考点名
    194        :param Zone: 参考点列表, list,
    195        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    196        """
    197        str_set = "Zone=%s" % (str(Zone).replace("[", "{").replace("]", "}"))
    198        return self._set(str_set)

12、支援任务区域按顺序排列的参考点名 :param Zone: 参考点列表, list, :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_tanker_one_time(self, tanker_one_time): View Source

    200    def support_tanker_one_time(self, tanker_one_time):
    201        """
    202        13、支援任务设置一个加油周期后，加油队列为空时，加油机返回起降机场
    203        :param tanker_one_time:  bool
    204        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    205        """
    206        str_set = "tankerOneTime=%s" % str(tanker_one_time).lower()
    207        return self._set(str_set)

13、支援任务设置一个加油周期后，加油队列为空时，加油机返回起降机场 :param tanker_one_time: bool :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_tanker_max_recv(self, tanker_max_recv): View Source

    209    def support_tanker_max_recv(self, tanker_max_recv):
    210        """
    211        14、支援任务设置加油机可给飞机加油数
    212        :param tanker_max_recv: int，最多受油机数
    213        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    214        """
    215        str_set = "tankerMaxReceivers=%d" % tanker_max_recv
    216        return self._set(str_set)

14、支援任务设置加油机可给飞机加油数 :param tanker_max_recv: int，最多受油机数 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_minaircraft(self, min_aircraft): View Source

    218    def support_minaircraft(self, min_aircraft):
    219        """
    220        15、设置任务所需最少飞机数
    221        :param min_aircraft:枚举MinAircraftReq的值, global_util.py中定义
    222        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    223        """
    224        str_set = "minAircraftReq=%d" % min_aircraft.value
    225        return self._set(str_set)

15、设置任务所需最少飞机数 :param min_aircraft:枚举MinAircraftReq的值, global_util.py中定义 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_ship_size(self, ship_size): View Source

    227    def support_ship_size(self, ship_size):
    228        """
    229        16、设置任务舰船/潜艇编队规模
    230        :param ship_size:枚举GroupSize的值, global_util.py中定义
    231        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    232        """
    233        str_set = "groupSize=%d" % ship_size.value
    234        return self._set(str_set)

16、设置任务舰船/潜艇编队规模 :param ship_size:枚举GroupSize的值, global_util.py中定义 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_use_group_size(self, use_group_size): View Source

    236    def support_use_group_size(self, use_group_size):
    237        """
    238        17、是否舰船/潜艇数低于编队规模不允许出发
    239        :param use_group_size: bool, True:是
    240        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    241        """
    242        str_set = "useGroupSize=%s" % str(use_group_size).lower()
    243        return self._set(str_set)

17、是否舰船/潜艇数低于编队规模不允许出发 :param use_group_size: bool, True:是 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_set_transit_terrain_following(self, transit_terrain): View Source

    245    def support_set_transit_terrain_following(self, transit_terrain):
    246        """
    247        18、设置飞机出航地形跟随
    248        :param transit_terrain: bool
    249        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    250        """
    251        str_set = "TransitTerrainFollowingAircraft=%s" % str(transit_terrain).lower()
    252        return self._set(str_set)

18、设置飞机出航地形跟随 :param transit_terrain: bool :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_set_station_terrain_following(self, station_terrain): View Source

    254    def support_set_station_terrain_following(self, station_terrain):
    255        """
    256        19、设置飞机阵地地形跟随
    257        :param station_terrain: bool
    258        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    259        """
    260        str_set = "stationTerrainFollowingAircraft=%s" % str(station_terrain).lower()
    261        return self._set(str_set)

19、设置飞机阵地地形跟随 :param station_terrain: bool :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_set_throttle_transit_submarine(self, enum_throttle): View Source

    263    def support_set_throttle_transit_submarine(self, enum_throttle):
    264        """
    265        20、设置潜艇出航油门
    266        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    267        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    268        """
    269        if enum_throttle.value == 0:
    270            str_set = "transitThrottleSubmarine='Unspecified'"
    271        else:
    272            str_set = "transitThrottleSubmarine=%d" % (enum_throttle.value - 1)
    273        return self._set(str_set)

20、设置潜艇出航油门 :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_set_depth_transit_submarine(self, depth_value): View Source

    275    def support_set_depth_transit_submarine(self, depth_value):
    276        """
    277        21、设置潜艇出航潜深
    278        :param depth_value: float,  出潜深度， 米
    279        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    280        """
    281        str_set = "transitDepthSubmarine=%.2lf" % depth_value
    282        return self._set(str_set)

21、设置潜艇出航潜深 :param depth_value: float, 出潜深度， 米 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_set_depth_station_submarine(self, depth_value): View Source

    284    def support_set_depth_station_submarine(self, depth_value):
    285        """
    286        22、设置潜艇阵位潜深
    287        :param depth_value: float, 阵位潜深， 米
    288        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    289        """
    290        str_set = "stationDepthSubmarine=%.2lf" % depth_value
    291        return self._set(str_set)

22、设置潜艇阵位潜深 :param depth_value: float, 阵位潜深， 米 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_set_throttle_station_submarine(self, enum_throttle): View Source

    293    def support_set_throttle_station_submarine(self, enum_throttle):
    294        """
    295        23、设置潜艇阵位油门
    296        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    297        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    298        """
    299        if enum_throttle.value == 0:
    300            str_set = "stationThrottleSubmarine='Unspecified'"
    301        else:
    302            str_set = "stationThrottleSubmarine=%d" % (enum_throttle.value - 1)
    303        return self._set(str_set)

23、设置潜艇阵位油门 :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_set_throttle_transit_ship(self, enum_throttle): View Source

    305    def support_set_throttle_transit_ship(self, enum_throttle):
    306        """
    307        24、设置水面舰艇出航油门
    308        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    309        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    310        """
    311        if enum_throttle.value == 0:
    312            str_set = "transitThrottleShip='Unspecified'"
    313        else:
    314            str_set = "transitThrottleShip=%d" % (enum_throttle.value - 1)
    315        return self._set(str_set)

24、设置水面舰艇出航油门 :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

def support_set_throttle_station_ship(self, enum_throttle): View Source

    317    def support_set_throttle_station_ship(self, enum_throttle):
    318        """
    319        25、设置水面舰艇阵位油门
    320        :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门
    321        :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似
    322        """
    323        if enum_throttle.value == 0:
    324            str_set = "stationThrottleShip='Unspecified'"
    325        else:
    326            str_set = "stationThrottleShip=%d" % (enum_throttle.value - 1)
    327        return self._set(str_set)

25、设置水面舰艇阵位油门 :param enum_throttle:枚举Throttle的值, 油门, global_util.py中定义，例：Throttle.Cruise: 巡航油门 :return: 指令执行结果, Reply对象, 和global_util.py中Reply类定义类似

##### Inherited Members

engine.LingYi.entitys.mission_common.MissionCommon
  use_refuel_unrep
  use_tanker
  set_mission_launchMissionWithoutTankersInPlace
  set_mission_tankerMissionList
  set_mission_tankerMinNumber_total
  set_mission_tankerMinNumber_airborne
  set_mission_tankerMinNumber_station
  set_mission_maxReceiversInQueuePerTanker_airborne
  set_mission_fuelQtyToStartLookingForTanker_airborne
  set_mission_TankerFollowsReceiverse
  set_mission_tankerMaxDistance_airborne
engine.LingYi.entitys.mission.Mission
  Category
  Status
  START
  END
  TakeOffTime
  TimeOnTarget
  SISIH
  UseFlightplan
  UseFlightplansOnly
  IncludeInATO
  TankerUsage
  TankerMissionList
  FlightSize
  GroupSize
  GroupName
  DeactivationUnassignUnits
  CheckBoxOrderRTB
  CheckBoxDeleteMission
  LaunchMissionWithoutTankersInPlace
  TankerMinNumberTotal
  TankerMinNumberAirborne
  TankerMinNumberStation
  MaxReceiversInQueuePerTankerAirborne
  FuelQtyToStartLookingForTankerAirborne
  TankerMaxDistanceAirborne
  TankerFollowsReceivers
  UseFlightSizeHardLimit
  UseGroupSizeHardLimit
  Flight
  EmptySlotsList
  ListNavigation1
  ListNavigation2
  ListNavigation3
  mission_active
  set_start
  set_end
  set_switch_radar
  assign_unit
  get_units_assigned
  unassign_unit
  set_mission_course
  set_mission_newname
  set_groupName
engine.LingYi.entitys.operatorbase.DoctrineOperator
  Doctrine
  category
  category_str
  doctrine_switch_radar
  doctrine_switch_oecm
  doctrine_switch_sonar
  doctrine_SetEMCON_Inherit
  use_nuclear_weapons
  doctrine_weapon_control_status_air
  doctrine_weapon_control_status_surface
  doctrine_weapon_control_status_subsurface
  doctrine_weapon_control_status_land
  doctrine_ignore_plotted_course
  doctrine_engaging_ambiguous_targets
  doctrine_engage_opportunity_targets
  doctrine_ignore_emcon_under_attack
  torpedoes_kinematic_range
  doctrine_automatic_evasion
  doctrine_refuel
  doctrine_refuel_select
  doctrine_refuel_allied
  doctrine_air_operations_tempo
  doctrine_quick_turnaround
  doctrine_fuel_state_planned
  doctrine_fuel_state_rtb
  doctrine_weapon_state_planned
  doctrine_weapon_state_rtb
  doctrine_gun_strafing
  doctrine_jettison_ordnance
  doctrine_bvr_logic
  use_sams_in_anti_surface_mode
  doctrine_maintain_standoff
  doctrine_navigation_surface_mode
  avoid_contact
  dive_on_threat
  recharge_on_patrol
  recharge_on_attack
  use_aip
  dipping_sonar
  navigation_sub
  navigation_land
  set_weapon_release_authority
  wra_qty_salvo
  wra_shooter_salvo
  wra_firing_range
  wra_self_defence_distance
  withdraw_on_damage
  withdraw_on_fuel
  withdraw_on_attack
  withdraw_on_defence
  deploy_on_damage
  deploy_on_fuel
  deploy_on_attack
  deploy_on_defence
  get_doctrineWRA
engine.LingYi.entitys.element.Element
  ID
  Name
  Side
  ElementType
  delete_sub_object