郑州公交查询系统课题设计内容摘要:

/** 支松波 :郑州公交查询系统 15 * @param args */ public static void main(String[] args) { // TODO Autogenerated method stub (new Runnable() { public void run() { Line_Window thisClass = new Line_Window()。 ()。 (false)。 (false)。 } })。 } /** * This is the default constructor */ public Line_Window() { 支松波 :郑州公交查询系统 16 super()。 initialize()。 } /** * This method initializes this * * @return void */ private void initialize() { (getJContentPane())。 (公交线路查询 )。 (new Rectangle(0, 0, 307, 146))。 (new WindowAdapter() { public void windowClosing(WindowEvent e){ Main_Window main=new Main_Window()。 (null)。 (true)。 支松波 :郑州公交查询系统 17 } })。 } /** * This method initializes jContentPane * * @return */ private JPanel getJContentPane() { if (jContentPane == null) { jLabel2 = new JLabel()。 (new Rectangle(79, 79, 136, 18))。 ()。 ((eg:39。 1 路 39。 公交车输入 39。 139。 ))。 jLabel1 = new JLabel()。 (new Rectangle(16, 46, 65, 20))。 ()。 支松波 :郑州公交查询系统 18 (线路名称: )。 jLabel = new JLabel()。 (公交线路 )。 (new Font(宋体 , , 18))。 ()。 (new Rectangle(108, 9, 85, 29))。 jContentPane = new JPanel()。 (null)。 (jLabel, null)。 (jLabel1, null)。 (getJTextField(), null)。 (getJButton(), null)。 (jLabel2, null)。 } return jContentPane。 } } // @jve:declindex=0:visualconstraint=245,5 支松波 :郑州公交查询系统 19 测试用例 44 路公交车 功能模块 2 站点查询 活动图 界面 用户 查询 输出结果 不存在 支松波 :郑州公交查询系统 20 代码 package bus_1。 import。 import。 import。 import。 import。 import。 import。 import。 import。 import。 import。 public class Stop_Window extends JFrame { private static final long serialVersionUID = 1L。 private JPanel jContentPane = null。 private JButton jButton = null。 private JLabel jLabel = null。 private JLabel jLabel1 = null。 private JTextField jTextField = null。 private JLabel jLabel2 = null。 /** * This method initializes jButton * * @return */ private JButton getJButton() { if (jButton == null) { jButton = new JButton()。 (new Rectangle(217, 45, 63, 22))。 ()。 (搜索 )。 (new () { public void actionPerformed( e) { (false)。 支松波 :郑州公交查询系统 21 Main_Window main=new Main_Window()。 (null)。 (true)。 String string=()。 Select select=new Select()。 (string)。 } })。 } return jButton。 } /** * This method initializes jTextField * * @return */ private JTextField getJTextField() { if (jTextField == null) { jTextField = new JTextField()。 (new Rectangle(98, 45, 105, 22))。 } return jTextField。 } /** * @param args */ public static void main(String[] args) { // TODO Autogenerated method stub (new Runnable() { public void run() { Stop_Window thisClass = new Stop_Window()。 //()。 (false)。 (false)。 } })。 } /** * This is the default constructor */ public Stop_Window() { super()。 initialize()。 } /** * This method initializes this 支松波 :郑州公交查询系统 22 * * @return void */ private void initialize() { (getJContentPane())。 (公交站点查询 )。 (new Rectangle(0, 0, 307, 146))。 (new WindowAdapter() { public void windowClosing(WindowEvent e){ Main_Window main=new Main_Window()。 (null)。 (true)。 } })。 } /** * This method initializes jContentPane * * @return */ private JPanel getJContentPane() { if (jContentPane == null) { jLabel2 = new JLabel()。 (new Rectangle(98, 79, 130, 18))。 ()。 ((输入站点 eg:39。 火车站 39。 ))。 jLabel1 = new JLabel()。 (new Rectangle(28, 45, 70, 21))。 ()。 (站点名称: )。 jLabel = new JLabel()。 (new Rectangle(108, 11, 84, 25))。 ()。 (new Font(宋体 , , 18))。 (公交站点 )。 jContentPane = new JPanel()。 (null)。 (getJButton(), null)。 (jLabel, null)。 (jLabel1, null)。 (getJTextField(), null)。 (jLabel2, null)。 } return jContentPane。 } } // @jve:declindex=0:visualconstraint=164,9 支松波 :郑州公交查询系统 23 测试用例 火车站 支松波 :郑州公交查询系统 24 第 4 章 结束语 这次软件技术实验,我们小组做的是“公交查询系统”。 系统以整个郑州市区的公交路线为数据来源,实 现了对郑州市区公交系统的站带你换乘查询,公交线路查询、公交站点查询等功能。 提前我写这个程序时,如果多数据库进行操作,都是通过将数据库查询语句传递给 PHP 语言自带的函数对数据库进行操作,但这次程序设计,数据库存储了郑州市区的公交路线信息量大,且多次对数据库进行多次操作,所以执行效率需要重点考虑,由此我想到了存储过程在运行存储过程前,数据库已对其进行了语法和句法分析,并给出了优化执行方案。 这种以经编译好的过程可极大地改善 SQL server 语句的性能。 由于执行 SQL server 语句的大部分工作已经完成, 所以存储过程能以极快的速度执行。 只是这点,就让我从这次课程设计中受益匪浅。 通过这次课程设计,是我么加深了对数据库的理论的理解和数据库实现的方法的应用一级软件工程知识的理解。 掌握了数据库应用系统的设计和实现方法。 提高了数据库应用系统的设计水平,以及分析问题和解决实际问题的能力。 实验中我们进一步巩固了对数据模型, ER 图的设计与实现,视图、索引等概念的掌握,加深了对范式的理解,熟练了对SQL 语言的应用。 通过与指导老师的交流,接纳碍事的意见对系统惊醒了反复测试与修改,让其更加完善。 通过这个反复的过程,是我在关系 型数据库理论方面有了崭新的认识和深刻的体会,为以后的开发积累了更多的经验。 参考文献 【 1】数据库系统概论(第四版)》 王珊、萨师煊 高等教育出版社, . 【 2】《 SQL sever 2020 程序设计》 Gilmori 译者:朱涛江 人民邮电出版社 【 3】《公共交通线路网多条最短路径算法》 张国伍,钱大琳。 支松波 :郑州公交查询系统 25 附录 : 主要源程序 package bus_1。 import。 import。 import。 import。 import。 import。 import。 import。 import。 import。 public class Main_Window extends JFrame { private static final long serialVersionUID = 1L。 private JPanel jContentPane = null。 JButton jButton = null。 JButton jButton1 = null。 private JButton jButton2 = null。 private JLabel jLabel = null。 private JLabel jLabel1 = null。 private JComboBox jComboBox = null。 /** * This method initializes jButton * * @return */ private JButton getJButton() { if (jButton。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。