PyANGKernel.GKScenarioChange¶
- class GKScenarioChange¶
A change in the simulation.
Details
A Scenario Change is a change in the simulation conditions (lane closure, speed modification) that is not pressent always in the network (if its always present it will be coded directly on it).
A change is part of a
GKPolicyor a GKTrafficCondition and is applied when these classes say so.Inherited by:
GKTurningCooperationChange,GKTurningClosingChange,GKTurningBehaviouralParametersChange,GKSectionChange,GKSpeedChange,GKSectionIncident,GKPeriodicSectionIncident,GKSectionBehaviouralParametersChange,GKRoadPricing,GKParkAndRideChange,GKLaneClosingChange,GKForceTurning,GKDisableReservedLaneChange,GKDestinationChange,GKPeriodicCall,GKForceEnrouteAssignment,GKControlPlanChangeSynopsis¶
Methods¶
def
__init__()def
clearMessages()def
getMessage()def
getPolicy()def
removeMessage()def
setMessage()def
setPolicy()
Virtual methods¶
def
canBeUsed()def
getChangeType()def
getPosition()
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
- class GKScenarioChangeType¶
- __init__()¶
- activateMessagesInVMS()¶
Someone has activate this change. This method will set the messages on the VMS.
- canBeUsed(arg__1, arg__2)¶
- Parameters:
arg__1 –
GKExperimentarg__2 – .QSetGKGeoObject
- Return type:
Returns true if this Scenario changed can be used in an experiment simulation. It will check: - All the used objects are inside the Subnetwork is a Subnetwork is used - Centroids are in the used Centroid Configuration
- clearMessages()¶
Removes all the messages.
- deactivateMessagesInVMS()¶
Someone has deactivate this change. This method will remove the messages on the VMS.
- getChangeType()¶
- Return type:
Returns the change type associated with the class.
Returns the compliance level (a percentage: [0,100] ) as a string (as it can be a variable).
Gets the message for the vms.
Returns the policy in where this change is.
Returns the position of the change’s “main” object ; per example, a
GKSectionChangewould return the center of the affected section. * Returns GKPoint::zero if the change is not related to aGKGeoObjectin particular.- getVehicleClass()¶
- Return type:
Returns the vehicle class affected by this change. A NULL means that all the classes are affected.
Removes the message, if any, associated with a vms.
- setComplianceLevel(value)¶
- Parameters:
value – str
Sets the compliance level percentage. It can be a variable.
Sets the message for the vms.
Sets the policy in where this change is.
- setVehicleClass(vehClass)¶
- Parameters:
vehClass –
GKVehicleClass
Sets which vehicle class is affected by this change. A NULL means that all the classes are affected.