Guest User

GlobalConstant.java

a guest
Nov 1st, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 35.98 KB | None | 0 0
  1. package com.crl.nms.systemConstants; //GlobalConstant.java
  2.  
  3. import java.awt.Font;
  4. import java.util.ArrayList;
  5. import java.util.HashMap;
  6. import java.util.Vector;
  7.  
  8. import com.crl.nms.communication.MessageProcessor;
  9. import com.crl.nms.communication.MessageReceiver;
  10. import com.crl.nms.communication.MessageSender;
  11. import com.crl.nms.communication.inMessages.ADSS_MAPD_ZONE_AND_ASSOCIATED_SENSOR_CAMERA_MSG;
  12. import com.crl.nms.communication.inMessages.Struct_Interface_Info;
  13. import com.crl.nms.communication.structs.SYSTEM_ALERT_INFORMATION;
  14. import com.crl.nms.communication.structs.Struct_Annotation;
  15. import com.crl.nms.communication.structs.Struct_Battery_Charging_Status;
  16. import com.crl.nms.communication.structs.Struct_Camera_Characteristics;
  17. import com.crl.nms.communication.structs.Struct_Camera_Configuration;
  18. import com.crl.nms.communication.structs.Struct_Composite_Rule;
  19. import com.crl.nms.communication.structs.Struct_Fire_Plan;
  20. import com.crl.nms.communication.structs.Struct_Free_Textplus;
  21. import com.crl.nms.communication.structs.Struct_Movement_Plan;
  22. import com.crl.nms.communication.structs.Struct_Plot_Data;
  23. import com.crl.nms.communication.structs.Struct_Radar_Characterstics;
  24. import com.crl.nms.communication.structs.Struct_Radar_Data;
  25. import com.crl.nms.communication.structs.Struct_Received_Free_Textplus;
  26. import com.crl.nms.communication.structs.Struct_Rule;
  27. import com.crl.nms.communication.structs.Struct_Sensor_Status;
  28. import com.crl.nms.communication.structs.Struct_Share_Unshare;
  29. import com.crl.nms.communication.structs.Struct_Single_Target_Rule;
  30. import com.crl.nms.communication.structs.Struct_Sop;
  31. import com.crl.nms.communication.structs.Struct_Time_Position_Rule;
  32. import com.crl.nms.model.Free_Text;
  33. import com.crl.nms.model.User;
  34.  
  35.  
  36. //import com.crl.nms.communication.structs.Struct_Share_Record;
  37.  
  38. public class GlobalConstant {
  39.     public static boolean LOGGEDIN = false;
  40.     public static boolean ISAOIEXSISTING = false;
  41.     public static short id = 0;
  42.     public static boolean isRecording = false;
  43.     public static Thread msg_Thread  = new MessageReceiver("MAPD");
  44.     public static MessageProcessor msg_Processor= new MessageProcessor();
  45.     public static boolean ISEXESPAWN = false;
  46.    
  47.     // public static HashMap<Integer, Struct_Main_Radar_Details_2D>
  48.     // hm_radar_main_detials_2D = new HashMap<Integer,
  49.     // Struct_Main_Radar_Details_2D>();
  50.     // public static HashMap<Integer, Struct_Main_Radar_Details_3D>
  51.     // hm_radar_main_detials_3D = new HashMap<Integer,
  52.     // Struct_Main_Radar_Details_3D>();
  53.  
  54.     public static HashMap<Long, Struct_Interface_Info> hm_interface = new HashMap<Long, Struct_Interface_Info>();
  55.     public static HashMap<Short, Struct_Radar_Characterstics> hm_radar_main_detials_2D = new HashMap<Short, Struct_Radar_Characterstics>();
  56.     public static HashMap<Short, Struct_Radar_Characterstics> hm_radar_main_detials_3D = new HashMap<Short, Struct_Radar_Characterstics>();
  57.     public static HashMap<Integer, Struct_Annotation> hm_annotation = new HashMap<Integer, Struct_Annotation>();
  58.     public static HashMap<Long, Struct_Interface_Info> hm = new HashMap<Long, Struct_Interface_Info>();
  59.     public static HashMap<Short, Struct_Camera_Configuration> hm_camera_config = new HashMap<Short, Struct_Camera_Configuration>();
  60.     public static HashMap<String, Struct_Camera_Characteristics> hm_camera_charecterstics = new HashMap<String, Struct_Camera_Characteristics>();
  61.     public static HashMap<Integer, Struct_Plot_Data> hm_plot_icon = new HashMap<Integer, Struct_Plot_Data>();
  62.     public static HashMap<Integer, Struct_Movement_Plan> hm_MV_Plan = new HashMap<Integer, Struct_Movement_Plan>();
  63.     public static HashMap<String, Struct_Fire_Plan> hm_Fire_Plan = new HashMap<String, Struct_Fire_Plan>();
  64.     public static HashMap<Integer, Struct_Sensor_Status> interface_status = new HashMap<Integer, Struct_Sensor_Status>();
  65.     public static HashMap<Integer, Struct_Free_Textplus> hm_Free_Text_Msg = new HashMap<Integer, Struct_Free_Textplus>();
  66.     public static HashMap<Integer, Struct_Received_Free_Textplus> hm_Received_Free_Text_Msg = new HashMap<Integer, Struct_Received_Free_Textplus>();
  67.     public static HashMap<Integer, Struct_Radar_Data> hm_radar_data = new HashMap<Integer, Struct_Radar_Data>();
  68.     public static HashMap<Integer, Struct_Composite_Rule> hm_Composite_Rule = new HashMap<Integer, Struct_Composite_Rule>();
  69.     public static HashMap<Integer, Struct_Time_Position_Rule> hm_Time_Position_Rule = new HashMap<Integer, Struct_Time_Position_Rule>();
  70.     public static HashMap<Integer, Struct_Single_Target_Rule> hm_Single_Target_Rule = new HashMap<Integer, Struct_Single_Target_Rule>();
  71.     public static HashMap<String, Vector<Struct_Share_Unshare>> hm_Share_Unshare_Interfaces = new HashMap<String, Vector<Struct_Share_Unshare>>();
  72.     public static HashMap<Integer, Vector<Struct_Rule>> hm_Attached_Rules = new HashMap<Integer, Vector<Struct_Rule>>();
  73.     public static HashMap<Integer, Struct_Battery_Charging_Status> hm_Battery_Status = new HashMap<Integer, Struct_Battery_Charging_Status>();
  74.     public static HashMap<Integer, Struct_Sop> hm_SOP_Details = new HashMap<Integer, Struct_Sop>();
  75.     public static HashMap<String, Struct_Camera_Characteristics> cameraCharectrsitcsMap = new HashMap<String, Struct_Camera_Characteristics>();
  76.     public static HashMap<Integer, String> cameraConfigurationMap = new HashMap<Integer, String>();
  77.     public static HashMap<Integer, String> cameraConfigurationMap_hd_URLS = new HashMap<Integer, String>();
  78.     public static HashMap<Integer, String> cameraConfigurationMap_non_hd_URLS = new HashMap<Integer, String>();
  79.     public static HashMap<Integer, String> cameraConfigurationMap_NIGHT_URLS = new HashMap<Integer, String>();
  80.  
  81.    
  82.    
  83.     public static String SensorMangemntURL=new String();
  84.     public static String NetworkMangemntURL=new String();
  85.     public static String VideoMangemntURL=new String();
  86.     public static String IPMangemntURL=new String();
  87.    
  88.    
  89.    
  90.    
  91.     public static  Vector <Free_Text> sent_Free_text=new Vector <Free_Text>();
  92.     public static  Vector <Free_Text> received_Free_text=new Vector <Free_Text>();
  93.  
  94.      
  95.     //SYSTEM_ALERT_INFORMATION
  96.     public static HashMap<String, SYSTEM_ALERT_INFORMATION> pids_alerts_message_store = new HashMap<String, SYSTEM_ALERT_INFORMATION>();
  97.    
  98.     //interface
  99.     public static HashMap<Integer, Short> interface_template_mapping = new HashMap<Integer, Short>();
  100.    
  101.     public static HashMap<String, String> track_creation_data = new HashMap<String, String>();
  102.     public static Vector<Integer> deployedRadarids=new Vector<Integer>();
  103.  
  104.     //for init a datastore is created
  105.     public static Init_Datastore init_datastore = new Init_Datastore();
  106.    
  107.     //2011 ke liye
  108.     public static Vector<ADSS_MAPD_ZONE_AND_ASSOCIATED_SENSOR_CAMERA_MSG> Zone_alerts = new Vector<ADSS_MAPD_ZONE_AND_ASSOCIATED_SENSOR_CAMERA_MSG>();
  109.    
  110.     //for the interface details
  111.     public static HashMap<Integer, String> Interface_Datastore = new HashMap<Integer, String>();
  112.    
  113.     //for login data
  114.     public static HashMap<String, User> credentials = new HashMap<String, User>();
  115.     public static String who_request ;
  116.     public static int login_or_refresh; // 0 means login and 1 means refresh
  117.     //
  118.    
  119.     public static String username = "";
  120.     public static String ip = "";
  121.     public static String userpassword = "";
  122.  
  123.     public static ArrayList<Long> list_trackid = new ArrayList<Long>();
  124.     public static ArrayList<String> list_serverid = new ArrayList<String>();
  125.     public static ArrayList<Long> deployed_interfaces = new ArrayList<Long>();
  126.     public static ArrayList<Long> shared_interfaces = new ArrayList<Long>();
  127.  
  128.     public static boolean EncryptionDecryptionActiveFlag = true;
  129.  
  130.     // PIDS IRS CIBMS(HLS) IRS
  131.     // 0x100 1 FibreBreak
  132.     // 0x200 2 OpticalPowerDegraded
  133.     // 0x400 3 LaserTemperatureWarning
  134.     // 0x800 4 LaserShutdown
  135.     // 0x1000 5 LaserOff
  136.     // 0x2000 6 SopAlarm
  137.  
  138.     public static int isConnected = 0;
  139.     public static int Plot_Id = 0;
  140.     public static int plot_Count = 0;
  141.     public static int trackCount = 0;
  142.  
  143.     public final static int UNSPECIFEID = 0;
  144.     public final static int HUMAN = 1;
  145.     public final static int VEHICLE = 2;
  146.     public final static int ANIMAL = 3;
  147.     public final static int AERIALTARGET = 4;
  148.     public final static int FLOATINGOBJECT = 5;
  149.     public final static int UNDERWATEROBJECT = 6;
  150.     public final static int UNSPECIFIED = 0;
  151.     public final static int STATIONARY = 1;
  152.     public final static int CRAWLING = 2;
  153.     public final static int MOVING = 3;
  154.     public final static int FASTMOVING = 4;
  155.     public final static int FLYING = 5;
  156.     public final static int DIGGING = 6;
  157.     public final static int TUNNELING = 7;
  158.     public final static int TAMPERING = 8;
  159.  
  160.     public final static String LABELUNSPECIFIC[] = { "UNSPECIFIED" };
  161.     public final static String LABELHUMAN[] = { "UNSPECIFIED", "STATIONARY", "CRAWLING", "MOVING", "FAST MOVING",
  162.             "FLYING", "DIGGING", "TUNNELING", "TAMPERING/THEFT" };
  163.     public final static String LABELVEHICLE[] = { "UNSPECIFIED", "STATIONARY", "MOVING", "FAST MOVING", "DIGGING",
  164.             "TUNNELING" };
  165.     public final static String LABELANIMAL[] = { "UNSPECIFIED", "STATIONARY", "MOVING", "FAST MOVING" };
  166.     public final static String LABELAERIALTARGET[] = { "UNSPECIFIED", "STATIONARY", "FLYING" };
  167.     public final static String LABELFLOATINGOBJECT[] = { "UNSPECIFIED", "STATIONARY", "MOVING" };
  168.     public final static String LABELUNDERWATEROBJECT[] = { "UNSPECIFIED", "STATIONARY", "MOVING" };
  169.     public final static String SubTypeUNSPECIFIC[] = { "UNSPECIFIED" };
  170.     public final static String SubTypeHUMAN[] = { "UNSPECIFIED", "UNARMED", "LIGHT ARMED", "HEAVY ARMED" };
  171.     public final static String SubTypeVEHICLE[] = { "UNSPECIFIED", "LIGHT", "HEAVY", "ARMED" };
  172.     public final static String SubTypeANIMAL[] = { "UNSPECIFIED" };
  173.     public final static String SubTypeAERIALTARGET[] = { "UNSPECIFIED", "SMALL AERIAL TARGET", "LARGE AERIAL TARGET" };
  174.     public final static String SubTypeFLOATINGOBJECT[] = { "UNSPECIFIED", "SMALL", "BIG", "SMALL ARMED", "BIG ARMED" };
  175.     public final static String SubTypeUNDERWATEROBJECT[] = { "UNSPECIFIED", "SMALL", "BIG", "SMALL ARMED", "BIG ARMED" };
  176.  
  177.     public final static String ONE = "Fibre Break";
  178.     public final static String TWO = "Optical Power Degraded";
  179.     public final static String THREE = "Laser Temperature Warning";
  180.     public final static String FOUR = "Laser Shutdown";
  181.     public final static String FIVE = "Laser Off";
  182.     public final static String SIX = "SOP Alarm";
  183.  
  184.     public final static String FORMATIONID1 = "";
  185.     public final static String FORMATIONID2 = "";
  186.     public final static String FORMATIONID3 = "";
  187.  
  188.     public final static String SENSITIVITY0 = "HIGH";
  189.     public final static String SENSITIVITY1 = "MEDIUM";
  190.     public final static String SENSITIVITY2 = "LOW";
  191.  
  192.     public final static short ITRACK_IF = 13;
  193.     public final static short CTRACK_IF = 14;
  194.     public final static short ETRACK_IF = 15;
  195.     public final static short BFSR_ACES_IF = 16;
  196.     public final static short PIDS_IF = 17;
  197.     public final static short EO_SENSOR_IF = 18;
  198.     public final static short GAMS_IF = 19;
  199.     public final static short FLCS_IF = 20;
  200.     public final static short UGS_IF = 21;
  201.     public final static short UWS_IF = 22;
  202.     public final static short MICRO_AEROSTAT_IF = 23;
  203.     public final static short QRT_IF = 24;
  204.     public final static short PP_IF = 3; //
  205.     public final static short RT_IF = 25;
  206.     public final static short BLIGHTER_RADAR_IF = 26;
  207.     //public final static short OPTASENSE_IF = 27;// ugs
  208.     //public final static short DB_RD_MASTER_IF = 28;
  209.     public final static short MAGAOS_SR500 = 27;
  210.     public final static short MAGAOS_SR1000 = 28;//
  211.    
  212.     public final static short BN_HQIF = 29;
  213.     public final static short MANUAL_TRK = 100;
  214.  
  215.     public final static short FL_STATUS_FLAG_OFF = 0;
  216.     public final static short FL_STATUS_FLAG_ON = 1;
  217.  
  218.     public final static short IS_ISOLATED = 2;// 1-yes 2-no
  219.     public final static short ZONE_STATE = 2;// 1-Online 2-Offline
  220.  
  221.     public static final int MAX_MESSAGE_SIZE = 1400;
  222.     public static final int MESSAGE_HEADER_SIZE = 18;
  223.     public final static short MESSAGE_HEADER_LENGTH = 12;
  224.  
  225.     // Constants Defined as per the IRS Document
  226.     public final static short MAX_LENGTH_OF_CALL_SIGN = 8;
  227.     public final static short MAX_IP_LENGTH = 16;
  228.     public final static short MAX_LENGTH_OF_SHIPNAME = 21;
  229.     public final static short MAX_LENGTH_OF_DESTINATION = 21;
  230.  
  231.     public static int SCREEN_WIDTH = 1280;
  232.     public static int SCREEN_HEIGHT = 1024;
  233.  
  234.     // GUI Related Constants
  235.     public static final int DEFAULT_FONT_SIZE = 12;
  236.     public static final int MENU_FONT_SIZE = 14;
  237.     public static final String DEFAULT_FONT_TYPE = Font.SANS_SERIF;
  238.  
  239.     public static final Font DEFAULT_FONT_REGULAR = new Font(DEFAULT_FONT_TYPE, Font.PLAIN, DEFAULT_FONT_SIZE);
  240.     public static final Font DEFAULT_FONT_BOLD = new Font(DEFAULT_FONT_TYPE, Font.BOLD, DEFAULT_FONT_SIZE);
  241.     public static final Font DEFAULT_MENU_BOLD = new Font(DEFAULT_FONT_TYPE, Font.BOLD, MENU_FONT_SIZE);
  242.  
  243.     public static enum LatLongType {
  244.         LATITUDE, LONGITUDE
  245.     };
  246.  
  247.     public final static double LAT_LONG_CONV_CONSTANT = 600000.0;
  248.     public final static double SPEED_CONV_CONST = (1.0 / 514.444);
  249.     public final static double COURSE_CONV_CONST = (0.0055);
  250.     public final static double NM_RADIUS_CONV_CONST = 1852000;
  251.     public final static double NM_KM_CONV_CONST = 1.852;
  252.     public final static double NM_METRE_CONV_CONST = 1852;
  253.     public final static double KM_NM_CONV_CONST = (1.0 / 1.852);
  254.     public final static double METER_TO_NM_CONV_CONST = (1.0 / 1852.0);
  255.     public final static double KM_METER_CONV_CONST = 1000.0;
  256.  
  257.     public final static double PI = 3.14159265358979323846;
  258.     public final static double DEG_TO_RADIANS = (PI / 180.0);
  259.     public final static double RADIANS_TO_DEGREES = 1.0 / DEG_TO_RADIANS;
  260.  
  261.     public final static double KNOTS_TO_MPS = (1852.0 / 3600.0);
  262.     public final static double MPS_TO_KNOTS = (3600.0 / 1852.0);
  263.     public final static double KMPH_TO_MPS = (1000.0 / 3600.0);
  264.     public final static double MPS_TO_KMPH = (3600.0 / 1000.0);
  265.     public final static double KNOTS_TO_KMPH = (1852.0 / 1000.0);
  266.     public final static double KMPH_TO_KNOTS = (1000.0 / 1852.0);
  267.     // Degree, Minute, Second Symbol
  268.     public static String degSymbol = "\u00b0";
  269.     public static String minSymbol = "\u2032";
  270.     public static String secSymbol = "\u2033";
  271.  
  272.     public final static String TB_NORTH_LEFT = "NorthLeft";
  273.     public final static String TB_NORTH_RIGHT = "NorthRight";
  274.     public final static String TB_SOUTH_TOPRIGHT = "SouthTopRight";
  275.     public final static String TB_SOUTH_TOPLEFT = "SouthTopLeft";
  276.     public final static String TB_SOUTH_BOTTOMRIGHT = "SouthBottomRight";
  277.     public final static String TB_SOUTH_BOTTOMLEFT = "SouthBottomLeft";
  278.     public final static String TB_EAST_TOP = "EastTop";
  279.     public final static String TB_EAST_BOTTOM = "EastBottom";
  280.     public final static String TB_WEST_TOP = "WestTop";
  281.     public final static String TB_WEST_BOTTOM = "WestBottom";
  282.  
  283.     public static enum GridType {
  284.         LON_LAT, MGRS, GEOREF
  285.     };
  286.  
  287.     // HLS
  288.     public final static short TRACK_PREFIX = 4;
  289.     public static final short MAX_NO_OF_DESCRIPTION_BYTES = 100 + 1;
  290.     public static final short MAX_NO_OF_CONTRIBUTING_SENSORS = 20;
  291.     public static final short MAX_NO_OF_NAME_CHAR = 50 + 1;
  292.  
  293.     // Area Types
  294.     public final static short UNKNOWN = 0;
  295.     public final static short AOI = 1;
  296.     public final static short AOR = 2;
  297.     public final static short DESIGNATED_AREA = 3;
  298.     public final static short ROUTE = 4;
  299.     public final static short SURVELLIANCEZONE = 5;
  300.     public final static short FILTERZONE = 9;
  301.  
  302.     // Identity Type
  303.     public final static short FRIENDLY = 1;
  304.     public final static short NEUTRAL = 2;
  305.     public final static short HOSTILE = 3;
  306.  
  307.     // Geometry type
  308.     public final static short POINT = 1;
  309.     public final static short LINE = 2;
  310.     public final static short POLYGON = 3;
  311.     public final static short CIRCLE = 4;
  312.     public final static short POLYLINE = 5;
  313.  
  314.     // Login
  315.     public final static short LOGIN = 1154;
  316.  
  317.     // public final static String IP_MSDF = "192.168.14.50";
  318.     // public final static String IP_MAPD = "192.168.101.177";
  319.     // public final static int PORT_MSDF = 11009;
  320.     // public final static int PORT_MAPD = 11001;
  321.  
  322.     public final static byte SHARE_TRACK = 1;
  323.     public final static byte SHARE_AOI = 2;
  324.     public final static byte SHARE_AOR = 3;
  325.     public final static byte SHARE_DA = 4;
  326.     public final static byte SHARE_ROUTE = 6;
  327.     public final static byte SLUE_CUE_CAMERA = 8;
  328.     public final static byte SHARE_MP = 7;
  329.     public final static byte SHARE_ANNOTATION = 5;
  330.     public final static byte SHARE_SURVELLIANCEZONE = 9;
  331.  
  332.     // FirePlan
  333.     public final static short MAX_LENGTH_OF_ARTY_GUN_ID = 21;
  334.  
  335.     public static final short MAX_PIDS_SENSOR_ID = 4;
  336.     public static final short LASER_LOC_VALID = 1;
  337.     public static final short LASER_LOC_INVALID = 0;
  338.     public static final short SENSOR_ON = 1;
  339.     public static final short SENSOR_OFF = 2;
  340.  
  341.     // FormationType
  342.     public static final short CORPS = 1;
  343.     public static final short DIVISION = 2;
  344.     public static final short BRIGADE = 3;
  345.     public static final short BATTALION = 4;
  346.     public static final short COMPANY = 5;
  347.  
  348.     // Infrastructure
  349.     public static final byte BOP = 0;
  350.     public static final byte BNHQ = 1;
  351.     public static final byte GATE = 2;
  352.     private static short templateid = 0;
  353.    
  354.    
  355.     //camera
  356.  
  357.     public static final byte MAX_FLOAT_LENGTH=10;
  358.     public static final byte MAX_CAMERA_NAME=51;
  359.  
  360.     public static String getIdentityFromNumtoString(int identity) {
  361.         String str = "";
  362.         if (identity == 0)
  363.             str = "UNKNOWN";
  364.         else if (identity == 1)
  365.             str = "FRIENDLY";
  366.         else if (identity == 2)
  367.             str = "NEUTRAL";
  368.         else if (identity == 3)
  369.             str = "HOSTILE";
  370.         else
  371.             str = "INVALID";
  372.         return str;
  373.     }
  374.  
  375.     public static String getTargetTypeFromNumtoString(int identity) {
  376.  
  377.         String str = "";
  378.         if (identity == 0)
  379.             str = "UNSPECIFEID";
  380.         else if (identity == 1)
  381.             str = "HUMAN";
  382.         else if (identity == 2)
  383.             str = "VEHICLE";
  384.         else if (identity == 3)
  385.             str = "ANIMAL";
  386.         else if (identity == 4)
  387.             str = "AERIAL TARGET";
  388.         else if (identity == 5)
  389.             str = "FLOATING OBJECT";
  390.         else if (identity == 6)
  391.             str = "UNDER_WATER_OBJECT";
  392.         else
  393.             str = "INVALID";
  394.         return str;
  395.     }
  396.  
  397.     public static String getSubTargetTypeFromNumtoString(int tgttype, int subTgtType) {
  398.  
  399.         String str = "";
  400.         if (tgttype == 0) {
  401.             if (subTgtType == 0)
  402.                 str = "UNSPECIFEID";
  403.         }
  404.         if (tgttype == 1) {// human
  405.             if (subTgtType == 0)
  406.                 str = "UNSPECIFEID";
  407.             else if (subTgtType == 1)
  408.                 str = "UNARMED";
  409.             else if (subTgtType == 2)
  410.                 str = "LIGHT ARMED";
  411.             else if (subTgtType == 3)
  412.                 str = "HEAVY ARMED";
  413.         }
  414.  
  415.         if (tgttype == 2) {// vehicle
  416.             if (subTgtType == 0)
  417.                 str = "UNSPECIFEID";
  418.             else if (subTgtType == 1)
  419.                 str = "LIGHT";
  420.             else if (subTgtType == 2)
  421.                 str = "HEAVY";
  422.             else if (subTgtType == 3)
  423.                 str = "ARMED";
  424.         }
  425.         if (tgttype == 3) {// animal
  426.             if (subTgtType == 0)
  427.                 str = "UNSPECIFEID";
  428.         }
  429.         if (tgttype == 4) {// AERIAL_TARGET
  430.             if (subTgtType == 0)
  431.                 str = "UNSPECIFEID";
  432.             else if (subTgtType == 1)
  433.                 str = "SMALL AERIAL TARGET";
  434.             else if (subTgtType == 2)
  435.                 str = "LARGE AERIAL TARGET";
  436.         }
  437.         if (tgttype == 5) {// FLOATING_OBJECT
  438.             if (subTgtType == 0)
  439.                 str = "UNSPECIFEID";
  440.             else if (subTgtType == 1)
  441.                 str = "SMALL";
  442.             else if (subTgtType == 2)
  443.                 str = "BIG";
  444.             else if (subTgtType == 3)
  445.                 str = "SMALL ARMED";
  446.             else if (subTgtType == 4)
  447.                 str = "BIG ARMED";
  448.         }
  449.         if (tgttype == 6) {// UNDER_WATER_OBJECT
  450.             if (subTgtType == 0)
  451.                 str = "UNSPECIFEID";
  452.             else if (subTgtType == 1)
  453.                 str = "SMALL";
  454.             else if (subTgtType == 2)
  455.                 str = "BIG";
  456.             else if (subTgtType == 3)
  457.                 str = "SMALL ARMED";
  458.             else if (subTgtType == 4)
  459.                 str = "BIG ARMED";
  460.         }
  461.         return str;
  462.     }
  463.  
  464.     public static String getActivityFromNumtoString(int identity) {
  465.         String str = "";
  466.  
  467.         if (identity == 0)
  468.             str = "UNSPECIFIED";
  469.         else if (identity == 1)
  470.             str = "STATIONARY";
  471.         else if (identity == 2)
  472.             str = "CRAWLING";
  473.         else if (identity == 3)
  474.             str = "MOVING";
  475.         else if (identity == 4)
  476.             str = "FAST MOVING";
  477.         else if (identity == 5)
  478.             str = "FLYING";
  479.         else if (identity == 6)
  480.             str = "DIGGING";
  481.         else if (identity == 7)
  482.             str = "TUNNELING";
  483.         else if (identity == 8)
  484.             str = "TAMPERING/THEFT";
  485.         else
  486.             str = "INVALID";
  487.         return str;
  488.     }
  489.  
  490.     public String getFormationIDFromNumtoString(int formationid) {
  491.  
  492.         if (formationid == 0) {
  493.             return GlobalConstant.FORMATIONID1;
  494.         } else if (formationid == 1) {
  495.             return GlobalConstant.FORMATIONID2;
  496.         } else {
  497.             return GlobalConstant.FORMATIONID3;
  498.         }
  499.  
  500.     }
  501.  
  502.     public static String getFormationTypeFromNumToString(int formationtype) {
  503.         String stringFormationtype;
  504.         if (formationtype == 1) {
  505.             stringFormationtype = "CORPS";
  506.         } else if (formationtype == 2) {
  507.             stringFormationtype = "DIVISION";
  508.         }
  509.  
  510.         else if (formationtype == 3) {
  511.             stringFormationtype = "BRIGADE";
  512.         }
  513.  
  514.         else if (formationtype == 4) {
  515.             stringFormationtype = "BATTALION";
  516.         }
  517.  
  518.         else if (formationtype == 5) {
  519.             stringFormationtype = "COMPANY";
  520.         } else {
  521.             stringFormationtype = "Wrong Type";
  522.  
  523.         }
  524.  
  525.         return stringFormationtype;
  526.     }
  527.  
  528.     public static String getZoneIsolation(int isolation) {
  529.         if (isolation == 1)
  530.             return "Isolated";
  531.         else
  532.             return "Not Isolated";
  533.     }
  534.  
  535.     public static String getSensititvityFromNumToString(int senstitvity) {
  536.         if (senstitvity == 0) {
  537.             return GlobalConstant.SENSITIVITY0;
  538.         } else if (senstitvity == 1) {
  539.             return GlobalConstant.SENSITIVITY1;
  540.         } else {
  541.             return GlobalConstant.SENSITIVITY2;
  542.         }
  543.     }
  544.  
  545.     public static String getAreaTypeFromNumToString(int areaType) {
  546.         if (areaType == UNKNOWN) {
  547.             return "Unknown";
  548.         } else if (areaType == AOI) {
  549.             return "AOI";
  550.         } else if (areaType == AOR) {
  551.             return "AOR";
  552.         } else if (areaType == DESIGNATED_AREA) {
  553.             return "DA";
  554.         } else if (areaType == ROUTE) {
  555.             return "ROUTE";
  556.         } else if (areaType == SURVELLIANCEZONE) {
  557.             return "SURVELLIANCE ZONE";
  558.         } else {
  559.             return "WRONG AREATYPE";
  560.         }
  561.     }
  562.  
  563.     public static boolean isCameraAvailableInCameraList() {
  564.  
  565.         if (GlobalConstant.hm_camera_config.isEmpty())
  566.             return false;
  567.         else
  568.             return true;
  569.  
  570.     }
  571.  
  572.     public static boolean isInterfaceForSharingAvailable() {
  573.         for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  574.             String _name = i.getInterfaceName();
  575.             // System.out.println("name is " + _name);
  576.             int template_type = i.getTemplateType();
  577.             // System.out.println("template_type is " + template_type);
  578.             // if((_name.contains("QRT"))||_name.contains("RECCE")||_name.contains("PP"))
  579.             if ((template_type == GlobalConstant.QRT_IF) || (template_type == GlobalConstant.PP_IF)
  580.                     || (template_type == GlobalConstant.RT_IF))
  581.                 return true;
  582.         }
  583.         return false;
  584.  
  585.     }
  586.  
  587.     public static boolean isInterfaceAvailableForDisplay() {
  588.  
  589.         if (GlobalConstant.hm.isEmpty())
  590.             return false;
  591.         else
  592.             return true;
  593.  
  594.     }
  595.  
  596.     public static String getInterfaceName(long id) {
  597.         String _name = "";
  598.         if (isInterfaceAvailableForDisplay()) {
  599.  
  600.             for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  601.                 if (id == i.getInterfaceId()) {
  602.                     _name = i.getInterfaceName();
  603.                     return _name;
  604.                 }
  605.  
  606.             }
  607.  
  608.         }
  609.  
  610.         return _name;
  611.     }
  612.  
  613.     public static long getInterfaceId(String name) {
  614.         long id = 0;
  615.         if (isInterfaceAvailableForDisplay()) {
  616.  
  617.             for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  618.                 if (name.equals(i.getInterfaceName())) {
  619.                     id = i.getInterfaceId();
  620.                     return id;
  621.                 }
  622.  
  623.             }
  624.  
  625.         }
  626.         return id;
  627.  
  628.     }
  629.  
  630.     public static short gettemplateType(long id) {
  631.         short _type = 0;
  632.         if (isInterfaceAvailableForDisplay()) {
  633.  
  634.             for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  635.                 if (id == i.getInterfaceId()) {
  636.                     _type = i.getTemplateType();
  637.                     return _type;
  638.                 }
  639.  
  640.             }
  641.  
  642.         }
  643.  
  644.         return _type;
  645.  
  646.     }
  647.  
  648.     public static long getInterfaceIDFromTemplateType(short templatetype) {
  649.         long id = 0;
  650.         if (isInterfaceAvailableForDisplay()) {
  651.  
  652.             for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  653.                 if (templatetype == i.getTemplateType()) {
  654.                     id = i.getInterfaceId();
  655.                     return id;
  656.                 }
  657.  
  658.             }
  659.  
  660.         }
  661.  
  662.         return id;
  663.  
  664.     }
  665.  
  666.     public static String getTemplateNameFromInterfaceID(long interface_id) {
  667.         int template_type = gettemplateType(interface_id);
  668.         String _templateName = gettemplateName(template_type);
  669.         return _templateName;
  670.  
  671.     }
  672.  
  673.     public static String loadAudioFileForLaserAlarm(int alarmtype) {
  674.         if (alarmtype == 1) {
  675.             return "Alarms/Fibre Break.wav";
  676.         }
  677.  
  678.         else if (alarmtype == 2) {
  679.             return "Alarms/Optical Power Degraded.wav";
  680.         }
  681.  
  682.         else if (alarmtype == 3) {
  683.             return "Alarms/Laser Temperature Warning.wav";
  684.         }
  685.  
  686.         else if (alarmtype == 4) {
  687.             return "Alarms/Laser Shutdown.wav";
  688.         }
  689.  
  690.         else if (alarmtype == 5) {
  691.             return "Alarms/Laser Off.wav";
  692.         }
  693.  
  694.         else if (alarmtype == 6) {
  695.             return "Alarms/SOP Alarm.wav";
  696.         }
  697.  
  698.         else {
  699.             // System.out.println("alarmtype" + alarmtype);
  700.             return "Alarms/SOP Alarm.wav";
  701.         }
  702.  
  703.     }
  704.  
  705.     public static int getPlot_Count() {
  706.         return plot_Count;
  707.     }
  708.  
  709.     public static void setPlot_Count(int plot_Count) {
  710.         GlobalConstant.plot_Count = plot_Count;
  711.     }
  712.  
  713.     public static int getTrackCount() {
  714.         return trackCount;
  715.     }
  716.  
  717.     public static void setTrackCount(int trackCount) {
  718.         GlobalConstant.trackCount = trackCount;
  719.     }
  720.  
  721.     public static String gettemplateName(long template_type) {
  722.         if (template_type == ITRACK_IF) {
  723.             return "ITRACK";
  724.         } else if (template_type == CTRACK_IF) {
  725.             return "CTRACK";
  726.         } else if (template_type == BFSR_ACES_IF) {
  727.             return "BFSR_ACES";
  728.         } else if (template_type == PIDS_IF) {
  729.             return "PIDS";
  730.         } else if (template_type == EO_SENSOR_IF) {
  731.             return "EO";
  732.         } else if (template_type == GAMS_IF) {
  733.             return "GAMS";
  734.         } else if (template_type == FLCS_IF) {
  735.             return "FLCS";
  736.         } else if (template_type == UGS_IF) {
  737.             return "UGS";
  738.         } else if (template_type == UWS_IF) {
  739.             return "UWS";
  740.         } else if (template_type == MICRO_AEROSTAT_IF) {
  741.             return "MICRO_AEROSTAT";
  742.         } else if (template_type == QRT_IF) {
  743.             return "QRT_IF";
  744.         } else if (template_type == PP_IF) {
  745.             return "PP_IF";
  746.         } else if (template_type == RT_IF) {
  747.             return "RT_IF";
  748.         } else if (template_type == BLIGHTER_RADAR_IF) {
  749.             return "BLIGHTER_RADAR_IF";
  750.         } else if (template_type == MAGAOS_SR500) {
  751.             return "MAGAOS_SR500";
  752.         } else if (template_type == MAGAOS_SR1000) {
  753.             return "MAGAOS_SR1000";
  754.         } else {
  755.             return "Wrong Template Type";
  756.         }
  757.  
  758.     }
  759.  
  760.     public static boolean IsTargetAvailableInSystem() {
  761.         return false;
  762.         /*
  763.          * List<IExternalEntity<Long>> allEe =
  764.          * EntityType.TRACK.getManager().getAllExternalEntities();
  765.          *
  766.          * if(allEe.isEmpty()) return false; else return true;
  767.          */}
  768.  
  769.     public static ArrayList<Long> getTargetList() {
  770.         return list_trackid;
  771.         /*
  772.          * if(IsTargetAvailableInSystem()){ List<IExternalEntity<Long>> allEe =
  773.          * EntityType.TRACK.getManager().getAllExternalEntities();
  774.          * for(IExternalEntity<Long> e: allEe){ DisplayTarget data =
  775.          * (DisplayTarget) e.getComposedDataObj(); long
  776.          * _id=data.getTrackNumber(); list_trackid.add(_id); } } >>>>>>> .r6046
  777.          * return list_trackid; <<<<<<< .mine /*
  778.          * if(IsTargetAvailableInSystem()){ List<IExternalEntity<Long>> allEe =
  779.          * EntityType.TRACK.getManager().getAllExternalEntities();
  780.          * for(IExternalEntity<Long> e: allEe){ DisplayTarget data =
  781.          * (DisplayTarget) e.getComposedDataObj(); long
  782.          * _id=data.getTrackNumber(); list_trackid.add(_id); } } return
  783.          * list_trackid;
  784.          */}
  785.  
  786.     public static void setInterfaceForBlighterCommand() {
  787.         for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  788.             String _name = i.getInterfaceName();
  789.             long id = i.getInterfaceId();
  790.             // System.out.println("name is " + _name);
  791.  
  792.             int template_type = i.getTemplateType();
  793.             // System.out.println("template_type is " + template_type);
  794.             if ((template_type == GlobalConstant.BLIGHTER_RADAR_IF))
  795.                 MessageSender.getInstance().setInterfaceId(id);
  796.         }
  797.     }
  798.  
  799.     public static boolean isConfiguredRADARExist() {
  800.         boolean _flag = false;
  801.         for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  802.             int template_type = i.getTemplateType();
  803.             // System.out.println("template_type is " + template_type);
  804.             if ((template_type == GlobalConstant.BLIGHTER_RADAR_IF) || (template_type == GlobalConstant.BFSR_ACES_IF)) {
  805.                 _flag = true;
  806.                 return _flag;
  807.             }
  808.         }
  809.         return _flag;
  810.  
  811.     }
  812.  
  813.     public static boolean isConfiguredCameraExist() {
  814.         boolean _flag = false;
  815.         if (!GlobalConstant.hm_camera_config.isEmpty()) {
  816.             _flag = true;
  817.             return _flag;
  818.         }
  819.         return _flag;
  820.  
  821.     }
  822.  
  823.     public static boolean isConfiguredUWSExist() {
  824.         boolean _flag = false;
  825.         for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  826.             int template_type = i.getTemplateType();
  827.             // System.out.println("template_type is " + template_type);
  828.             if ((template_type == GlobalConstant.UWS_IF)) {
  829.                 _flag = true;
  830.                 return _flag;
  831.             }
  832.         }
  833.         return _flag;
  834.  
  835.     }
  836.  
  837.     public static boolean isConfiguredGateExist() {
  838.         boolean _flag = false;
  839.         for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  840.             int template_type = i.getTemplateType();
  841.             // System.out.println("template_type is " + template_type);
  842.             if ((template_type == GlobalConstant.GAMS_IF)) {
  843.                 _flag = true;
  844.                 return _flag;
  845.             }
  846.         }
  847.         return _flag;
  848.  
  849.     }
  850.  
  851.     public static boolean isConfiguredBNHQExist() {
  852.         boolean _flag = false;
  853.         for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  854.             int template_type = i.getTemplateType();
  855.             // System.out.println("template_type is " + template_type);
  856.             if ((template_type == GlobalConstant.BN_HQIF)) {
  857.                 _flag = true;
  858.                 return _flag;
  859.             }
  860.         }
  861.         return _flag;
  862.  
  863.     }
  864.  
  865.     public static boolean isDeployedInterfacesExist() {
  866.         if (GlobalConstant.deployed_interfaces.isEmpty())
  867.             return false;
  868.         else
  869.             return true;
  870.  
  871.     }
  872.  
  873.     public static boolean isRADARDeployed(long id) {
  874.         boolean _flag = false;
  875.         if (GlobalConstant.deployed_interfaces.contains(id)) {
  876.             _flag = true;
  877.         }
  878.  
  879.         return _flag;
  880.  
  881.     }
  882.  
  883.     public static boolean isConfiguredFLExist() {
  884.         boolean _flag = false;
  885.         for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  886.             int template_type = i.getTemplateType();
  887.             // System.out.println("template_type is " + template_type);
  888.             if ((template_type == GlobalConstant.FLCS_IF)) {
  889.                 _flag = true;
  890.                 return _flag;
  891.             }
  892.         }
  893.         return _flag;
  894.  
  895.     }
  896.  
  897.     public static boolean isFLDeployed(long id) {
  898.         boolean _flag = false;
  899.         if (GlobalConstant.deployed_interfaces.contains(id)) {
  900.             _flag = true;
  901.         }
  902.  
  903.         return _flag;
  904.  
  905.     }
  906.  
  907.     public static boolean isConfiguredEOExist() {
  908.         boolean _flag = false;
  909.         for (Struct_Interface_Info i : GlobalConstant.hm.values()) {
  910.             int template_type = i.getTemplateType();
  911.             // System.out.println("template_type is " + template_type);
  912.             if ((template_type == GlobalConstant.EO_SENSOR_IF)) {
  913.                 _flag = true;
  914.                 return _flag;
  915.             }
  916.         }
  917.         return _flag;
  918.     }
  919.  
  920.     public static boolean isEODeployed(long id) {
  921.         boolean _flag = false;
  922.         if (GlobalConstant.deployed_interfaces.contains(id)) {
  923.             _flag = true;
  924.             return _flag;
  925.         }
  926.  
  927.         return _flag;
  928.  
  929.     }
  930.  
  931.     public static String LoadAudioFileForSystemAlarm(long alarmtype) {
  932.         // SOP ALARM 6 not included as suggested
  933.         String audio = "";
  934.  
  935.         if (alarmtype == 1) {
  936.             audio = "Alarms/Controller Shutdown.wav";
  937.         }
  938.  
  939.         else if (alarmtype == 2) {
  940.             audio = "Alarms/Maintenance.wav";
  941.         }
  942.  
  943.         else if (alarmtype == 3) {
  944.             audio = "Alarms/Tamper.wav";
  945.         }
  946.  
  947.         else if (alarmtype == 4) {
  948.             audio = "Alarms/Locator Fault.wav";
  949.         }
  950.  
  951.         else if (alarmtype == 5) {
  952.             audio = "Alarms/Communication Lost.wav";
  953.         }
  954.         // else if (alarmtype == 6) {
  955.         // alarm_Description = "SOP Alarm";
  956.         // }
  957.  
  958.         else if (alarmtype == 7) {
  959.             audio = "Alarms/System Error.wav";
  960.         } else if (alarmtype == 8) {
  961.             audio = "Alarms/Power Supply.wav";
  962.         }
  963.  
  964.         else {
  965.             // System.out.println("alarmtype" + alarmtype);
  966.             audio = "Alarms/Power Supply.wav";
  967.         }
  968.         return audio;
  969.  
  970.     }
  971.  
  972.     public static boolean getAOIExsisting() {
  973.         // System.out.println("Here the vale inital" + " " + ISAOIEXSISTING);
  974.         return ISAOIEXSISTING;
  975.     }
  976.  
  977.     public static void setAOIExsiting(boolean getAoi) {
  978.         // System.out.println("From message" + " " + ISAOIEXSISTING);
  979.         ISAOIEXSISTING = getAoi;
  980.     }
  981.  
  982.     public static boolean isRecording() {
  983.         return isRecording;
  984.     }
  985.  
  986.     public static void setRecording(boolean isRec) {
  987.         isRecording = isRec;
  988.     }
  989.  
  990.     // public void setSectorGeometry() {
  991.     // int startang = 10;
  992.     // if (listOfSectors != null) {
  993.     // ILcdPoint cenpoint = new TLcdLonLatPoint(this.getLongitude(),
  994.     // this.getLatitude());
  995.     // for (int i = 0; i < 18; i++) {
  996.     // TLcdLonLatArcBand arc = new TLcdLonLatArcBand(cenpoint, getMinRadius(),
  997.     // getMaxRadius(), 90 - startang, 10);
  998.     // listOfSectors.put(i, arc);
  999.     // startang += 10;
  1000.     // }
  1001.     // // System.out.println(listOfSectors.toString());
  1002.     // }
  1003.     // }
  1004.     //
  1005.     // public Map<Integer, ILcdShape> getGeometryofSectors(){
  1006.     // return listOfSectors;
  1007.     // }
  1008.  
  1009.     public static ArrayList<Long> RetreiveSharedInterfaceList(byte sharing_type, long _id) {
  1010.         // TODO Auto-generated method stub
  1011.         ArrayList<Long> _interface_shared_list = new ArrayList<Long>();
  1012.         for (String t : GlobalConstant.hm_Share_Unshare_Interfaces.keySet()) {
  1013.             // String _interfaceName_From_Key = t.substring(0, 5);
  1014.             // String _IDFromKey = t.substring(5, t.length() - 1);
  1015.             String _IDFromKey = t.substring(0, t.length() - 1);
  1016.             // System.out.println("_IDFromKey" + _IDFromKey);
  1017.             String _sharingTypeFromKey = t.substring(t.length() - 1);
  1018.             // System.out.println("_sharingTypeFromKey" + _sharingTypeFromKey);
  1019.             // String
  1020.             // key=GlobalConstant.getInterfaceName(_share_unshare_obj.getShareInterfaceId())
  1021.             // +
  1022.             // Integer.toString(_share_unshare_obj.getShareObjectId())+GlobalConstant.SHARE_TRACK
  1023.             // ;
  1024.             // System.out.println("_interfaceName_From_Key" +
  1025.             // _interfaceName_From_Key);
  1026.  
  1027.             // if ((Integer.parseInt(_sharingTypeFromKey) == sharing_type) &&
  1028.             // (Integer.parseInt(_IDFromKey) == _id))
  1029.             // _interface_shared_list.add(GlobalConstant.getInterfaceId(_interfaceName_From_Key));
  1030.             if ((Integer.parseInt(_sharingTypeFromKey) == sharing_type) && (Integer.parseInt(_IDFromKey) == _id))
  1031.                 for (Struct_Share_Unshare sharedTo : GlobalConstant.hm_Share_Unshare_Interfaces.get(t))
  1032.                     _interface_shared_list.add((long) sharedTo.getShareInterfaceId());
  1033.  
  1034.         }
  1035.  
  1036.         return _interface_shared_list;
  1037.     }
  1038.  
  1039.     public static ArrayList<Long> RetreiveSharedInterfaceListForUnsharing(byte sharing_type, byte _id) {
  1040.         ArrayList<Long> _interface_shared_list = new ArrayList<Long>();
  1041.         for (String t : GlobalConstant.hm_Share_Unshare_Interfaces.keySet()) {
  1042.             // String _interfaceName_From_Key = t.substring(0, 5);
  1043.             String _sharingTypeFromKey = t.substring(t.length() - 1);
  1044.             String _IDFromKey = t.substring(5, t.length() - 1);
  1045.             // System.out.println("_sharingTypeFromKey" + _sharingTypeFromKey);
  1046.             // String
  1047.             // key=GlobalConstant.getInterfaceName(_share_unshare_obj.getShareInterfaceId())
  1048.             // +
  1049.             // Integer.toString(_share_unshare_obj.getShareObjectId())+GlobalConstant.SHARE_TRACK
  1050.             // ;
  1051.             // System.out.println("_interfaceName_From_Key" +
  1052.             // _interfaceName_From_Key);
  1053.  
  1054.             // if ((Integer.parseInt(_sharingTypeFromKey) == sharing_type) &&
  1055.             // (Integer.parseInt(_IDFromKey) == _id))
  1056.             // _interface_shared_list.add(GlobalConstant.getInterfaceId(_interfaceName_From_Key));
  1057.  
  1058.         }
  1059.  
  1060.         return _interface_shared_list;
  1061.     }
  1062.  
  1063.     public static String RetreiveTimePositionRuleDesc(int t) {
  1064.         String _str = "";
  1065.         if (t == 1)
  1066.             _str = "IS INSIDE";
  1067.         else if (t == 2)
  1068.             _str = "IS APPROACHING";
  1069.         else if (t == 3)
  1070.             _str = "IS DEPARTING";
  1071.         else if (t == 4)
  1072.             _str = "IS LOITERING";
  1073.         else if (t == 5)
  1074.             _str = "CROSS COUNT";
  1075.         else
  1076.             _str = "WRONG VALUE";
  1077.         return _str;
  1078.     }
  1079.  
  1080.     public static void setUserInformation(String usrname, String usrpassword) {
  1081.         username = usrname;
  1082.         userpassword = usrpassword;
  1083.  
  1084.     }
  1085.  
  1086.     public static String getUserId() {
  1087.         return username;
  1088.  
  1089.     }
  1090.  
  1091.     public static String getUserPassword() {
  1092.         return userpassword;
  1093.  
  1094.     }
  1095.  
  1096.     public static void ClearAllLayers() {}
  1097.  
  1098.     public static void setTemplateId(short templateId) {
  1099.         templateid = templateId;
  1100.     }
  1101.  
  1102.     public static short getTemplateId() {
  1103.         return templateid;
  1104.     }
  1105. }
Add Comment
Please, Sign In to add comment