PyANGKernel.NSPPath¶
- class NSPPath¶
Synopsis¶
Methods¶
def
__init__()def
getId()def
setId()
Virtual methods¶
def
clearData()def
compress()def
getNext()def
getPath()def
getType()def
initMemState()def
isCompressed()def
isMemStateInit()def
readData()def
referencePath()def
samePath()def
setMemPos()def
store()def
writeData()
Static functions¶
def
createPath()
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¶
this class provides basic structure for a given path
- class NSPathType¶
Path type.
- PyANGKernel.NSPPath.manageData¶
- __init__()¶
Default constructor.
Rerturns true if the tree can be compressed
- clearData()¶
Clear the data
Compress tree. Returns true if the path has been compressed.
- static createPath(stream, tempstream, forest, readData, dataPosition)¶
- Parameters:
stream –
QDataStreamtempstream –
QDataStreamforest –
BaseForestreadData – bool
dataPosition –
qint64
- Return type:
create path from stream
- destroyTemporaryDecompress()¶
Remove the temporary decompressed tree
Get the ID of the path.
- getNext(pos, vehType, forest[, indexPath=0])¶
- Parameters:
pos – int
vehType – int
forest –
BaseForestindexPath – int
- Return type:
Returns the next connection for a section position pos.
- abstractmethod getPath(entranceSection, vehType)¶
- Parameters:
entranceSection – int
vehType – int
- Return type:
.std.listquint32
Returns the list of sections positions from entranceSection.
- abstractmethod getPathConnections(entranceSection, vehicleIndex, includeTrajectorySections)¶
- Parameters:
entranceSection – int
vehicleIndex – int
includeTrajectorySections – bool
- Return type:
.list of std.pairqint32,qint8
Get the path section positions and connections
Get Destination Centroid Index
Get reference path if this path is compressed
- abstractmethod getType()¶
- Return type:
Returns the type of this path.
- initMemState([arg__1=true])¶
- Parameters:
arg__1 – bool
Returns if the tree is compressed or not
Read the data
- abstractmethod samePath(_forest, otherPath, entranceSectionPos, vehType)¶
- Parameters:
_forest –
BaseForestotherPath –
NSPPathentranceSectionPos – int
vehType – int
- Return type:
Returns true if the two paths are the same.
- setId(aid)¶
- Parameters:
aid – int
Set the ID of the path.
- setMemPos(arg__1)¶
- Parameters:
arg__1 – int
Set the mem position where to read the data from disk. It is only needed if no restore has been done or the file has changed
- store(stream)¶
- Parameters:
stream –
QDataStream
Store the path.
- temporaryDecompress()¶
Temporary decompress tree
- writeData(stream)¶
- Parameters:
stream –
QDataStream
Write the data to data stream