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
GKSimulatedObjectInherited 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,GKAuthoritySynopsis¶
Methods¶
def
__init__()
Virtual methods¶
def
getDataValue()def
getDataValueTS()def
getDescription()def
getExternalId()def
getId()def
getMaster()def
getModel()def
getName()def
getTypeName()
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:
rhs –
GKBaseObject
- abstractmethod getDataValue(attr[, context=GKContext.anyContext])¶
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])¶
See
getDataValueInt- abstractmethod getDataValueDate(attr[, context=GKContext.anyContext])¶
See
getDataValueInt- abstractmethod getDataValueDateTime(attr[, context=GKContext.anyContext])¶
See
getDataValueInt- abstractmethod getDataValueDouble(attr[, context=GKContext.anyContext])¶
See
getDataValueInt- abstractmethod getDataValueInTS(attr, index[, deviation=None])¶
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])¶
Helper functions (only for access). It’s faster than
getDataValuesince it doesn’t creates any intermediate QVariant for internal attributes. Note that forGKTimeSerieit returns the default value, in order to get any other value (position or condition dependant) usegetDataValueto take the whole attribute- abstractmethod getDataValueObject(attr[, context=GKContext.anyContext])¶
See
getDataValueInt- abstractmethod getDataValueString(attr[, context=GKContext.anyContext])¶
See
getDataValueIntGet a TimeSerie
- abstractmethod getDataValueTime(attr[, context=GKContext.anyContext])¶
See
getDataValueInt- abstractmethod getDataValueTimeDuration(attr[, context=GKContext.anyContext])¶
- Parameters:
- Return type:
See
getDataValueIntGet the object description (entered by the user)
Get the object external ID stored in GKObject::externalIdAtt
Return the unique identifier of this object.
The object that originates this object
Return the model of this object,
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()
The type external name of this object. Is equivalent to getType()->getExternalName()
The type name of this object
- setPythonVersion(obj)¶
- Parameters:
obj –
void
Sets the Python version of this object (when calling GKSystem::getPythonObject() )