PyANGKernel.GKUserClass¶
- class GKUserClass¶
-
Synopsis¶
Methods¶
def
__init__()def
getPCUs()def
getPurpose()def
getVehicle()def
isAutonamed()def
isVoTDefined()def
setAutonamed()def
setPurpose()def
setVehicle()
Static functions¶
def
findUserClass()
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 is used to relate a vehicle type and a purpose in a concept called user-class.
- __init__()¶
- static createUserClass(model, _vehicle, _purpose)¶
- Parameters:
model –
GKModel_vehicle –
GKMobileAgent_purpose –
GKTripPurpose
- Return type:
Returns an existing user class, or create a new one, in the given model
- static findUserClass(model, _vehicle, _purpose)¶
- Parameters:
model –
GKModel_vehicle –
GKMobileAgent_purpose –
GKTripPurpose
- Return type:
Returns an existing user class, or NULL, in the given model
Gets the PCUs of the user class. The user class PCUs are the same from the vehicle type contained in the user class.
- getPurpose()¶
- Return type:
Gets the purpose of the user class
Get the user class Value of Time Dispersion.
Get the user class Value of Time Maximum.
Get the user class Value of Time Mean.
Get the user class Value of Time Median.
Get the user class Value of Time Minimum.
Get the user class Value of Time Standard Deviation.
- getVehicle()¶
- Return type:
Gets the vehicle type or pedestrian type of the user class
Returns true if the user class is autonamed.
Returns true if the Value of Time is defined for this User Class.
- setAutonamed(autonamed)¶
- Parameters:
autonamed – bool
If the user class is autonamed (true by default), its name * is automatically computed from its purpose and vehicle.
See also
- setDistanceWeight(value)¶
- Parameters:
value – float
- setPurpose(_purpose)¶
- Parameters:
_purpose –
GKTripPurpose
Sets the purpose of the user class
- setTravelTimeWeight(value)¶
- Parameters:
value – float
- setUserClassVehicleOccupancy(value)¶
- Parameters:
value – float
- setUserClassVoTDispersion(value)¶
- Parameters:
value – float
Set the user class Value of Time Dispersion.
- setUserClassVoTMax(value)¶
- Parameters:
value – float
Set the user class Value of Time Maximum.
- setUserClassVoTMedian(value)¶
- Parameters:
value – float
Set the user class Value of Time Median.
- setUserClassVoTMin(value)¶
- Parameters:
value – float
Set the user class Value of Time Minimum.
- setVehicle(_vehicle)¶
- Parameters:
_vehicle –
GKMobileAgent
Sets the vehicle type or pedestrian type of the user class