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
GKModelclass. *See also
Synopsis¶
Methods¶
def
__init__()def
getLength2D()def
getPercentage()def
setPercentage()
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:
conn –
GKCenConnection
Length in m of this connection. When connected to a node it uses the node center point.
Usage percentage (a value from 0 to 100).
- getVehicleClass()¶
- Return type:
Gets the vehicle class that will be allowed to use this connection in the dynamic simulators
- getVolumeDelayFunction()¶
- Return type:
Gets the Volume Delay Function
- setPercentage(p)¶
- Parameters:
p – float
Usage percentage (a value from 0 to 100).
- setVehicleClass(aVehClass)¶
- Parameters:
aVehClass –
GKVehicleClass
Sets the vehicle class that will be allowed to use this connection in the dynamic simulators
- setVolumeDelayFunction(function)¶
- Parameters:
function –
GKFunctionCost
Sets the Volume Delay Function