-
大小: 23.98MB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2023-07-23
- 語言: 其他
- 標(biāo)簽: 公交調(diào)度??
資源簡介
公交智能調(diào)度系統(tǒng)以GIS電子地圖、GPS衛(wèi)星定位、GPRS/CDMA移動通訊等技術(shù)為基礎(chǔ),通過實時采集公交運(yùn)營車輛的位置和狀態(tài)等信息,結(jié)合公交企業(yè)車輛運(yùn)營計劃的自動編排與執(zhí)行、實現(xiàn)車輛運(yùn)行狀態(tài)的實時可視監(jiān)控和運(yùn)營線路車輛的實時調(diào)度指揮,為公交企業(yè)的運(yùn)調(diào)管理提供精確的數(shù)字化管理和考核手段,提高公交企業(yè)的運(yùn)營效益和服務(wù)水平。
A系統(tǒng)功能
公交線路和站點(diǎn)信息的設(shè)計、生成與管理
線路運(yùn)營調(diào)度計劃的設(shè)計、生成與管理
車輛與司機(jī)排班計劃的設(shè)計、生成與管理
車輛GPS衛(wèi)星定位實時跟蹤與監(jiān)控
代碼片段和文件信息
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個文件信息
評論
共有 條評論