开源公交调度系统


公交智能调度系统以GIS电子地图、GPS卫星定位、GPRS/CDMA移动通讯等技术为基础,通过实时采集公交运营车辆的位置和状态等信息,结合公交企业车辆运营计划的自动编排与执行、实现车辆运行状态的实时可视监控和运营线路车辆的实时调度指挥,为公交企业的运调管理提供精确的数字化管理和考核手段,提高公交企业的运营效益和服务水平。   A系统功能   公交线路和站点信息的设计、生成与管理   线路运营调度计划的设计、生成与管理   车辆与司机排班计划的设计、生成与管理   车辆GPS卫星定位实时跟踪与监控
资源截图
代码片段和文件信息
package com.test;

import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.cfg.Configuration;

/**
 * Configures and provides access to Hibernate sessions tied to the
 * current thread of execution.  Follows the Thread Local Session
 * pattern see {@link http://hibernate.org/42.html }.
 */
public class HibernateSessionFactory {

    /** 
     * Location of hibernate.cfg.xml file.
     * Location should be on the classpath as Hibernate uses  
     * #resourceAsStream style lookup for its configuration file. 
     * The default classpath location of the hibernate config file is 
     * in the default package. Use #setConfigFile() to update 
     * the location of the configuration file for the current session.   
     */
    private static String CONFIG_FILE_LOCATION = “/hibernate.cfg.xml“;
private static final ThreadLocal threadLocal = new ThreadLocal();
    private  static Configuration configuration = new Configuration();
    private static org.hibernate.SessionFactory sessionFactory;
    private static String configFile = CONFIG_FILE_LOCATION;

static {
     try {
configuration.configure(configFile);
sessionFactory = configuration.buildSessionFactory();
} catch (Exception e) {
System.err
.println(“%%%% Error Creating SessionFactory %%%%“);
e.printStackTrace();
}
    }
    private HibernateSessionFactory() {
    }

/**
     * Returns the ThreadLocal Session instance.  Lazy initialize
     * the SessionFactory if needed.
     *
     *  @return Session
     *  @throws HibernateException
     */
    public static Session getSession() throws HibernateException {
        Session session = (Session) threadLocal.get();

if (session == null || !session.isOpen()) {
if (sessionFactory == null) {
rebuildSessionFactory();
}
session = (sessionFactory != null) ? sessionFactory.openSession()
: null;
threadLocal.set(session);
}

        return session;
    }

/**
     *  Rebuild hibernate session factory
     *
     */
public static void rebuildSessionFactory() {
try {
configuration.configure(configFile);
sessionFactory = configuration.buildSessionFactory();
} catch (Exception e) {
System.err
.println(“%%%% Error Creating SessionFactory %%%%“);
e.printStackTrace();
}
}

/**
     *  Close the single hibernate session instance.
     *
     *  @throws HibernateException
     */
    public static void closeSession() throws HibernateException {
        Session session = (Session) threadLocal.get();
        threadLocal.set(null);

        if (session != null) {
            session.close();
        }
    }

/**
     *  return session factory
     *
     */
public static org.hibernate.SessionFactory getSessionFactory() {
return sessionFactory;
}

/**
     *  return session factory
     *
     * session factory will be r

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       6780  2013-04-28 08:28  HPBM.classpath

     文件        492  2009-04-20 10:19  HPBM.myhibernatedata

     文件        285  2013-04-28 08:28  HPBM.mymetadata

     文件        255  2009-03-18 10:30  HPBM.mystrutsdata

     文件       1715  2009-03-18 17:01  HPBM.project

     文件        241  2013-04-28 08:53  HPBM.settingsorg.eclipse.core.resources.prefs

     文件        474  2013-04-28 08:28  HPBM.springBeans

     文件      15699  2009-03-19 11:02  HPBMsrcapplicationContext.xml

     文件        607  2009-03-18 10:55  HPBMsrccom estizHpBusBizInter.java

     文件        677  2009-03-18 10:55  HPBMsrccom estizHpBusCompanyBizInter.java

     文件        652  2009-03-18 10:55  HPBMsrccom estizHpBusMoneyBizInter.java

     文件        642  2009-03-18 10:55  HPBMsrccom estizHpBusNewsBizInter.java

     文件        635  2009-03-18 10:55  HPBMsrccom estizHpBusPadBizInter.java

     文件        816  2009-03-25 11:03  HPBMsrccom estizHpBusRouteBizInter.java

     文件        686  2009-03-20 10:07  HPBMsrccom estizHpBusSpotBizInter.java

     文件        642  2009-03-18 10:56  HPBMsrccom estizHpBusTypeBizInter.java

     文件        642  2009-03-18 10:56  HPBMsrccom estizHpManagerBizInter.java

     文件        697  2009-04-18 11:15  HPBMsrccom estizHpResortBizInter.java

     文件        728  2009-04-20 10:36  HPBMsrccom estizHpRouteBusTypeBizInter.java

     文件        662  2009-03-18 10:56  HPBMsrccom estizHpRouteTypeBizInter.java

     文件        701  2009-04-20 10:35  HPBMsrccom estizHpSpotRouteBizInter.java

     文件        692  2009-03-24 16:43  HPBMsrccom estizHpThingsBizInter.java

     文件        642  2009-03-18 10:57  HPBMsrccom estizHpVipUserBizInter.java

     文件       1294  2009-03-18 11:02  HPBMsrccom estizimplHpBusBiz.java

     文件       1681  2009-03-18 11:04  HPBMsrccom estizimplHpBusCompanyBiz.java

     文件       1612  2009-03-18 11:05  HPBMsrccom estizimplHpBusMoneyBiz.java

     文件       1421  2009-03-18 11:07  HPBMsrccom estizimplHpBusNewsBiz.java

     文件       1511  2009-03-18 11:09  HPBMsrccom estizimplHpBusPadBiz.java

     文件       2151  2009-03-25 11:03  HPBMsrccom estizimplHpBusRouteBiz.java

     文件       1715  2009-03-20 10:08  HPBMsrccom estizimplHpBusSpotBiz.java

............此处省略1464个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)