PyANGKernel.GKCenConnection

class GKCenConnection

Information of a connection between an object and a centroid.

Details

It has a type, that can be: - from: From the object to the centroid. Vehicles will exit the network when they reach the centroid via the end of the connected object. - to: To the object from the centroid. Vehicles will be injected in the object.

And a percentage between 0 and 100.

* The correct way to create this command is to use the function: *

*              GKCommand * createNewCmd( GKType * type ) const;
*

* from the GKModel class. *

See also

createNewCmd

Inheritance diagram of PyANGKernel.GKCenConnection

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

__init__()
__init__(conn)
Parameters:

connGKCenConnection

getLength2D()
Return type:

float

Length in m of this connection. When connected to a node it uses the node center point.

getPercentage()
Return type:

float

Usage percentage (a value from 0 to 100).

getVehicleClass()
Return type:

GKVehicleClass

Gets the vehicle class that will be allowed to use this connection in the dynamic simulators

getVolumeDelayFunction()
Return type:

GKFunctionCost

Gets the Volume Delay Function

setPercentage(p)
Parameters:

p – float

Usage percentage (a value from 0 to 100).

setVehicleClass(aVehClass)
Parameters:

aVehClassGKVehicleClass

Sets the vehicle class that will be allowed to use this connection in the dynamic simulators

setVolumeDelayFunction(function)
Parameters:

functionGKFunctionCost

Sets the Volume Delay Function