SYMBOL INDEX (264 symbols across 25 files) FILE: agent/airc_homo_rule/agent.py class Agent (line 29) | class Agent(BaseAgent): method __init__ (line 30) | def __init__(self): method set_map_info (line 50) | def set_map_info(self, size_x, size_y, detector_num, fighter_num): method __reset (line 71) | def __reset(self): method get_action (line 74) | def get_action(self, obs_dict, step_cnt): method engage_enemy (line 131) | def engage_enemy(self, tmp_action, obs_dict, index): method choose_action_random (line 157) | def choose_action_random(self, index, step_cnt): method choose_action_random_attack (line 162) | def choose_action_random_attack(self, obs_dict, index, step_cnt): method choose_action_explore (line 166) | def choose_action_explore(self, obs_dict, index): method choose_action_attack (line 210) | def choose_action_attack(self, obs_dict, index): method choose_action_still (line 214) | def choose_action_still(step_cnt): FILE: agent/base_agent.py class BaseAgent (line 13) | class BaseAgent: method __init__ (line 14) | def __init__(self): method get_obs_ind (line 24) | def get_obs_ind(self): FILE: agent/fix_rule/agent.py class Agent (line 17) | class Agent: method __init__ (line 18) | def __init__(self): method set_map_info (line 24) | def set_map_info(self, size_x, size_y, detector_num, fighter_num): method get_action (line 28) | def get_action(self, obs_dict, step_cnt): method get_obs_ind (line 39) | def get_obs_ind(self): FILE: agent/fix_rule/pytransform.py class PytransformError (line 42) | class PytransformError(Exception): method __init__ (line 43) | def __init__(self, *args, **kwargs): method _print_stack (line 49) | def _print_stack(self): function dllmethod (line 58) | def dllmethod(func): function init_pytransform (line 77) | def init_pytransform(): function init_runtime (line 86) | def init_runtime(systrace=0, sysprofile=1, threadtrace=0, threadprofile=1): function import_module (line 93) | def import_module(modname, filename): function exec_file (line 102) | def exec_file(filename): function encrypt_project_files (line 111) | def encrypt_project_files(proname, filelist, mode=0): function encrypt_files (line 117) | def encrypt_files(key, filelist, mode=0): function generate_project_capsule (line 123) | def generate_project_capsule(licfile): function _generate_project_capsule (line 129) | def _generate_project_capsule(): function _encode_capsule_key_file (line 135) | def _encode_capsule_key_file(licfile): function generate_module_key (line 141) | def generate_module_key(pubname, key): function generate_license_file (line 148) | def generate_license_file(filename, priname, rcode, start=-1, count=1): function get_registration_code (line 154) | def get_registration_code(): function get_expired_days (line 160) | def get_expired_days(): function get_trial_days (line 166) | def get_trial_days(): function version_info (line 172) | def version_info(): function get_hd_sn (line 177) | def get_hd_sn(): function show_hd_info (line 185) | def show_hd_info(): function get_license_info (line 188) | def get_license_info(): function _load_library (line 224) | def _load_library(path=None): function pyarmor_init (line 264) | def pyarmor_init(path=None): function pyarmor_runtime (line 273) | def pyarmor_runtime(path=None): FILE: agent/fix_rule_no_att/agent.py class Agent (line 31) | class Agent: method __init__ (line 32) | def __init__(self): method set_map_info (line 38) | def set_map_info(self, size_x, size_y, detector_num, fighter_num): method get_action (line 42) | def get_action(self, obs_dict, step_cnt): method get_obs_ind (line 53) | def get_obs_ind(self): FILE: agent/fix_rule_no_att/pytransform.py class PytransformError (line 42) | class PytransformError(Exception): method __init__ (line 43) | def __init__(self, *args, **kwargs): method _print_stack (line 49) | def _print_stack(self): function dllmethod (line 58) | def dllmethod(func): function init_pytransform (line 77) | def init_pytransform(): function init_runtime (line 86) | def init_runtime(systrace=0, sysprofile=1, threadtrace=0, threadprofile=1): function import_module (line 93) | def import_module(modname, filename): function exec_file (line 102) | def exec_file(filename): function encrypt_project_files (line 111) | def encrypt_project_files(proname, filelist, mode=0): function encrypt_files (line 117) | def encrypt_files(key, filelist, mode=0): function generate_project_capsule (line 123) | def generate_project_capsule(licfile): function _generate_project_capsule (line 129) | def _generate_project_capsule(): function _encode_capsule_key_file (line 135) | def _encode_capsule_key_file(licfile): function generate_module_key (line 141) | def generate_module_key(pubname, key): function generate_license_file (line 148) | def generate_license_file(filename, priname, rcode, start=-1, count=1): function get_registration_code (line 154) | def get_registration_code(): function get_expired_days (line 160) | def get_expired_days(): function get_trial_days (line 166) | def get_trial_days(): function version_info (line 172) | def version_info(): function get_hd_sn (line 177) | def get_hd_sn(): function show_hd_info (line 185) | def show_hd_info(): function get_license_info (line 188) | def get_license_info(): function _load_library (line 224) | def _load_library(path=None): function pyarmor_init (line 264) | def pyarmor_init(path=None): function pyarmor_runtime (line 273) | def pyarmor_runtime(path=None): FILE: agent/simple/agent.py class Agent (line 28) | class Agent(BaseAgent): method __init__ (line 29) | def __init__(self): method set_map_info (line 44) | def set_map_info(self, size_x, size_y, detector_num, fighter_num): method __reset (line 50) | def __reset(self): method get_action (line 53) | def get_action(self, obs_dict, step_cnt): FILE: agent/simple/dqn.py class NetFighter (line 16) | class NetFighter(nn.Module): method __init__ (line 17) | def __init__(self, n_actions): method forward (line 45) | def forward(self, img, info): class RLFighter (line 56) | class RLFighter: method __init__ (line 57) | def __init__( method choose_action (line 72) | def choose_action(self, img_obs, info_obs): class NetDetector (line 85) | class NetDetector(nn.Module): method __init__ (line 86) | def __init__(self, n_actions): method forward (line 114) | def forward(self, img, info): FILE: common/agent_process.py class AgentProc (line 19) | class AgentProc(Process): method __init__ (line 23) | def __init__(self, agent_name, size_x, size_y, detector_num, fighter_n... method run (line 36) | def run(self): method __decision_proc (line 50) | def __decision_proc(self): class AgentCtrl (line 64) | class AgentCtrl: method __init__ (line 68) | def __init__(self, agent_name, size_x, size_y, detector_num, fighter_n... method agent_init (line 78) | def agent_init(self): method terminate (line 92) | def terminate(self): method get_action (line 104) | def get_action(self, obs_raw_dict, step_cnt): method __agent_restart (line 127) | def __agent_restart(self): FILE: configuration/reward.py class GlobalVar (line 13) | class GlobalVar: function get_reward_radar_detector_detector (line 58) | def get_reward_radar_detector_detector(): function get_reward_radar_detector_fighter (line 62) | def get_reward_radar_detector_fighter(): function get_reward_radar_fighter_detector (line 66) | def get_reward_radar_fighter_detector(): function get_reward_radar_fighter_fighter (line 70) | def get_reward_radar_fighter_fighter(): function get_reward_strike_detector_success (line 74) | def get_reward_strike_detector_success(): function get_reward_strike_detector_fail (line 78) | def get_reward_strike_detector_fail(): function get_reward_strike_fighter_success (line 82) | def get_reward_strike_fighter_success(): function get_reward_strike_fighter_fail (line 86) | def get_reward_strike_fighter_fail(): function get_reward_detector_destroyed (line 90) | def get_reward_detector_destroyed(): function get_reward_fighter_destroyed (line 94) | def get_reward_fighter_destroyed(): function get_reward_strike_act_valid (line 98) | def get_reward_strike_act_valid(): function get_reward_strike_act_invalid (line 102) | def get_reward_strike_act_invalid(): function get_reward_keep_alive_step (line 106) | def get_reward_keep_alive_step(): function get_reward_win (line 110) | def get_reward_win(): function get_reward_lose (line 114) | def get_reward_lose(): function get_reward_totally_win (line 118) | def get_reward_totally_win(): function get_reward_totally_lose (line 122) | def get_reward_totally_lose(): function get_reward_draw (line 126) | def get_reward_draw(): FILE: configuration/system.py class GlobalVar (line 13) | class GlobalVar: function get_attack_effect_delay (line 20) | def get_attack_effect_delay(): function get_hit_prob_enable (line 24) | def get_hit_prob_enable(): FILE: environment/interface.py class Environment (line 21) | class Environment: method __init__ (line 25) | def __init__(self, map_path, side1_obs_ind, side2_obs_ind, max_step=50... method get_done (line 78) | def get_done(self): method get_obs (line 86) | def get_obs(self): method get_obs_raw (line 105) | def get_obs_raw(self): method get_alive_status (line 128) | def get_alive_status(self,side1_detector_obs_raw_list,side1_fighter_ob... method get_reward (line 131) | def get_reward(self): method reset (line 138) | def reset(self): method step (line 144) | def step(self, side1_detector_action, side1_fighter_action, side2_dete... method get_map_size (line 155) | def get_map_size(self): method get_unit_num (line 163) | def get_unit_num(self): method get_unit_property_list (line 173) | def get_unit_property_list(self): method set_surrender (line 183) | def set_surrender(self, side): class PlayBack (line 192) | class PlayBack: method __init__ (line 196) | def __init__(self, log_name, display_delay_time=0): method start (line 204) | def start(self): function get_distance (line 211) | def get_distance(a_x, a_y, b_x, b_y): function angle_cal (line 223) | def angle_cal(o_x, o_y, e_x, e_y): FILE: environment/pytransform.py class PytransformError (line 42) | class PytransformError(Exception): method __init__ (line 43) | def __init__(self, *args, **kwargs): method _print_stack (line 49) | def _print_stack(self): function dllmethod (line 58) | def dllmethod(func): function init_pytransform (line 77) | def init_pytransform(): function init_runtime (line 86) | def init_runtime(systrace=0, sysprofile=1, threadtrace=0, threadprofile=1): function import_module (line 93) | def import_module(modname, filename): function exec_file (line 102) | def exec_file(filename): function encrypt_project_files (line 111) | def encrypt_project_files(proname, filelist, mode=0): function encrypt_files (line 117) | def encrypt_files(key, filelist, mode=0): function generate_project_capsule (line 123) | def generate_project_capsule(licfile): function _generate_project_capsule (line 129) | def _generate_project_capsule(): function _encode_capsule_key_file (line 135) | def _encode_capsule_key_file(licfile): function generate_module_key (line 141) | def generate_module_key(pubname, key): function generate_license_file (line 148) | def generate_license_file(filename, priname, rcode, start=-1, count=1): function get_registration_code (line 154) | def get_registration_code(): function get_expired_days (line 160) | def get_expired_days(): function get_trial_days (line 166) | def get_trial_days(): function version_info (line 172) | def version_info(): function get_hd_sn (line 177) | def get_hd_sn(): function show_hd_info (line 185) | def show_hd_info(): function get_license_info (line 188) | def get_license_info(): function _load_library (line 224) | def _load_library(path=None): function pyarmor_init (line 264) | def pyarmor_init(path=None): function pyarmor_runtime (line 273) | def pyarmor_runtime(path=None): FILE: environment/render/render_pic2.py class Render (line 8) | class Render: method __init__ (line 9) | def __init__(self, size_x, size_y):#, o_detector_num, o_fighter_num, e... method dis_update (line 57) | def dis_update(self, done, step, o_detector_data_obs_list, o_fighter_d... method dis_update_done_font (line 79) | def dis_update_done_font(self): method dis_update_font (line 82) | def dis_update_font(self, step, red_reward, blue_reward, red_detector_... method dis_update_pos (line 85) | def dis_update_pos(self, o_detector_pos_list, o_fighter_pos_list, e_de... method draw_course (line 88) | def draw_course(self, center_point_x, center_point_y, course, course_r): method draw_fight_rela (line 91) | def draw_fight_rela(self, center_point_x, center_point_y, striking_lis... FILE: environment/world/config.py class GlobalVar (line 2) | class GlobalVar: function get_api_raw (line 40) | def get_api_raw(): function get_api_spatial (line 43) | def get_api_spatial(): function get_band_L (line 46) | def get_band_L(): function get_band_S (line 49) | def get_band_S(): function get_band_X (line 52) | def get_band_X(): function get_band_fp_num (line 55) | def get_band_fp_num(band): function get_detection_hit_probability (line 58) | def get_detection_hit_probability(typ): function get_hit_detection_source_detector_L (line 61) | def get_hit_detection_source_detector_L(): function get_hit_detection_source_detector_S (line 64) | def get_hit_detection_source_detector_S(): function get_hit_detection_source_fighter (line 67) | def get_hit_detection_source_fighter(): function get_hit_detection_source_passive (line 70) | def get_hit_detection_source_passive(): function get_img_obs_redu_ratio (line 73) | def get_img_obs_redu_ratio(): function get_j_coverage_angle (line 76) | def get_j_coverage_angle(band): function get_j_max_range (line 79) | def get_j_max_range(band): function get_l_missile_dis (line 82) | def get_l_missile_dis(): function get_l_missile_hit_probability (line 85) | def get_l_missile_hit_probability(): function get_l_missile_op_dec_ratio (line 88) | def get_l_missile_op_dec_ratio(): function get_l_missile_op_req (line 91) | def get_l_missile_op_req(): function get_l_missile_type (line 94) | def get_l_missile_type(): function get_l_missile_num (line 97) | def get_l_missile_num(): function get_passive_loc_continuous_detection_req (line 100) | def get_passive_loc_continuous_detection_req(): function get_passive_loc_fighter_num_req (line 103) | def get_passive_loc_fighter_num_req(): function get_r_coverage_angle_X (line 106) | def get_r_coverage_angle_X(): function get_r_jammed_angle_mlob (line 109) | def get_r_jammed_angle_mlob(band): function get_r_jammed_range_mlobe (line 112) | def get_r_jammed_range_mlobe(band): function get_r_jammed_range_slobe_aim (line 115) | def get_r_jammed_range_slobe_aim(band): function get_r_jammed_range_slobe_block (line 118) | def get_r_jammed_range_slobe_block(band): function get_r_max_range (line 121) | def get_r_max_range(band): function get_s_missile_dis (line 124) | def get_s_missile_dis(): function get_s_missile_hit_probability (line 127) | def get_s_missile_hit_probability(): function get_s_missile_op_dec_ratio (line 130) | def get_s_missile_op_dec_ratio(): function get_s_missile_op_req (line 133) | def get_s_missile_op_req(): function get_s_missile_type (line 136) | def get_s_missile_type(): function get_s_missile_num (line 139) | def get_s_missile_num(): FILE: environment/world/detection_calc.py function passive_detection_calc (line 6) | def passive_detection_calc(self_context, enemy_fighter_context_list): function radar_visible_calc (line 25) | def radar_visible_calc(self_context, enemy_detector_context_list, enemy_... function under_jam_check (line 110) | def under_jam_check(rader_x, radar_y, radar_band, jammer_x, jammer_y, ja... FILE: environment/world/em_battle.py class BattleField (line 12) | class BattleField: method __init__ (line 13) | def __init__(self, size_x, size_y, o_detector_list, o_fighter_list, e_... method get_alive_status (line 153) | def get_alive_status(self, o_detector_status_list, o_fighter_status_li... method get_done (line 185) | def get_done(self): method get_obs_raw (line 192) | def get_obs_raw(self): method get_reward (line 284) | def get_reward(self): method get_reward_list (line 288) | def get_reward_list(self): method reset (line 297) | def reset(self): method set_surrender (line 400) | def set_surrender(self, side): method show (line 417) | def show(self): method step (line 421) | def step(self, side1_detector_action, side1_fighter_action, side2_dete... FILE: environment/world/load_map.py class Map (line 3) | class Map: method __init__ (line 4) | def __init__(self, map_path): method get_map_size (line 8) | def get_map_size(self): method get_unit_num (line 11) | def get_unit_num(self): method get_unit_property_list (line 14) | def get_unit_property_list(self): FILE: environment/world/position_calc.py function get_distance (line 4) | def get_distance(a_x, a_y, b_x, b_y): function angle_cal (line 8) | def angle_cal(x1, y1, x2, y2): function pos_generate (line 21) | def pos_generate(side1_d_num, side1_f_num, side2_d_num, side2_f_num, siz... function pos_update (line 45) | def pos_update(pos_x, pos_y, course, step, size_x, size_y): FILE: environment/world/strike_calc.py function get_strike_result_by_ratio (line 9) | def get_strike_result_by_ratio(strike_ratio, random_obj): function strike_act_validation_and_initiation (line 16) | def strike_act_validation_and_initiation(missile_type, fighter_context, ... function strike_judge (line 85) | def strike_judge(strike_context, fighter_radar_visible_list, random_obj): function strike_judge_no_delay (line 142) | def strike_judge_no_delay(strike_context, random_obj): FILE: obs_construct/airc_homo_rule/construct.py class ObsConstruct (line 6) | class ObsConstruct: method __init__ (line 7) | def __init__(self, size_x, size_y, detector_num, fighter_num): method obs_construct (line 15) | def obs_construct(self, obs_raw_dict): method distance_key (line 50) | def distance_key(ele): method obs_construct_old (line 53) | def obs_construct_old(self, obs_raw_dict): method __get_alive_status (line 84) | def __get_alive_status(self, detector_data_obs_list, fighter_data_obs_... method __get_img_obs (line 94) | def __get_img_obs(self, detector_data_obs_list, fighter_data_obs_list,... method __set_value_in_img (line 220) | def __set_value_in_img(self, img, pos_x, pos_y, value): method __get_data_obs (line 259) | def __get_data_obs(self, detector_data_obs_list, fighter_data_obs_list... FILE: obs_construct/simple/construct.py class ObsConstruct (line 4) | class ObsConstruct: method __init__ (line 5) | def __init__(self, size_x, size_y, detector_num, fighter_num): method obs_construct (line 12) | def obs_construct(self, obs_raw_dict): method __get_alive_status (line 42) | def __get_alive_status(self,detector_data_obs_list,fighter_data_obs_li... method __get_img_obs (line 53) | def __get_img_obs(self, detector_data_obs_list, fighter_data_obs_list,... method __set_value_in_img (line 172) | def __set_value_in_img(self, img, pos_x, pos_y, value): method __get_data_obs (line 212) | def __get_data_obs(self, detector_data_obs_list, fighter_data_obs_list... FILE: tournament/tournament_mp.py function run (line 26) | def run(agent1_name, agent2_name, map_name, round_num, max_step, random_... FILE: train/simple/dqn.py class NetFighter (line 16) | class NetFighter(nn.Module): method __init__ (line 17) | def __init__(self, n_actions): method forward (line 45) | def forward(self, img, info): class RLFighter (line 56) | class RLFighter: method __init__ (line 57) | def __init__( method store_transition (line 102) | def store_transition(self, s, a, r, s_): method __clear_memory (line 111) | def __clear_memory(self): method choose_action (line 120) | def choose_action(self, img_obs, info_obs): method learn (line 137) | def learn(self): class NetDetector (line 180) | class NetDetector(nn.Module): method __init__ (line 181) | def __init__(self, n_actions): method forward (line 209) | def forward(self, img, info): FILE: utility.py function distance (line 5) | def distance(x1, y1, x2, y2): function angle (line 9) | def angle(x1, y1, x2, y2):