PyMacroPTPlugin.PTTreeLink¶
- class PTTreeLink¶
The
PTTreeLinkclassSynopsis¶
Methods¶
def
__init__()def
getCost()def
getFare()def
getLinkType()def
getObjectId()def
getOriginId()def
getSectionIds()def
getServicePos()def
getVolume()def
getWaitingTime()def
getWalkingTime()def
__ne__()def
__eq__()def
restore()def
setCost()def
setFare()def
setLinkType()def
setObjectId()def
setOriginId()def
setSectionIds()def
setServicePos()def
setVolume()def
setWaitingTime()def
setWalkingTime()def
store()
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__(nrUsers, costComponents)
- Parameters:
nrUsers – int
costComponents – int
- getCostComponent(userIndex, componentIndex)¶
- Parameters:
userIndex – int
componentIndex – int
- Return type:
- getSectionIds()¶
- Return type:
.std.vectorqint32
- __ne__(b)¶
- Parameters:
b –
PTTreeLink- Return type:
- __eq__(b)¶
- Parameters:
b –
PTTreeLink- Return type:
- restore(stream, version)¶
- Parameters:
stream –
QDataStreamversion – int
- Return type:
- setCost(userIndex, iCost)¶
- Parameters:
userIndex – int
iCost – float
- setCostComponent(userIndex, componentIndex, iCostComponent)¶
- Parameters:
userIndex – int
componentIndex – int
iCostComponent – float
- setCrowdingDiscomfort(userIndex, iValue)¶
- Parameters:
userIndex – int
iValue – float
- setDestinationId(iObjectId)¶
- Parameters:
iObjectId – int
- setFare(userIndex, iValue)¶
- Parameters:
userIndex – int
iValue – float
- setInVehicleDistance(distance)¶
- Parameters:
distance – float
- setInVehicleTime(userIndex, iValue)¶
- Parameters:
userIndex – int
iValue – float
- setObjectId(iObjectId)¶
- Parameters:
iObjectId – int
- setOriginId(iObjectId)¶
- Parameters:
iObjectId – int
- setSectionIds(iSectionIds)¶
- Parameters:
iSectionIds – .std.vectorqint32
- setServicePos(iServicePos)¶
- Parameters:
iServicePos – int
- setTransferPenalty(userIndex, iValue)¶
- Parameters:
userIndex – int
iValue – float
- setVolume(userIndex, iVolume)¶
- Parameters:
userIndex – int
iVolume – float
- setWaitingTime(userIndex, iValue)¶
- Parameters:
userIndex – int
iValue – float
- setWalkingTime(userIndex, iValue)¶
- Parameters:
userIndex – int
iValue – float
- store(stream)¶
- Parameters:
stream –
QDataStream