-
大小: 155KB文件类型: .zip金币: 2下载: 1 次发布日期: 2021-05-22
- 语言: 其他
- 标签: CanuMobiSim vanet
资源简介
VanetMobiSim是在CanuMobiSim的基础上实现而来,在VanetMobiSim安装使用过程中,需要安装CanuMobiSim
代码片段和文件信息
package de.uni_stuttgart.informatik.canu.awmlreader;
/**
* title: AWML Reader
* Description:
* Copyright: Copyright (c) 2003
* Company: University of Stuttgart
* @author Illya Stepanov
* @version 1.1
*/
import javax.xml.parsers.*;
import geotransform.coords.*;
import geotransform.transforms.*;
import de.uni_stuttgart.informatik.canu.mobisim.core.*;
import de.uni_stuttgart.informatik.canu.mobisim.notifications.*;
import de.uni_stuttgart.informatik.canu.spatialmodel.core.*;
import de.uni_stuttgart.informatik.canu.spatialmodel.geometry.*;
/**
* This class reads geographic data in AWML format.
*
* @author Illya Stepanov
*/
public class AWMLReader extends ExtensionModule
{
/**
* Source stream
*/
protected String fileSource;
/**
* Spatial Model
*/
protected SpatialModel spatialModel;
/**
* Spatial Model elements loaded
*/
protected java.util.ArrayList elements = new java.util.ArrayList();
/**
* Min x-coordinate value
*/
protected double min_x = Double.MAX_VALUE;
/**
* Min y-coordinate value
*/
protected double min_y = Double.MAX_VALUE;
/**
* Max x-coordinate value
*/
protected double max_x = Double.MIN_VALUE;
/**
* Max y-coordinate value
*/
protected double max_y = Double.MIN_VALUE;
/**
* Min lat-coordinate value
*/
protected double min_lat = Double.MAX_VALUE;
/**
* Min lon-coordinate value
*/
protected double min_lon = Double.MAX_VALUE;
/**
* Max lat-coordinate value
*/
protected double max_lat = Double.MIN_VALUE;
/**
* Max lon-coordinate value
*/
protected double max_lon = Double.MIN_VALUE;
/**
* Clipping Region
*/
protected Polygon clipArea;
/**
* Constructor
*/
public AWMLReader()
{
super(“AWMLReader“);
}
/**
* Returns the module‘s description.
*
* @return extension module‘s description
*/
public String getDescription()
{
return “AWML Reader module“;
}
/**
* Executes the extension.
*
* The method is called on every simulation timestep.
* @return 0 - the module should be executed on next timesteps
* -1 - the module should not be executed on further timesteps and should be removed from the extensions‘ list
*/
public int act()
{
return -1;
}
/**
* Creates geometry elements from GML-based textual description.
*
* @return array of geometry elements
*/
protected java.util.ArrayList processGeometry(String nexusGmlString) throws Exception
{
java.util.ArrayList res = new java.util.ArrayList();
Class class_instance = null;
if (ne
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2005-05-23 15:39 src\AWMLReader\
文件 505 2004-02-20 21:06 src\AWMLReader\.classpath
文件 455 2003-05-08 11:42 src\AWMLReader\.project
目录 0 2005-05-23 15:39 src\AWMLReader\de\
目录 0 2005-05-23 15:39 src\AWMLReader\de\uni_stuttgart\
目录 0 2005-05-23 15:39 src\AWMLReader\de\uni_stuttgart\informatik\
目录 0 2005-05-23 15:39 src\AWMLReader\de\uni_stuttgart\informatik\canu\
目录 0 2005-05-23 15:39 src\AWMLReader\de\uni_stuttgart\informatik\canu\awmlreader\
文件 16658 2004-10-11 15:14 src\AWMLReader\de\uni_stuttgart\informatik\canu\awmlreader\AWMLReader.java
目录 0 2005-05-23 15:39 src\CanuMobiSim\
文件 397 2003-05-08 11:43 src\CanuMobiSim\.classpath
文件 422 2003-05-08 11:43 src\CanuMobiSim\.project
文件 106 2004-03-01 13:22 src\CanuMobiSim\CanuMobiSim.mf
目录 0 2005-05-23 15:39 src\CanuMobiSim\de\
目录 0 2005-05-23 15:39 src\CanuMobiSim\de\uni_stuttgart\
目录 0 2005-05-23 15:39 src\CanuMobiSim\de\uni_stuttgart\informatik\
目录 0 2005-05-23 15:39 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\
目录 0 2005-05-23 15:39 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\
目录 0 2005-05-23 15:39 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\core\
文件 3936 2004-07-02 14:17 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\core\Extendableob
文件 2970 2004-02-29 22:32 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\core\ExtensionModule.java
文件 3858 2004-03-02 13:46 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\core\Node.java
文件 1146 2004-02-24 20:57 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\core\Notification.java
文件 572 2003-11-27 12:38 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\core\NotificationListener.java
文件 8212 2004-03-02 13:46 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\core\Position3D.java
文件 12163 2004-10-18 12:04 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\core\Universe.java
文件 6407 2003-05-08 11:43 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\core\Vector3D.java
文件 630 2004-02-24 20:57 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\core\xm
目录 0 2005-05-23 15:39 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\extensions\
文件 2275 2004-02-29 22:32 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\extensions\DebugOutput.java
文件 4018 2004-02-29 22:32 src\CanuMobiSim\de\uni_stuttgart\informatik\canu\mobisim\extensions\GlomosimOutput.java
............此处省略141个文件信息
评论
共有 条评论