PyANGKernel.BaseForest¶
- class BaseForest¶
Inherited by:
ForestODStorage,NSPForestSynopsis¶
Methods¶
def
__init__()def
addInterval()def
addVehicleType()def
calculate()def
convertFilter()def
createSubPaths()def
duration()def
getDemand()def
getFileName()def
getGeometry()def
getIntervals()def
getModel()def
getTotalTrips()def
getTrips()def
getType()def
getUserClasses()def
getVersion()def
hasStatistics()def
initialTime()def
isDynamic()def
mergePaths()def
modifyInterval()def
readIntoMemory()def
setDemand()def
setType()def
treesInMemory()def
writeGeometry()
Virtual methods¶
def
getPaths()def
store()
Static functions¶
def
readFile()def
readFileType()def
readHeaderFile()
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
- class ForestType¶
- class WriteStatus¶
- __init__(amodel, iType)¶
- Parameters:
amodel –
GKModeliType –
ForestType
- calculate(iCalculator, iFilter)¶
- Parameters:
iCalculator –
ForestCalculatoriFilter –
AnalysisFilter
- convertFilter(iFilterAimsunIds)¶
- Parameters:
iFilterAimsunIds –
AnalysisFilter- Return type:
- createSubPaths(iModel, iSectionId, iIntervalIndex, userClassId, iOriginId, iDestinationId)¶
- Parameters:
iModel –
GKModeliSectionId – int
iIntervalIndex – int
userClassId – int
iOriginId – int
iDestinationId – int
- duration()¶
- Return type:
- duration(interval)
- Parameters:
interval – int
- Return type:
- getAssignmentMatrix(aimsunModel, observations, states)¶
- Parameters:
aimsunModel –
GKModelobservations – .list of qint32
states – .list of std.pairqint32,qint32
- Return type:
- getDemand()¶
- Return type:
- getGeometry()¶
- Return type:
- getIntervals()¶
- Return type:
.list of std.pairQDateTime,QDateTime
- getOriginDestinationBoundingBox(originIndex, destinationIndex)¶
- Parameters:
originIndex – int
destinationIndex – int
- Return type:
- getPathSections(iEntranceSection, iTree, iVehicleIndex)¶
- Parameters:
iEntranceSection – int
iTree –
NSPPathiVehicleIndex – int
- Return type:
.list of qint32
- abstractmethod getPaths()¶
- Return type:
- getStationaryIntervals()¶
- Return type:
.list of std.pairQDateTime,QDateTime
- getTrips(originId, destinationId, userId, interval)¶
- Parameters:
originId – int
destinationId – int
userId – int
interval – int
- Return type:
- getTripsByIndex(originIndex, destiationIndex, userIndex, intervalIndex)¶
- Parameters:
originIndex – int
destiationIndex – int
userIndex – int
intervalIndex – int
- Return type:
- getType()¶
- Return type:
- getUserClasses()¶
- Return type:
.list of uint
- getWarmUpIntervals()¶
- Return type:
.list of std.pairQDateTime,QDateTime
- initialTime(interval)
- Parameters:
interval – int
- Return type:
- mergePaths(ipaths)¶
- Parameters:
ipaths – .list of BaseForest
- Return type:
- static readFile(fileName, model[, task=None])¶
- Parameters:
- Return type:
- static readFileForDynamic(fileName, iModel, nrPaths[, task=NULL])¶
- Parameters:
- Return type:
- static readFileGeneric(fileName, iModel[, task=None])¶
- Parameters:
- Return type:
- static readFileType(fileName)¶
- Parameters:
fileName – str
- Return type:
- static readHeaderFile(fileName, iModel[, task=None])¶
- Parameters:
- Return type:
- readIntoMemory()¶
- resetVehicleGroups()¶
- setCostByVehicleType(value)¶
- Parameters:
value – bool
- setDemand(iDemand)¶
- Parameters:
iDemand –
ForestDemands
- setLastGenerationSimulatorEngine(engine)¶
- Parameters:
engine – int
- setLastGenerationSimulatorMode(mode)¶
- Parameters:
mode – int
- setLastGenerationSimulatorVersion(version)¶
- Parameters:
version – str
- setNewAssignmentFactor(intervalIndex, vehicleIndex, originIndex, originCon, destinationIndex, destinationCon, sections, prob)¶
- Parameters:
intervalIndex – int
vehicleIndex – int
originIndex – int
originCon – int
destinationIndex – int
destinationCon – int
sections – .list of uint
prob – float
- Return type:
- setType(iType)¶
- Parameters:
iType –
ForestType
- store(stream)¶
- Parameters:
stream –
QDataStream- Return type:
- storeGeometryAndDemand(stream)¶
- Parameters:
stream –
QDataStream
- writeGeometry()¶
- Return type:
- writePathsToFile(fileName)¶
- Parameters:
fileName – str
- Return type: