資源簡介
公交智能調度系統以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\.myme
?????文件????????255??2009-03-18?10:30??HPBM\.mystrutsdata
?????文件???????1715??2009-03-18?17:01??HPBM\.project
?????文件????????241??2013-04-28?08:53??HPBM\.settings\org.eclipse.core.resources.prefs
?????文件????????474??2013-04-28?08:28??HPBM\.springBeans
?????文件??????15699??2009-03-19?11:02??HPBM\src\applicationContext.xm
?????文件????????607??2009-03-18?10:55??HPBM\src\com\test\biz\HpBusBizInter.java
?????文件????????677??2009-03-18?10:55??HPBM\src\com\test\biz\HpBusCompanyBizInter.java
?????文件????????652??2009-03-18?10:55??HPBM\src\com\test\biz\HpBusMoneyBizInter.java
?????文件????????642??2009-03-18?10:55??HPBM\src\com\test\biz\HpBusNewsBizInter.java
?????文件????????635??2009-03-18?10:55??HPBM\src\com\test\biz\HpBusPadBizInter.java
?????文件????????816??2009-03-25?11:03??HPBM\src\com\test\biz\HpBusRouteBizInter.java
?????文件????????686??2009-03-20?10:07??HPBM\src\com\test\biz\HpBusSpotBizInter.java
?????文件????????642??2009-03-18?10:56??HPBM\src\com\test\biz\HpBusTypeBizInter.java
?????文件????????642??2009-03-18?10:56??HPBM\src\com\test\biz\HpManagerBizInter.java
?????文件????????697??2009-04-18?11:15??HPBM\src\com\test\biz\HpResortBizInter.java
?????文件????????728??2009-04-20?10:36??HPBM\src\com\test\biz\HpRouteBusTypeBizInter.java
?????文件????????662??2009-03-18?10:56??HPBM\src\com\test\biz\HpRouteTypeBizInter.java
?????文件????????701??2009-04-20?10:35??HPBM\src\com\test\biz\HpSpotRouteBizInter.java
?????文件????????692??2009-03-24?16:43??HPBM\src\com\test\biz\HpThingsBizInter.java
?????文件????????642??2009-03-18?10:57??HPBM\src\com\test\biz\HpVipUserBizInter.java
?????文件???????1294??2009-03-18?11:02??HPBM\src\com\test\biz\impl\HpBusBiz.java
?????文件???????1681??2009-03-18?11:04??HPBM\src\com\test\biz\impl\HpBusCompanyBiz.java
?????文件???????1612??2009-03-18?11:05??HPBM\src\com\test\biz\impl\HpBusMoneyBiz.java
?????文件???????1421??2009-03-18?11:07??HPBM\src\com\test\biz\impl\HpBusNewsBiz.java
?????文件???????1511??2009-03-18?11:09??HPBM\src\com\test\biz\impl\HpBusPadBiz.java
?????文件???????2151??2009-03-25?11:03??HPBM\src\com\test\biz\impl\HpBusRouteBiz.java
?????文件???????1715??2009-03-20?10:08??HPBM\src\com\test\biz\impl\HpBusSpotBiz.java
............此處省略1464個文件信息
評論
共有 條評論