PyANGKernel.GKBaseObject

class GKBaseObject

Base class for normal objects ( GKObject ) and simulated objects ( GKSimulatedObject ) sharing an interface to get basic information (id, name, model and column based information).

Details

UnknownCommandGKObjects UnknownCommand GKSimulatedObject

Inherited by: GKSimulatedObject, GKObject, GKViewModeStyle, GKViewMode, GKViewBookmark, GKViewBookmarkStatic, GKViewBookmarkDynamic, GKVehicleClass, GKUserClass, GKTripPurpose, GKTrigger, GKTransportationMode, GKTrafficDemandItem, GKTrafficState, GKODMatrix, GKCentroidVector, GKTrafficDemand, GKTrafficArrivals, GKStrategy, GKSimulationEvent, GKPolicy, GKTrafficCondition, GKScript, GKScenarioChange, GKTurningCooperationChange, GKTurningClosingChange, GKTurningBehaviouralParametersChange, GKSectionChange, GKSpeedChange, GKSectionIncident, GKPeriodicSectionIncident, GKSectionBehaviouralParametersChange, GKRoadPricing, GKParkAndRideChange, GKLaneClosingChange, GKForceTurning, GKDisableReservedLaneChange, GKDestinationChange, GKPeriodicCall, GKForceEnrouteAssignment, GKControlPlanChange, GKRoadType, GKReplication, GKExperimentResult, GKRealDataSet, GKPublicLineTimeTableSchedule, GKPublicLineTimeTable, GKPublicLinePlan, GKProblem, GKPathAssignmentPlan, GKPathAssignment, GKPTZonePlan, GKNetworkAttributesOverride, GKModel, GKModeChoiceClass, GKMobileAgent, GKVehicle, GKMasterControlPlan, GKLaneType, GKGroupingType, GKGeometryConfiguration, GKGeoObject, GKSectionObject, GKVMS, GKPedestrianCrossing, GKMetering, GKDetector, GKDetectorStation, GKBusStop, GKRoute, GKSubPath, GKPublicLine, GKODRoute, GKPolyline, GKPolygon, GKSuperNode, GKSimulationArea, GKProblemNet, GKPolygonWithHoles, GKPTZone, GKPTStation, GKGroup, GKExtrudedPolygon, GKCrosswalkArea, GKCentroid, GKImage3D, GKExtrudedPolyline, GKBezierCurve, GKTurning, GKSuperNodeTrajectory, GKSection, GKObjectConnection, GKCenConnection, GKLayer, GKDPoint, GKText, GKNode, GKImage, GKGeoImage, GKController, GKCircle, GKGenericScenario, GKScenario, GKGenericExperiment, GKExperiment, GKFunctionCost, GKFunctionComponent, GKFolder, GKDynamicTrafficSnapshot, GKControlPlanSignal, GKControlPlan, GKControlMetering, GKControlGreenMetering, GKControlGreenMeteringByLane, GKControlFlowMetering, GKControlFlowAlineaMetering, GKControlDelayMetering, GKControlJunction, GKCentroidConfiguration, GKAuthority

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__()
__init__(rhs)
Parameters:

rhsGKBaseObject

abstractmethod getDataValue(attr[, context=GKContext.anyContext])
Parameters:
Return type:

PyObject*

Get the value of an attribute. If no value is found null is returned. If deleteit is true the returned value must be deleted by the method that makes the call.

abstractmethod getDataValueBool(attr[, context=GKContext.anyContext])
Parameters:
Return type:

bool

See getDataValueInt

abstractmethod getDataValueDate(attr[, context=GKContext.anyContext])
Parameters:
Return type:

QDate

See getDataValueInt

abstractmethod getDataValueDateTime(attr[, context=GKContext.anyContext])
Parameters:
Return type:

QDateTime

See getDataValueInt

abstractmethod getDataValueDouble(attr[, context=GKContext.anyContext])
Parameters:
Return type:

float

See getDataValueInt

abstractmethod getDataValueInTS(attr, index[, deviation=None])
Parameters:
  • attrGKColumn

  • index – int

  • deviationdouble

Return type:

float

Get a value for a TimeSerie or 0.0 if no value is found (no value for the index) and, optionally, its deviation

abstractmethod getDataValueInt(attr[, context=GKContext.anyContext])
Parameters:
Return type:

int

Helper functions (only for access). It’s faster than getDataValue since it doesn’t creates any intermediate QVariant for internal attributes. Note that for GKTimeSerie it returns the default value, in order to get any other value (position or condition dependant) use getDataValue to take the whole attribute

abstractmethod getDataValueObject(attr[, context=GKContext.anyContext])
Parameters:
Return type:

GKObject

See getDataValueInt

abstractmethod getDataValueString(attr[, context=GKContext.anyContext])
Parameters:
Return type:

str

See getDataValueInt

abstractmethod getDataValueTS(attr)
Parameters:

attrGKColumn

Return type:

GKTimeSerie

Get a TimeSerie

abstractmethod getDataValueTime(attr[, context=GKContext.anyContext])
Parameters:
Return type:

QTime

See getDataValueInt

abstractmethod getDataValueTimeDuration(attr[, context=GKContext.anyContext])
Parameters:
Return type:

GKTimeDuration

See getDataValueInt

abstractmethod getDescription()
Return type:

str

Get the object description (entered by the user)

abstractmethod getExternalId()
Return type:

str

Get the object external ID stored in GKObject::externalIdAtt

abstractmethod getId()
Return type:

int

Return the unique identifier of this object.

abstractmethod getMaster()
Return type:

GKObject

The object that originates this object

abstractmethod getModel()
Return type:

GKModel

Return the model of this object,

abstractmethod getName()
Return type:

str

The optional name of this object.

getPythonVersion()
Return type:

void

Returns a Python version of this object (if it has been set by GKSystem::getPythonObject()

abstractmethod getTypeExternalName()
Return type:

str

The type external name of this object. Is equivalent to getType()->getExternalName()

abstractmethod getTypeName()
Return type:

str

The type name of this object

setPythonVersion(obj)
Parameters:

objvoid

Sets the Python version of this object (when calling GKSystem::getPythonObject() )