24.08.2013 Views

VISSIM 5.30-05 User Manual

VISSIM 5.30-05 User Manual

VISSIM 5.30-05 User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

13 <strong>VISSIM</strong> Programming Interfaces (API)<br />

13.7 Tolling – TollPricing.DLL<br />

In <strong>VISSIM</strong>, user defined Toll Pricing Calculation Models can be implemented<br />

as COM scripts or specific *.DLL files.<br />

Such a file *.DLL can be selected in the TollPricing Calculation Models dialog<br />

if the option COM-Script is activated, cf. section 5.6.2.<br />

The *.DLL must contain the functions declared in TOLLPRICING.H: Init() and<br />

Exit() are called from <strong>VISSIM</strong> at the start respectively end of a simulation run<br />

and can be used to initialize the *.DLL respectively clean up. CalculateToll()<br />

is called whenever a new toll price needs to be calculated, i.e. at the start of<br />

each calculation interval of each managed lane facility, once per user class<br />

(SOV, HOV2, HOV3+).<br />

<strong>VISSIM</strong> passes the number of the managed lane facility, the user class, the<br />

current simulation time, the travel time savings (in minutes) on the managed<br />

lane and the average speed on the managed lane (both since the start of the<br />

last interval) and it expects the new toll price to be stored with the reference<br />

variable .<br />

Documentation:<br />

► \ API\TOLLPRICING_DLL\TOLLPRICING.TXT<br />

Files:<br />

► \ API\TOLLPRICING_DLL\<br />

660 <strong>VISSIM</strong> <strong>5.30</strong>-<strong>05</strong> © PTV AG 2011

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!