在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → VISSIM的COM使用说明书

VISSIM的COM使用说明书

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:1.20M
  • 下载次数:4
  • 浏览次数:393
  • 发布时间:2021-01-12
  • 实例类别:一般编程问题
  • 发 布 人:好学IT男
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
VISSIM4.3的com接口使用说明书!
Table of contents 1 Introduction 9 1.1 Introductory EXample 1.2 License and Registration 1.3 Instances 14 1.4 Conventions 15 object Model 2.1 Model overvie 18 2.2 Vissim 2.3 Net 26 2.4 Simulation 30 2.5 Dynamicassignment 39 2.6 Graphic 43 2.7 Presentation 46 2.8 Evaluation 48 2.9 Links 2.10 Link 2.11 Nodes 2.12 Node 2.13 ParkingLots 2. 14 ParkingLot 2. 15 Paths 556666777 3925793 2.16 Path 2. 17 DrivingBehaviorParSets 5 2.18 DrivingBehaviorPar Set 2. 19 TrafficCompositions 79 2.20 Traffic Composition 81 2.21 Vehiclelnputs 84 2.22 VehicleInput 2.23∨ehic|es 88 2.24∨ ehicle 94 2.25 Routing Decisions VISSIM.30-00 PTVAG 2007 Table of contents 2.26 Routing Decision 102 2.27 Routes 106 2.28 Route 109 2.29 Desired Speed Decisions 112 2.30 Desired Speed Decision 114 2.31 ReducedSpeedAreas 117 2.32 ReducedSpeedArea 119 2.33 Stop Signs 122 2.34 Stop Sign 124 2.35 StaticObjects 127 2.36 Staticobject 130 2.37 SignalControllers 132 2.38 SignalController 134 2. 39 Detectors 137 2.40 Detector 139 2. 41 SignalGroups 142 2.42 SignalGroup 144 2.43 SignalHeads 147 2.44 SignalHead 149 2.45 PTCalling points 151 2.46 Transitlines 153 2. 47 Transitline 155 2.48 Transitstops 158 2.49 Transitstop 160 2.50 DataCollections 162 2.51 Data collection 165 2.52 Queue Counters 169 2.53 Queue Counter 171 2.54 TravelTimes 174 2.55 TravelTime 176 2.56 Delays 179 2.57 Delay 181 2.58 LinkEvaluation 184 2.59 Data Collection Evaluation 187 2.60 Queue CounterEvaluation 189 2. 61 TravelTime Evaluation 191 V|SS|M4.30-00@ PTVAG2007 Table of contents 2.62 Delay evaluation 193 2.63 Node evaluation 195 2. 64 World Point 197 3 COM Access Using visual Basic 199 3.1 Creation of a visual basic client 200 3.2 Collections(Different Ways to Enumerate) 202 3.3 Arra 203 3.4 Error handling 204 3.5 A Visual Basic client example 205 3.6 Advanced lssues using visual basic 206 4 COM Access Using Visual C++ 209 4.1 Creation of a vc++ client 210 4.2 Collections(Different Ways to Enumerate) 212 4.3 ArraYs 213 4.4 Error handling 214 4.5 A Visual C++ Client Example 215 5 COM Access with NeT 217 5.1 Creation of a client Using visual studio NEt 218 5.2 Arrays 221 5.3 Events 222 Error Handling 223 6 COM Access Using Java 225 6. 1 Creation of a COM Wrapper 226 6.2 Creation of a java client 227 7 COM Remote Access 229 8 Annexes 231 8. 1 Error Messages 232 8.2 Warning Messages 238 8.3Ti ips and Hints 239 8.4 Registry 240 COM Interface Manual PtV ag 2007 Introduction VISSIM can be applied as a powerful tool in analysis of a huge variety of transportation problems. Occasionally projects will require extensive pre-or post-processing or numerous scenarios to be investigated. For these cases VISSiM can be run from within other applications serving as a toolbox for transportation planning algorithms. Access to model data and simulations is provided through a COM interface, which allows VIsSIM to work as an Automation Server and to export the objects, methods and properties described in this document. The VIsSIM COM interface supports Microsoft Automation, so you can use any of the RAd(Rapid Application Development tools ranging from scripting languages like Visual Basic Scrip or Java script to programming environments like visual C++ or Visual J++ The examples presented in this manual are mainly in visual Basic, see page 199 for a little introduction. You will also find a short introduction on how to use it with Visual C++ on page 209 An introductory Visual Basic example will illustrate the flexibility of this approach. Assume that we want to run several simulations with different random seeds and get their respective link evaluations. You can use Excel and VBa (Visual Basic for Applications) to load the network, set the different random seeds and start the process. For example, if you want to use the network fixed time. inp"and to run four simulations with the random seeds 10, 20, 30 and 42 you can edit the following Excel sheet random seed simulation fille 10 G: \PTVDATAIFIXED TIMEINP 30 42 You can also insert a button "START(from the toolbox)to link with the Visual Basic code presented Start at the end of this section To get the link evaluations by running the Excel macro you have to create a SAK file within the same directory beforehand. You may use the VISSIM Link Evaluation Dialog(or the LinkEvaluation interface)for this purpose VISSIM.30-00 PTVAG 2007 9 1 Introduction B Link Evaluation Configuration Layout of column Parameter select 1: Simulation time Density amber Emissions〔 evaporation)H En uhti:99999 Emissions ntery Emission念NMH Emission s mmog Emissions particulates Emissions sa2 Fuel Consumption ehicle clas AI vehicle Type 回 Per Lane D VISUM Export(network link attributes) □ⅥsuM9 Format〔 else suM8 Format □ Datab示8 Table name: VISSIM LINK EV OK[Cancel It is also necessary to check the box for the link evaluations in the Evaluations> Files Dialog and to save the options in a *. INI file, for example LINK EVAL.INI With save as. from the view menu V|SS|M4.30-00@ PTVAG2007 Introductory EXample Introductory Example We will now present the Visual Basic code that will run four simulations, accessing the Excel sheet to get the network file name and the respective random seeds. The code is defined in a procedure called Random seed2vissiM that must be called from the on click"command of the STarT button in the Excel sheet. The lines starting with an apostrophe mark()are comments that explain the code lines or parts SUB Random Seed2VISSIM( Declare VISSIM COM types for a Vissim and a Simulation object DIM Simulation AS Simmlation Declare further types DIM SimlationEile As String Name of the network file (with the full path) DIM RandomSeed AS Integer Current random seed DIM RunIndex AS Integer Simulation running index Start Vissim and create an instance of a Vissim object and a Simulation object SET Vissim CreateObject("VISSIM Vissim ET Simulation Vissim Simulation Sheets("VISSIM"). Select Select the example sheet named VISSIM Range("C2"). Select Select the cell with the network file name SimmulationFile= Selection Value Get the network file name Load the network and the * ini file LoadNet SimulationFile Initialize simulation values Simmulation Period 100 100 second simulations Simulation running index initialization Loop of simulation runs Range("A2"). Select i Select the first random seed cell WHILE Selection < l\ Run until no more random seeds are available Get current random seed from the current selected cell RandomSeed Selection Valt Set simulation parameters for next simulation Simmulation. RunIndex RunIndex Set the simulation run index Simulation. Carmment "Randam Seed ="& RandamSeed Set simulation comment Simmulation. RandomSeed RandamSeed Set random seed Run simulation continuously Simmulation UncOntinuous Initilize next simmlation values ActiveCell Offset(1, 0). Select Select the next random seed cell RunIndex RunIndex +1 Next simulation running index SUB After the creation of a vissiM object the code demonstrates how to obtain references to other VISsiM data objects (in this case a Simulation object) and how to access their properties and methods In a similar way it is possible to use the visual Basic programming environment to create a desktop application to control simulation runs having access not only to the random seeds but also to the other simulation parameters COM Interface Manual PtV ag 2007 【实例截图】
【核心代码】

标签:

实例下载地址

VISSIM的COM使用说明书

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警