# ****************************************************************************
# CUI
#
# The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
#
# The use, dissemination or disclosure of data in this file is subject to
# limitation or restriction. See accompanying README and LICENSE for details.
# ****************************************************************************
# * * ************************************** * *
# *   ****** Demonstration input file ******   *
# *   ******      UNCLASSIFIED        ******   *
# * * ************************************** * *

include_once signatures/ucav_sigs.txt
include_once sensors/esm_rwr/ucav_esm.txt
include_once sensors/radar/ucav_sar.txt
include_once weapons/agm/blue_gps_bomb_2.txt
include_once weapons/agm/blue_gps_bomb_1.txt
include_once weapons/agm/blue_glide_bomb_1$(BLUE_GLIDE_BOMB_1_MODEL).txt
include_once weapons/sam/large_sam.txt
include_once behavior/UCAV_fire.txt
include_once behavior/UCAV_move.txt
include_once behavior/UCAV_wait.txt

platform_type UCAV WSF_PLATFORM
  icon UCAV

#  infrared_signature UCAV_INFRARED_SIG
#  optical_signature  UCAV_OPTICAL_SIG
#  radar_signature    UCAV_RADAR_SIG
   radar_signature    VEHICLE_RADAR_SIGNATURE
#  sensor esm UCAV_ESM
#     on
#     internal_link data_mgr
#     ignore_same_side
#  end_sensor
  
  comm cmdr_net DATALINK   
     network_name <local:slave>
     internal_link data_mgr
     internal_link task_mgr
  end_comm
  
  weapon blue_gps_bomb_1 LARGE_SAM
    quantity 6
  end_weapon

  mover WSF_AIR_MOVER
    default_radial_acceleration 1.5 g
    at_end_of_path remove
  end_mover

  processor data_mgr WSF_TRACK_PROCESSOR
     purge_interval       60 sec
  end_processor

  processor task_mgr WSF_SCRIPT_PROCESSOR
     update_interval 5 sec
     advanced_behavior_tree
       btt on
       selector
         behavior_node UCAV_fire
         behavior_node UCAV_move
         behavior_node UCAV_wait
       end_selector
     
     end_advanced_behavior_tree
  end_processor
  
  zone battalion_sector
      circular maximum_radius 20 nm
  end_zone
end_platform_type
