Thomas Brinkhoff 基於路網的移動物件生成器的使用[第二版]
阿新 • • 發佈:2018-12-09
轉載自部落格園http://www.cnblogs.com/cmi-sh-love/p/6503275.html#toc_2
Thomas Brinkhoff 基於路網的移動物件生成器的使用
網站:http://iapg.jade-hs.de/personen/brinkhoff/generator/
大家可以下載它的Demo直接點選run.bat 執行,也可以下載Complete source Code 匯入eclipse執行。我這裡下載的是完整的原始碼。
下載後解壓然後import進eclipse
相關操作的說明


obj./begin[M]簡單來說就是定義了一開始t=0,時生成的移動物件數量,和(obj./begin[E])外部物體數量。以及obj./time[M]每個時間戳生成的移動物件數量和obj./time[E]外部物件。其中外部物體指某個區域的天氣狀況(或者其他因素),一個區域的天氣狀況會影響移動物件的速度,以及是否選擇改路徑移動。

相關檔案的說明
- 第一個是:properties.txt >這個是配置程式的檔案,裡面可以修改各種引數
-第二個是:地圖包
包括edge和node兩個壓縮檔案,例如oldenburgGen.edge.zip,oldenburgGen.node.zip
執行
匯入eclipse後執行時選擇DefaultDataGenerator-generator2
點選Run
其中maximum time那裡填入最大時間數,想生成100個時間片的紀錄就填100,max.speed div填10,50,250,數字越大,移動物件移動的速度越慢,全部填寫完成點選Compute進行生產資料。
生成的資料的說明
這是程式碼中對於資料的註釋
* @param action the action of the object
* @param id object id
* @param repNum report number
* @param objClass object class
* @param time time stamp
* @param x current x-coordinate
* @param y current y-coordinate
* @param speed current speed
* @param doneDist the distance since the last reporting
* @param nextNodeX x-coordinate of the next node
* @param nextNodeY y-coordinate of the next node
1.物體的狀態(是新點還是舊點或是消失點)
2.物體id ❤️
3.回報的編號
4.物體種類的id
5.時間戳 ❤️
6.x軸座標 ❤️
7.y軸座標 ❤️
8.當前速度
9.預期的下一個x軸座標 (用於做未來預測)
10.預期的下一個y軸座標。(用於做未來預測)