资源简介
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
相关资源
- 如何使用VC和OD调试OCX控件
- 计算机三级-网络技术-第4大题题库-共
- 雷柏v700s机械键盘驱动 v1.0.0.1 官方版
- weui手机商城模板在线
- BMA250手册word和PDF(博文配到资源)
- Delphi时钟助手源码,定时关机、提醒
- Cisco无线AP全部配置文件(AIR-1200系列
- 安卓手机PC端一键重启工具
- ManualIciMapping_v3.1
- 集客9341固件ap
- 遍历USB设备,获取USB序列号
- delphi源码-实现软件注册机
- Microservices_Designing_Deploying
-
Design for em
bedded Image Processing on FPG - GNU/Linux系统开发者需要从桌面突破
- Concurrency in Go(EarlyRelease) 无水印p
- cfx中ccl语言使用手册
- 单元测试一条龙1.50final
- 金丰300T级进冲床电气控制原理图1
- DSP实验(10次实验有详细步骤)
- HP Compaq 8200 Elite 系列商用台式机
- 2019年软考高级下半年信息系统项目管
- Assembly Language for x86 Processors (7th Ed
- Mule基础教程中文版
- 易语言凡哥记事本V1源码易语言凡哥记
- 易语言码表文本加解密模块源码
- DIR2病毒源代码(汇编语言编写)
- ADC0809的采样控制电路的实现.doc
- CRichEditView显示行号的代码
- STM8S代码例程
评论
共有 条评论