PyANGKernel.NSPPath

class NSPPath

Synopsis

Methods

Virtual methods

Static functions

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.

canBeCompressed()
Return type:

bool

Rerturns true if the tree can be compressed

clearData()

Clear the data

compress(iTree)
Parameters:

iTreeNSPPath

Return type:

bool

Compress tree. Returns true if the path has been compressed.

static createPath(stream, tempstream, forest, readData, dataPosition)
Parameters:
Return type:

NSPPath

create path from stream

destroyTemporaryDecompress()

Remove the temporary decompressed tree

getId()
Return type:

int

Get the ID of the path.

getNext(pos, vehType, forest[, indexPath=0])
Parameters:
  • pos – int

  • vehType – int

  • forestBaseForest

  • indexPath – int

Return type:

int

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

abstractmethod getReferenceCentroid()
Return type:

int

Get Destination Centroid Index

getReferencePath()
Return type:

NSPPath

Get reference path if this path is compressed

abstractmethod getType()
Return type:

NSPathType

Returns the type of this path.

initMemState([arg__1=true])
Parameters:

arg__1 – bool

isCompressed()
Return type:

bool

Returns if the tree is compressed or not

isMemStateInit()
Return type:

bool

readData(arg__1)
Parameters:

arg__1QFile

Read the data

referencePath()
Return type:

NSPPath

abstractmethod samePath(_forest, otherPath, entranceSectionPos, vehType)
Parameters:
  • _forestBaseForest

  • otherPathNSPPath

  • entranceSectionPos – int

  • vehType – int

Return type:

bool

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:

streamQDataStream

Store the path.

temporaryDecompress()

Temporary decompress tree

writeData(stream)
Parameters:

streamQDataStream

Write the data to data stream