资源简介
PSO_path_planning-master.zip
代码片段和文件信息
package psoPathPlan;
import java.awt.BorderLayout;
import java.awt.Choice;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.util.Arrays;
import java.util.logging.Logger;
import javax.swing.JButton;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
public class MyAppUI implements ActionListener{
private Logger log = Logger.getLogger(MyAppUI.class.getName());
private Jframe frame = null;
private JButton btnStart = null;
private JButton btnStop = null;
// private JButton btnPause = null;
// private JButton btnContinue = null;
private Choice mapOption = null;
private JTextField setParticle_Num = null;
private JTextField setIteration =null;
private JPanel mainPanel = null;
private MyCanvas myCanvas = null;
private MyCanvas myCanvas2 = null;
private Thread threadCanvas =null;
private Thread threadCanvas2 =null;
private String status;
private int particle_num=0 iteration=0 mapNum=0;
public Path pa;
public TSP tsp;
public MyAppUI() {
log.info(“App Started.“);
initGUI();
}
private void initGUI(){
frame = new Jframe();
frame.settitle(“MyAppUI“);
frame.setSize(800 500);
frame.setResizable(true);
frame.setDefaultCloseOperation(Jframe.EXIT_ON_CLOSE);
frame.setLayout(new BorderLayout());
frame.add(getMainPanel()BorderLayout.NORTH);
frame.setVisible(true);
}
public JPanel getMainPanel(){
mainPanel = new JPanel();
mainPanel.setBackground(Color.gray);
mainPanel.setLayout(new FlowLayout());
//
// mapOption = new Choice();
// mapOption.addItem(“MapOne“);
// mapOption.addItem(“MapTwo“);
// mapOption.addItem(“MapThree“);
// mapNum = 1;
// mapOption.addItemListener(
// new ItemListener() {
// public void itemStateChanged(ItemEvent e) {
// String arg = mapOption.getSelectedItem();
// System.out.println(“got“);
// if (“MapOne“.equals(arg)) {
// mapNum =1;
// System.out.println(“set1“);
// } else if (“MapTwo“.equals(arg)) {
// mapNum =2;
// System.out.println(“set2“);
// }else if(“MapThree“.equals(arg)){
// mapNum =3;
// System.out.println(“set3“);
// }
// }
// }
// );
setIteration = new JTextField(“500“5);
//iteration = Integer.parseInt(setIteration.getText());
setParticle_Num = new JTextField(“50“5);
//particle_num = Integer.parseInt(setParticle_Num.getText());
btnStart = new JButton(“Start“);
btnStart.addActionListener(this);
// btnContinue = new JButton(“Continue“);
// btnContinue.addActionListener(this);
btnStop = new JButton(“Stop“);
btnSt
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-04-29 03:51 PSO_path_planning-master\
文件 5725 2017-04-29 03:51 PSO_path_planning-master\MyAppUI.java
文件 4628 2017-04-29 03:51 PSO_path_planning-master\MyCanvas.java
文件 2902 2017-04-29 03:51 PSO_path_planning-master\Particle.java
文件 4097 2017-04-29 03:51 PSO_path_planning-master\Path.java
文件 2963 2017-04-29 03:51 PSO_path_planning-master\SO.java
文件 6808 2017-04-29 03:51 PSO_path_planning-master\TSP.java
相关资源
- u011803118_6003703.xls
- QQ盗号源码.e
- arcgisforjs自定义鼠标样式.zip
- 全套机器学习深度学习——链接.txt
- 老虎微信淘宝客v5.99.46代理2.99.3.zip
- DDos.rar265452
- 7qds8n.rar
- u011541897_7733925.zip
- vi(1)
- 将QT界面做成dll在qt其他程序中调用
- 视觉SLAM十四讲全集视频链接视频百度
- missionplanner所有飞行模式中文参数调参
- abfd40c18b8069794f8a4703797eaea9.rar
- Vue深入浅出.ppt
- CorelDRAW2019免登陆补丁.rar
- rar(16)
- a1acf4e820b492d7f9d7c47636ddf3c5.txt
- IP攻击器DDOS源码.e
- 1060c9f10b1b71eff4a21993448893ed.txt
- DigitalVisualFortran5.0.txt
- 6dee0ee245238208e8ef094fe7a6db13.docx
- 71c7f9eea20bfdeb24319c13f0b52703.rar
- 改进型JAKES模型在OFDM系统中的仿真.
- 8f8c313c51b9106c29d322b46802692f.7z
- e2c105e93aaafb1f8f2a5004bbea3e3b.rar
- b7bc79d087b2d734fb41e951f0b7454e.rar
- cbc970483af4c418facf4389b5cb4149.rar
- 99秒跑马表.doc
- DS1302_8位数码管_仿真.zip
- 国六诊断服务说明.docx
评论
共有 条评论