logo资料库

vissim_com手册.pdf

第1页 / 共287页
第2页 / 共287页
第3页 / 共287页
第4页 / 共287页
第5页 / 共287页
第6页 / 共287页
第7页 / 共287页
第8页 / 共287页
资料共287页,剩余部分请下载后查看
Copyright
Table of Contents
1 Introduction
1.1 Introductory Example
1.2 License and Registration
1.3 Instances
1.4 Conventions
2 Object Model
3 Language Reference
3.1 Base Objects
3.1.1 Vissim
3.1.2 Net
3.2 COM Data Objects
3.2.1 WorldPoint
3.3 VISSIM Base Data
3.3.1 DrivingBehaviorParSets
3.3.2 DrivingBehaviorParSet
3.3.3 PedTypes
3.3.4 PedType
3.3.5 PedClasses
3.3.6 PedClass
3.3.7 PedWalkingBehaviorParSets
3.3.8 PedWalkingBehaviorParSet
3.4 Network
3.4.1 Link-based
3.4.1.1 DesiredSpeedDecisions
3.4.1.2 DesiredSpeedDecision
3.4.1.3 Links
3.4.1.4 Link
3.4.1.5 Nodes
3.4.1.6 Node
3.4.1.7 ParkingLots
3.4.1.8 ParkingLot
3.4.1.9 ReducedSpeedAreas
3.4.1.10 ReducedSpeedArea
3.4.2 Area-based (Pedestrians)
3.4.2.1 PedAreas
3.4.2.2 PedArea
3.4.3 PedAreaBehaviorTypes
3.4.4 PedAreaBehaviorType
3.5 Traffic
3.5.1 Vehicles
3.5.1.1 Vehicles
3.5.1.2 Vehicle
3.5.2 Private Traffic
3.5.2.1 Routes
3.5.2.2 Route
3.5.2.3 RoutingDecisions
3.5.2.4 RoutingDecision
3.5.2.5 TrafficCompositions
3.5.2.6 TrafficComposition
3.5.2.7 VehicleInputs
3.5.2.8 VehicleInput
3.5.3 Transit
3.5.3.1 TransitLines
3.5.3.2 TransitLine
3.5.3.3 TransitStops
3.5.3.4 TransitStop
3.5.4 Pedestrians
3.5.4.1 PedPedestrians
3.5.4.2 PedPedestrian
3.5.4.3 PedInputs
3.5.4.4 PedInput
3.5.4.5 PedRoutes
3.5.4.6 PedRoute
3.5.4.7 PedRoutingDecisions
3.5.4.8 PedRoutingDecision
3.5.5 Dynamic Assignment
3.5.5.1 DynamicAssignment
3.5.5.2 Paths
3.5.5.3 Path
3.6 Intersection Control
3.6.1 Non-signalized
3.6.1.1 StopSigns
3.6.1.2 StopSign
3.6.2 Signal Control
3.6.2.1 Detectors
3.6.2.2 Detector
3.6.2.3 PTCallingPoints
3.6.2.4 SignalControllers
3.6.2.5 SignalController
3.6.2.6 SignalGroups
3.6.2.7 SignalGroup
3.6.2.8 SignalHeads
3.6.2.9 SignalHead
3.6.2.10 SCDetRecord
3.7 Simulation & Test
3.7.1 Simulation
3.8 Graphics & Presentation
3.8.1 Graphics
3.8.2 Presentation
3.8.3 StaticObjects
3.8.4 StaticObject
3.9 Results
3.9.1 Evaluation
3.9.2 AnalyzerEvaluation
3.9.3 DataCollections
3.9.4 DataCollection
3.9.5 DataCollectionEvaluation
3.9.6 Delays
3.9.7 Delay
3.9.8 DelayEvaluation
3.9.9 LinkEvaluation
3.9.10 NodeEvaluation
3.9.11 QueueCounters
3.9.12 QueueCounter
3.9.13 QueueCounterEvaluation
3.9.14 TravelTimes
3.9.15 TravelTime
3.9.16 TravelTimeEvaluation
3.9.17 PedTravelTimes
3.9.18 PedTravelTime
3.9.19 PedTravelTimeEvaluation
3.9.20 PedDataCollectionEvaluation
3.9.21 PedProtocolEvaluation
3.10 Triggered Scripting
3.10.1 TriggeredScripting
3.10.2 ManagedLanesTollCalculation
4 COM Access
4.1 Visual Basic
4.1.1 Creation of a Visual Basic Client
4.1.2 Collections (Different Ways to Enumerate)
4.1.3 Arrays
4.1.4 Error Handling
4.1.5 A Visual Basic Client Example
4.1.6 Advanced Issues Using Visual Basic
4.2 Visual C++
4.2.1 Creation of a VC++ Client
4.2.2 Collections (Different Ways to Enumerate)
4.2.3 Arrays
4.2.4 Error Handling
4.2.5 A Visual C++ Client Example
4.3 .NET
4.3.1 Creation of a Client Using Visual Studio .NET
4.3.2 Arrays
4.3.3 Events
4.3.4 Error Handling
4.4 Java
4.4.1 Creation of a COM Wrapper
4.4.2 Creation of a Java client
4.5 Delphi
4.5.1 Creation of a Client Using Delphi 2006
5 Remote COM Access
6 Annexes
6.1 Error Messages
6.2 Warning Messages
6.3 Tips and Hints
6.4 Registry
VISSIM 5.40-07 - COM Interface Manual
Copyright © PTV AG 2012 Planung Transport Verkehr AG Stumpfstraße 1 D-76131 Karlsruhe Germany All rights reserved. November 2012
Table of Contents 1 Introduction 1.1 1.2 1.3 1.4 Introductory Example License and Registration Instances Conventions 2 Object Model 3 Language Reference COM Data Objects VISSIM Base Data Links Link Base Objects Vissim PedTypes PedType PedClasses PedClass PedWalkingBehaviorParSets PedWalkingBehaviorParSet 3.1 3.1.1 3.1.2 Net 3.2 3.2.1 WorldPoint 3.3 3.3.1 DrivingBehaviorParSets 3.3.2 DrivingBehaviorParSet 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.4 3.4.1 3.4.1.1 DesiredSpeedDecisions 3.4.1.2 DesiredSpeedDecision 3.4.1.3 3.4.1.4 3.4.1.5 Nodes 3.4.1.6 Node 3.4.1.7 3.4.1.8 3.4.1.9 ReducedSpeedAreas 3.4.1.10 ReducedSpeedArea 3.4.2 3.4.2.1 3.4.2.2 ParkingLots ParkingLot Network Link-based Area-based (Pedestrians) PedAreas PedArea VISSIM 5.40-07 © PTV AG 2012 7 9 11 12 13 15 16 17 17 24 30 30 33 33 35 37 39 41 43 45 47 49 49 49 51 54 55 62 64 68 69 72 74 77 77 79 3
Table of Contents Transit Pedestrians Traffic Vehicles Vehicles Vehicle Private Traffic PedAreaBehaviorTypes PedAreaBehaviorType TransitLines TransitLine TransitStops TransitStop TrafficCompositions TrafficComposition VehicleInputs VehicleInput 3.4.3 3.4.4 3.5 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 Routes 3.5.2.2 Route 3.5.2.3 RoutingDecisions 3.5.2.4 RoutingDecision 3.5.2.5 3.5.2.6 3.5.2.7 3.5.2.8 3.5.3 3.5.3.1 3.5.3.2 3.5.3.3 3.5.3.4 3.5.4 3.5.4.1 PedPedestrians 3.5.4.2 PedPedestrian 3.5.4.3 PedInputs 3.5.4.4 PedInput 3.5.4.5 PedRoutes 3.5.4.6 PedRoute 3.5.4.7 PedRoutingDecisions 3.5.4.8 PedRoutingDecision 3.5.5 Dynamic Assignment 3.5.5.1 DynamicAssignment 3.5.5.2 3.5.5.3 3.6 3.6.1 Non-signalized 3.6.1.1 3.6.1.2 3.6.2 3.6.2.1 Detectors 3.6.2.2 Detector 3.6.2.3 3.6.2.4 3.6.2.5 3.6.2.6 3.6.2.7 3.6.2.8 3.6.2.9 PTCallingPoints SignalControllers SignalController SignalGroups SignalGroup SignalHeads SignalHead StopSigns StopSign Signal Control Paths Path Intersection Control 81 83 86 86 86 92 97 97 100 102 105 109 111 113 116 118 118 120 123 124 127 127 129 131 133 135 136 138 140 143 143 150 153 156 156 156 158 160 160 162 166 168 170 173 175 179 181 4 VISSIM 5.40-07 © PTV AG 2012
Table of Contents Results Evaluation AnalyzerEvaluation Simulation Presentation StaticObjects StaticObject 3.6.2.10 SCDetRecord 3.7 Simulation & Test 3.7.1 3.8 Graphics & Presentation 3.8.1 Graphics 3.8.2 3.8.3 3.8.4 3.9 3.9.1 3.9.2 3.9.3 DataCollections 3.9.4 DataCollection 3.9.5 DataCollectionEvaluation 3.9.6 Delays 3.9.7 Delay 3.9.8 DelayEvaluation 3.9.9 LinkEvaluation 3.9.10 NodeEvaluation 3.9.11 QueueCounters 3.9.12 QueueCounter 3.9.13 QueueCounterEvaluation 3.9.14 TravelTimes 3.9.15 TravelTime 3.9.16 TravelTimeEvaluation 3.9.17 PedTravelTimes 3.9.18 PedTravelTime 3.9.19 PedTravelTimeEvaluation 3.9.20 PedDataCollectionEvaluation 3.9.21 PedProtocolEvaluation 3.10 Triggered Scripting 3.10.1 TriggeredScripting 3.10.2 ManagedLanesTollCalculation 4 COM Access Visual Basic 4.1 4.1.1 Creation of a Visual Basic Client 4.1.2 Collections (Different Ways to Enumerate) 4.1.3 4.1.4 4.1.5 Arrays Error Handling A Visual Basic Client Example COM Interface Manual © PTV AG 2012 183 185 185 194 194 198 200 202 205 205 208 210 213 216 218 220 222 224 227 228 230 233 234 236 238 240 242 244 245 246 249 249 249 251 252 252 253 254 255 255 5
Table of Contents Visual C++ Advanced Issues Using Visual Basic Arrays Error Handling A Visual C++ Client Example 4.1.6 4.2 4.2.1 Creation of a VC++ Client 4.2.2 Collections (Different Ways to Enumerate) 4.2.3 4.2.4 4.2.5 4.3 4.3.1 Creation of a Client Using Visual Studio .NET 4.3.2 4.3.3 4.3.4 4.4 4.4.1 Creation of a COM Wrapper 4.4.2 Creation of a Java client 4.5 4.5.1 Creation of a Client Using Delphi 2006 Arrays Events Error Handling .NET Java Delphi 5 Remote COM Access 6 Annexes Error Messages 6.1 6.2 Warning Messages 6.3 6.4 Tips and Hints Registry 256 259 259 261 261 262 263 265 265 268 268 268 271 271 271 273 273 275 277 278 284 285 286 6 VISSIM 5.40-07 © PTV AG 2012
1 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 Script 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 240 for a little introduction. You will also find a short introduction on how to use it with Visual C++ on page 259. 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 file 10 20 30 42 G:\PTV\DATA\FIXED_TIME.INP You can also insert a button “START” (from the toolbox) to link with the Visual Basic code presented 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 5.40-07 © PTV AG 2012 7 Start
1 Introduction 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. 8 VISSIM 5.40-07 © PTV AG 2012
分享到:
收藏