PyANGKernel.GKCentroidVector¶
- class GKCentroidVector¶
-
Synopsis¶
Methods¶
def
__init__()def
getContents()def
getDimension()def
getTotal()def
getValue()def
setContents()def
setDimension()def
setValue()
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¶
Values associated with centroid (for example, number of parking slots in a destination centroid)
- class ContentsType¶
- __init__()¶
- __init__(v)
- Parameters:
v –
GKCentroidVector
- getCentroidConfiguration()¶
- Return type:
Get the centroid configuration
- getContents()¶
- Return type:
Total for all centroids. nullValue will be true if the no value has been assigned to any centroid.
- getValue(centroid[, col=0[, nullValue=None]])¶
- Parameters:
centroid –
GKCentroidcol – int
nullValue – bool
- Return type:
Value by centroid. nullValue will be true if the no value has been assigned to the centroid.
- setCentroidConfiguration(cent)¶
- Parameters:
cent –
GKCentroidConfiguration
Set (when created) the centroid configuration of this vector.
- setContents(type)¶
- Parameters:
type –
ContentsType
- setDimension(val)¶
- Parameters:
val – int
- setValue(centroid, value[, col=0])¶
- Parameters:
centroid –
GKCentroidvalue – float
col – int
Value by centroid