SUMO文档002:Notation

2.1在本文档中的符号(Notation)

2.1.1命令行

如果你遇到了类似情况:

netconvert--visum=MyVisumNet.inp --output-file=MySUMONet.net.xml

 

你应该知道这是一个命令行的调用。在一行的末尾也可以是“\”,忽视“\”和换行符。下面的语句和上面相同:

netconvert --visum=MyVisumNet.inp \
  --output-file=MySUMONet.net.xml

 

2.1.2应用程序选项

命令行选项名称通常是彩色的。他们的值< LIKE THIS >。(斜体加尖括号)

为了方面,我后面直接加粗代表了

2.1.3XML例子

XML元素和属性都显示为这样 Their values, if variable, <LIKE THIS>.

完整的XML文件的例子如下:

<myType>
   <myElem myAttr1="0" myAttr2="0.0"/>
   <myElem myAttr1="1" myAttr2="-500.0"/>
</myType>

 

2.1.4引用数据类型(这部分不翻译,自己看)

§  <BOOL>:a boolean value, use "t" or "true" and "f" or"false" for encoding

§  <INT>:an integer value, may be negative

§  <UINT>:an unsigned integer value, must be >=0

§  <FLOAT>:a floating point number

§  <TIME>:time, given in seconds; fractions are allowed, e.g. "12.1"

§  <STRING>:any string, but use ASCII-characters only

§  <ID>:a string which must not contain the following characters: '#'

Caution:
The list of not allowed characters is incomplete

§  <FILE> or <FILENAME>: the (relativeor absolute) path to a file; see also #Referenced File Types

§  <PATH>:a (a relative or absolute) path (usually to a folder)

§  <COLOR>:a quadruple of floats separated by ',' (<FLOAT>,<FLOAT>,<FLOAT>,<FLOAT>),which describe the red, green, blue, and alpha component ranging from 0.0 to1.0 (the alpha component is optional), alternatively the list may containintegers in the 0-255 range. Please note that the separator must be a comma andthere are no spaces allowed. The color may also be defined using a single stringwith a HTML color code or one ofthe basic colors ("red", "green", "blue","yellow", "cyan", "magenta", "black","white", "grey")

§  <2D-POSITION>:two floats separated by ',' (<FLOAT>,<FLOAT>), whichdescribe the x- and the y-offset, respectively. z is 0 implicitly

§  <3D-POSITION>:three floats separated by ',' (<FLOAT>,<FLOAT>,<FLOAT>),which describe the x- , y- and the z-offset, respectively

§  <POSITION-VECTOR>:A list of 2D- or 3D-Positions separate by ' '. I.e. (<2D-POSITION> <2D-POSITION>,<3D-POSITION>)

§  <2D-BOUNDING_BOX>:four floats separated by ',' (<FLOAT>,<FLOAT>,<FLOAT>,<FLOAT>),which describe x-minimum, y-minimum, x-maximum, and y-maximum

§  <PROJ_DEFINITION>:a string containing the projection definition as used by proj.4; please notethat you have to embed the definition string in quotes(这个不太清楚)

 2.1.4.1引用文件类型

§  <NETWORK_FILE>:a SUMO network file as built by NETGENERATE or NETCONVERT

§  <ROUTES_FILE>:a SUMO routes file as built by DUAROUTER or JTRROUTER or by hand

§  <TYPE_FILE>:a SUMO edge type file, built byhand or downloaded

§  <OSM_FILE>:a OpenStreetMap file as exportedfrom OpenStreetMap

 

这部分不翻译,只总结:提到四种文件类型,网络文件(NETWORK_FILE)用NETGENERATE或者NETCONVERT创建;路由文件(ROUTES_FILE)由DUAROUTER或者JTRROUTER创建;边或者街道文件(TYPE_FILE),手动创建或者网络下载;还有一种文件为OSM文件,主要是应用于OpenStreeMap。

2.1.5进一步计划

括号[]中的参数是可选项,括号<>则需要你插入合适的参数值。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 12
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值