PyMacroKernelPlugin.CMacroSection

class CMacroSection

Inheritance diagram of PyMacroKernelPlugin.CMacroSection

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

Detailed Description

The section representation of a GKSection in the macro model when doing an assignment.

__init__(_section, _connection)
Parameters:
  • _sectionGKSection

  • _connectionGKModelConnection

getAdditionalVolume()
Return type:

float

get the additional volume assigned to the macro section

getCapacity()
Return type:

float

get the capacity of the section in the static assignment, in PCUs for the whole demand duration.

getCostFunction()
Return type:

GKFunctionCost

get the cost function of the macro section

getNbFullLanes()
Return type:

int

get the number of full lanes of this macro section

getRoadType()
Return type:

GKRoadType

get the road type for this section

getSpeed()
Return type:

float

get the allowed speed of the macro section

getUserDefinedCost()
Return type:

float

get the user-defined cost

getUserDefinedCost2()
Return type:

float

get the user-defined cost 2

getUserDefinedCost3()
Return type:

float

get the user-defined cost 3

length2D()
Return type:

float

get section length in meters

length3D()
Return type:

float

get section length in meters