freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java基于rfid的景點導(dǎo)覽系統(tǒng)(doc畢業(yè)設(shè)計論文)-資料下載頁

2025-06-25 14:54本頁面
  

【正文】 ems += srcW。 temd += desW。 if (tems distance) { tems = distance。 sb++。 } if (temd distance) { temd = distance。 db++。 } } //生成放大縮小后圖形像素 buf Image desImg = (desW,desH)。 Graphics gs= ()。 int dx = 0。 int oldy = 1。 int[] srcBuf = new int[srcW]。 int[] desBuf = new int[desW]。 int[] lastRow = new int[desW]。 for (int i = 0。 i desH。 i++) { if (oldy == tabY[i]) { //當(dāng)上一行與即將要生成的這一行相同時 ,就直接 copy (lastRow, 0, desBuf, 0, desW)。 } else {//插值算出新圖片的一行 dx = tabY[i]。 (srcBuf, 0, srcW, 0, dx, srcW, 1)。 //插值一行,就從原圖中取一行數(shù)據(jù) for (int j = 0。 j desW。 j++) { desBuf[j] = srcBuf[tabX[j]]。 } } (desBuf, 0, lastRow, 0, desW)。 oldy = tabY[i]。 (desBuf, 0, desW,0,i, desW, 1, false)。 } return desImg。 }}地圖漫游功能:可以對景點進行上下的查看。本功能只表示了對各景點的上下移動。 (原圖) (下移) (上移)圖 36 地圖漫游// 地圖漫游代碼protected void keyPressed(int key) {//按鍵觸發(fā)事件switch (getGameAction(key)) {case UP:s = up。break。case DOWN:s = down。break。case LEFT:s = left。break。case RIGHT:s = right。break。default:break。}repaint()。}//畫圖方法protected void paint(Graphics g) {(0xFFFFFF)。(0, 0, getWidth(), getHeight())。if (s == ) {} else if (s == up) {count 。if(count==1){count =16。}currentx = point[count][0]。currenty = point[count][1]。(temp)。if(temp0){currenty =currenty +(currenty/(20+ temp))。currentx =currentx +(currentx/(20+ temp))。}else if(temp0){currenty =currenty (currenty/(20+ temp))。currentx =currentx (currentx/(20+ temp))。}} else if (s == down) {count ++。if(count==17){count =0。}currentx = point[count][0]。currenty = point[count][1]。if(temp0){currenty =currenty +(currenty/(20+ temp))。currentx =currentx +(currentx/(20+ temp))。}else if(temp0){currenty =currenty (currenty/(20+ temp))。currentx =currentx (currentx/(20+ temp))。}} else if (s == right) {currenty =currenty +(currenty/(20+ temp))。currentx =currentx +(currentx/(20+ temp))。desH = desH + ()/20。desW =desW + ()/20。temp++。} else if (s == left) {// currentx=20。currenty =currenty (currenty/(20+ temp))。currentx =currentx (currentx/(20+ temp))。desH = desH ()/20。desW =desW ()/20。temp。} else { }(ZoomImage(image,desW,desH), getWidth()/2currentx, getHeight()/2 currenty, |)。(0x112121)。(getWidth()/2, getHeight()/2, 10, 10)。} 行程規(guī)劃功能在本系統(tǒng)中提供了一種可以根據(jù)當(dāng)前景點人數(shù),以及人們的喜好程度來動態(tài)的為游客設(shè)計路線,也可以根據(jù)游客喜歡的類別來查詢相應(yīng)的路線。本系統(tǒng)中游客所訪問過的景點是隨機的,并不是當(dāng)前Id真正游覽的結(jié)果,由于系統(tǒng)無法進行大數(shù)據(jù)量的測試試驗,只能對游客過多的景點進行模擬,既隨機選擇,然后根據(jù)游客游覽過的景點和景點人數(shù)較多的景點,位游客設(shè)計出一個比較適合游客的路線。供游客選擇。本系統(tǒng)也可以根據(jù)景點的類別來選擇路線。本功能的最短路路徑的算法是:將所有景點出去已經(jīng)訪問過的和景點人數(shù)多的,然后從起始點開始找一個距離最近的點,這個點為下一個起始點,把兩點之間的距離設(shè)為無窮大,再從當(dāng)前起始點開始繼續(xù)找下一個起始點,當(dāng)全部點都變?yōu)槠鹗键c的時候,算法結(jié)束。這時的起始點的順序即為最短路徑。 (但是,這種算法有可能導(dǎo)致無解。 )如圖37所示: 圖 37 行程規(guī)劃 旅游黃頁功能本功能主要是針對景點的服務(wù)設(shè)施的,提供了最近的設(shè)施的位置,主要是通過查詢數(shù)據(jù)庫來找出最近的設(shè)施。本功能根據(jù)選擇的設(shè)施的名稱,將設(shè)施的名稱傳送到服務(wù)器端,通過服務(wù)器端查詢數(shù)據(jù)庫,找出離當(dāng)前景點最短距離的設(shè)施位置,返回信息到客戶端,客戶端將當(dāng)前位置和設(shè)施位置標(biāo)注在景點圖片上。如圖 38 所示:圖 38 旅游黃頁 景點介紹功能本功能主要是對相關(guān)景點進行文字,圖片,聲音和視頻的介紹??蛻舳溯斎胂胍榭吹木包c代號,發(fā)送到服務(wù)器上,服務(wù)器返回景點的相關(guān)信息,然后客戶端根據(jù)景點的信息決定如何顯示相應(yīng)景點的圖文聲像的信息。本功能將文字和圖片、位置、聲音、視頻用一個 List 來顯示,當(dāng)選擇List 的一項時,程序會根據(jù)選擇 List 的 Index 來確定選擇了什么服務(wù),然后根據(jù)服務(wù)器所返回來的信息來在模擬器上顯示相應(yīng)的信息。如圖 39 所示:(地圖展示) (景點詳細信息) (視頻播放)圖 39 景點介紹// 本地視頻播方法public void areaplay(String url) {repaint()。try {defplayer()。// 在創(chuàng)建新對象之前先釋放資源InputStream ins = getClass().getResourceAsStream(/+url )。player = (ins, video/mpeg)。(this)。()。 // 準(zhǔn)備播放vc2 = (VideoControl)(VideoControl)。if (vc2 != null) {(, this)。// 獲取視頻的原始大小int frameW = ()。int frameH = ()。if (frameW videoW) // 計算視頻屏幕在手機屏幕上的坐標(biāo)frameW = videoW。if (frameH videoH)frameH = videoH。int frameX = (videoW frameW) / 2 + VB_W。int frameY = (videoH frameH) / 2 + VB_H。// 設(shè)置視頻屏幕坐標(biāo),使視頻在手機屏幕的中間顯示(frameX, frameY)。// 設(shè)置視頻屏幕大小(frameW, frameH)。(true)。(AStopCmd)。(AExitCmd)。(this)。}()。 // 使player對象進入PREFETCH狀態(tài)// 獲取視頻時長,用于在視頻播放時顯示try {duration = ()。} catch (Exception err9) {reset()。()。 // 播放視頻} catch (Exception err10) {reset()。}}// 將long 型的視頻時間轉(zhuǎn)換為字符串格式private String time2String(long time) {time = time / 1000000。String strTime = + (time % 10)。time = time / 10。strTime = (time % 6) + strTime。time = time / 6。strTime = (time % 10) + : + strTime。time = time / 10。strTime = (time % 6) + strTime。time = time / 6。return strTime。}//聲音播放代碼public class Play {private Player player = null。public Play( MainMid p ,int i){InputStream is = ().getResourceAsStream(/audio/+ (i)+.wav)。try {player = (is,audio/xwav)。} catch (IOException e) {()。} catch (MediaException e) {()。}}public void play(){if(player!=null){try {()。} catch (MediaException e) {()。}}}} 隨身貼士功能本功能主要是介紹天氣和旅游人數(shù),提醒旅客注意。隨身貼士功能的相關(guān)的信息是連接服務(wù)器,由服務(wù)器端管理員對天氣,客流量進行統(tǒng)計預(yù)算而得出的結(jié)論,它由管理員每天定時更新,當(dāng)客戶選擇了這一項時,客戶端連接服務(wù)器將信息下載到模擬器上。如下圖所示。圖 310 隨身貼士 服務(wù)器功能實現(xiàn) 服務(wù)器訪問數(shù)據(jù)庫數(shù)據(jù)數(shù)據(jù)是本系統(tǒng)的核心部分之一,j2ee 提供了訪問數(shù)據(jù)庫的相應(yīng)方法。常用的訪問數(shù)據(jù)庫的方法有三個,查詢、更新、和關(guān)閉連接。//訪問數(shù)據(jù)庫代碼public int update(String sql) {int rows = 0。try {(Driver)。conn = (Url,sa, )。stat = ()。rows = (sql)。} catch (ClassNotFoundException e) {()。} catch (SQLException e) {()。}return rows。}public ResultSet query(String sql) {try {(Driver)。conn = (Url,sa, )。stat = ()。rs = (sql)。} catch (ClassNotFoundException e) {
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1