PyANGKernel.GKContent

class GKContent

Identifies all the contents of the GKColumn .

Details

For example: originator, flow, lane & vehicle type (any additional information about the data contained in this column).

Note

The name of the content ( returned by idDescription() ) is defined using one the two constructors: - one that uses a fixed QString (for example: tr(“All lanes”) ) - one that uses function that retrieves the name from the id and the type of the content.

Synopsis

Methods

Virtual methods

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__()

Builds a null GKContent .

__init__(t, id[, externalName=""])
Parameters:
  • t – str

  • id – str

  • externalName – str

getId()
Return type:

int

id()
Return type:

str

Returns the id of the content.

idDescription()
Return type:

str

Returns a descriptive translated string of mId.

isEmpty()
Return type:

bool

Returns true if the id is undefined. An empty GKContent can be not null.

isNull()
Return type:

bool

Returns true if the id and the type are undefined. A null GKContent is always empty.

__ne__(other)
Parameters:

otherGKContent

Return type:

bool

__add__(c2)
Parameters:

c2GKContent

Return type:

GKContents

__lt__(other)
Parameters:

otherGKContent

Return type:

bool

__eq__(other)
Parameters:

otherGKContent

Return type:

bool

type()
Return type:

str

Returns the type of content.

typeDescription()
Return type:

str

Returns a descriptive translated string of mType.