Aimsun Next Scripting
22
|
Public Member Functions | |
DTATurning () | |
DTATurning (GKTurning *apturning, GKModelConnection *modelConnection) | |
uint | getId () const |
const DTASection * | getOrigin () const |
const DTASection * | getDestination () const |
double | getAttractiveness (const DTAVehicleType *vehType=NULL) const |
bool | isVehicleAllowed (const DTAVehicleType *vehType) const |
bool | isVehicleAllowed (const DTAVehicleType *vehType, int idCentroideDesti) const |
double | getSpeed () const |
double | getSpeed_ms () const |
double | length2D () const |
double | length3D () const |
DTASection::DTABehaviourModelType | getBehaviourModel () const |
double | getMaxSpeed () const |
double | getMaxSpeedInKmH () const |
double | getUserDefinedCost () const |
double | getUserDefinedCost2 () const |
double | getUserDefinedCost3 () const |
double | getStaFlow (DTAManager *dtaManager) const |
double | getStaSpeed (DTAManager *dtaManager) const |
double | getStaTravelT (DTAManager *dtaManager) const |
double | getStaTravelTNoVQ (const DTAManager *dtaManager) const |
double | getStaDelayT (DTAManager *dtaManager) const |
double | getStaStopT (DTAManager *dtaManager) const |
double | getStaNbStopVeh (DTAManager *dtaManager) const |
double | getStaInitialCost (DTAManager *dtaManager) const |
double | getInitialDefaultCost (DTAManager *dtaManager) const |
double | getDynamicDefaultCost (DTAManager *dtaManager) const |
double | getPastCost (DTAManager *dtaManager, int index) const |
double | getStaFlowVT (DTAManager *dtaManager, const DTAVehicleType *vehType) const |
double | getStaSpeedVT (DTAManager *dtaManager, const DTAVehicleType *vehType) const |
double | getStaTravelTVT (DTAManager *dtaManager, const DTAVehicleType *vehType) const |
double | getStaTravelTNoVQVT (const DTAManager *dtaManager, const DTAVehicleType *vehType) const |
double | getStaDelayTVT (DTAManager *dtaManager, const DTAVehicleType *vehType) const |
double | getStaStopTVT (DTAManager *dtaManager, const DTAVehicleType *vehType) const |
double | getStaNbStopVehVT (DTAManager *dtaManager, DTAVehicleType *vehType) const |
double | getStaInitialCostVT (DTAManager *dtaManager, const DTAVehicleType *vehType) const |
double | getInitialDefaultCostVT (DTAManager *dtaManager, const DTAVehicleType *vehType) const |
double | getDynamicDefaultCostVT (DTAManager *dtaManager, const DTAVehicleType *vehType) const |
double | getPastCostVT (DTAManager *dtaManager, const DTAVehicleType *vehType, int index) const |
double | getStaFlowVT (DTAManager *dtaManager, const DTAUserClass *gkUserClass) const |
double | getStaSpeedVT (DTAManager *dtaManager, const DTAUserClass *gkUserClass) const |
double | getStaTravelTVT (DTAManager *dtaManager, const DTAUserClass *gkUserClass) const |
double | getStaTravelTNoVQVT (const DTAManager *dtaManager, const DTAUserClass *gkUserClass) const |
double | getStaDelayTVT (DTAManager *dtaManager, const DTAUserClass *gkUserClass) const |
double | getStaStopTVT (DTAManager *dtaManager, const DTAUserClass *gkUserClass) const |
double | getStaNbStopVehVT (DTAManager *dtaManager, const DTAUserClass *gkUserClass) const |
double | getStaInitialCostVT (DTAManager *dtaManager, const DTAUserClass *gkUserClass) const |
double | getInitialDefaultCostVT (DTAManager *dtaManager, const DTAUserClass *gkUserClass) const |
double | getDynamicDefaultCostVT (DTAManager *dtaManager, const DTAUserClass *gkUserClass) const |
double | getPastCostVT (DTAManager *dtaManager, const DTAUserClass *gkUserClass, int index) const |
double | getFreeFlowTravelTime (DTAManager *dtaManager, const DTAVehicleType *vehType) const |
double | vdfDefaultCost (DTAManager *dtaManager) const |
double | vdfDefaultCostVT (DTAManager *dtaManager, DTAVehicleType *vehType) const |
double | currentDefaultCostVT (DTAManager *dtaManager, DTAVehicleType *vehType) const |
double | currentDefaultCost (DTAManager *dtaManager) const |
double | calculationCost (DTAManager *dtaManager, double travelTime, const DTAVehicleType *vehType) const |
double | getGreenTime () const |
double | getMaxGreenTime () const |
double | getMinGreenTime () const |
double | getYellowDuration () const |
double | getCycle () const |
double | getUncontrolledTime () const |
GKControlJunction::GKControlJunctionType | getControlJunctionType () const |
double | getOriginCapacity () const |
double | getDestinationCapacity () const |
double | getCapacity () const |
void | setCapacity (double capacity) |
double | getAdditionalVolume () const |
![]() | |
GKSimulatedObject () | |
GKSimulatedObject (const GKObject *master, GKModelConnection *connection=NULL) | |
virtual QString | getTypeExternalName () const |
void | setMaster (GKObject *master) |
const GKObject * | getMaster () const |
virtual quint32 | getId () const |
virtual const QString & | getName () const |
virtual const QString & | getExternalId () const |
virtual const QString & | getDescription () const |
virtual GKModel * | getModel () const |
virtual GKType * | getType () const |
virtual bool | isA (const GKType *atype) const |
virtual bool | isA (const QString &typeName) const |
virtual QVariant * | getDataValue (const GKColumn *attr, bool *deleteit, const GKContext &context=GKContext::anyContext) const |
virtual QVariant * | getDataValueByID (uint attrId, bool *deleteit, const GKContext &context=GKContext::anyContext) const |
virtual double | getDataValueInTS (const GKColumn *attr, GKTimeSerieIndex index, double *deviation=NULL) const |
virtual double | getDataValueInTSByID (uint attrId, GKTimeSerieIndex index, double *deviation=NULL) const |
virtual GKTimeSerie * | getDataValueTS (const GKColumn *attr) const |
virtual GKTimeSerie * | getDataValueTSByID (uint attrId) const |
virtual int | getDataValueInt (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
virtual int | getDataValueIntByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
virtual double | getDataValueDouble (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
virtual double | getDataValueDoubleByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
virtual QString | getDataValueString (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
virtual QString | getDataValueStringByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
virtual bool | getDataValueBool (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
virtual bool | getDataValueBoolByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
virtual GKObject * | getDataValueObject (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
virtual GKObject * | getDataValueObjectByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
virtual QDate | getDataValueDate (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
virtual QDate | getDataValueDateByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
virtual QTime | getDataValueTime (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
virtual QTime | getDataValueTimeByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
QDateTime | getDataValueDateTime (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
QDateTime | getDataValueDateTimeByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
virtual GKTimeDuration | getDataValueTimeDuration (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
virtual GKTimeDuration | getDataValueTimeDurationByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
![]() | |
GKBaseObject () | |
if (base) | |
virtual uint | getId () const =0 |
virtual const QString & | getTypeName () const =0 |
virtual QString | getTypeExternalName () const =0 |
virtual const GKObject * | getMaster () const =0 |
virtual const QString & | getName () const =0 |
virtual const QString & | getExternalId () const =0 |
virtual const QString & | getDescription () const =0 |
virtual GKModel * | getModel () const =0 |
virtual QVariant * | getDataValue (const GKColumn *attr, bool *deleteit, const GKContext &context=GKContext::anyContext) const =0 |
virtual QVariant * | getDataValueByID (uint attrId, bool *deleteit, const GKContext &context=GKContext::anyContext) const =0 |
virtual double | getDataValueInTS (const GKColumn *attr, GKTimeSerieIndex index, double *deviation=NULL) const =0 |
virtual double | getDataValueInTSByID (uint attrId, GKTimeSerieIndex index, double *deviation=NULL) const =0 |
virtual GKTimeSerie * | getDataValueTS (const GKColumn *attr) const =0 |
virtual GKTimeSerie * | getDataValueTSByID (uint attrId) const =0 |
virtual int | getDataValueInt (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual int | getDataValueIntByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual double | getDataValueDouble (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual double | getDataValueDoubleByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual QString | getDataValueString (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual QString | getDataValueStringByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual bool | getDataValueBool (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual bool | getDataValueBoolByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual GKObject * | getDataValueObject (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual GKObject * | getDataValueObjectByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual QDate | getDataValueDate (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual QDate | getDataValueDateByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual QTime | getDataValueTime (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual QTime | getDataValueTimeByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual QDateTime | getDataValueDateTime (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual QDateTime | getDataValueDateTimeByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual GKTimeDuration | getDataValueTimeDuration (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual GKTimeDuration | getDataValueTimeDurationByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
Additional Inherited Members | |
![]() | |
ConvertToSubClassCode Py_BEGIN_ALLOW_THREADS GKBaseObject * | base = (GKBaseObject*)sipCpp |
sipType = 0 | |
![]() | |
Py_END_ALLOW_THREADS static End uint | idAtt |
static uint | nameAtt |
static uint | externalIdAtt |
static uint | descriptionAtt |
DTATurning::DTATurning | ( | ) |
DTATurning::DTATurning | ( | GKTurning * | apturning, |
GKModelConnection * | modelConnection | ||
) |
double DTATurning::calculationCost | ( | DTAManager * | dtaManager, |
double | travelTime, | ||
const DTAVehicleType * | vehType | ||
) | const |
Using the current cost function calculates the cost using the travel time and vehicle type vt from o to number vehicles -1.
double DTATurning::currentDefaultCost | ( | DTAManager * | dtaManager | ) | const |
Current default cost without considering the vehicle type.
double DTATurning::currentDefaultCostVT | ( | DTAManager * | dtaManager, |
DTAVehicleType * | vehType | ||
) | const |
Current default cost considering the vehicle type.
double DTATurning::getAdditionalVolume | ( | ) | const |
double DTATurning::getAttractiveness | ( | const DTAVehicleType * | vehType = NULL | ) | const |
Returns the turn attractiveness. With vehType no vehicle distinction is made.
DTASection::DTABehaviourModelType DTATurning::getBehaviourModel | ( | ) | const |
Returns if this turn is being used by the micro or meso models.
double DTATurning::getCapacity | ( | ) | const |
Gets the turn capacity.
GKControlJunction::GKControlJunctionType DTATurning::getControlJunctionType | ( | ) | const |
Gets the control junction type, or the control junction type of the last control plan in the master control plan.
double DTATurning::getCycle | ( | ) | const |
Gets the cycle time [s].
const DTASection * DTATurning::getDestination | ( | ) | const |
Returns the destination section.
double DTATurning::getDestinationCapacity | ( | ) | const |
Gets the capacity of the destination section.
double DTATurning::getDynamicDefaultCost | ( | DTAManager * | dtaManager | ) | const |
Returns the default cost of the last route choice interval/s using the dynamic cost function.
double DTATurning::getDynamicDefaultCostVT | ( | DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass | ||
) | const |
Returns the dynamic default cost of the last route choice interval/s using the dynamic cost function and considering the user class.
double DTATurning::getDynamicDefaultCostVT | ( | DTAManager * | dtaManager, |
const DTAVehicleType * | vehType | ||
) | const |
Returns the dynamic default cost of the last route choice interval/s using the dynamic cost function and considering the vehicle type vehType.
double DTATurning::getFreeFlowTravelTime | ( | DTAManager * | dtaManager, |
const DTAVehicleType * | vehType | ||
) | const |
Returns the turn free flow travel time. This is the travel time considering the origin section and turn. VehType defines the vehicle type from (0..number vehicles -1).
double DTATurning::getGreenTime | ( | ) | const |
Gets the normal green-time for this turn [s].
|
virtual |
Returns the Aimsun kernel id of this turn.
Reimplemented from GKSimulatedObject.
double DTATurning::getInitialDefaultCost | ( | DTAManager * | dtaManager | ) | const |
Returns the default cost of the last route choice interval/s using the initial cost function.
double DTATurning::getInitialDefaultCostVT | ( | DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass | ||
) | const |
Returns the default cost of the last route choice interval/s using the initial cost function and considering the user class.
double DTATurning::getInitialDefaultCostVT | ( | DTAManager * | dtaManager, |
const DTAVehicleType * | vehType | ||
) | const |
Returns the default cost of the last route choice interval/s using the initial cost function and considering the vehicle type vehType.
double DTATurning::getMaxGreenTime | ( | ) | const |
Gets the maximum green-time for this turn [s].
double DTATurning::getMaxSpeed | ( | ) | const |
Returns the turn speed in the network units, that is either Km/h or miles/h.
double DTATurning::getMaxSpeedInKmH | ( | ) | const |
Returns the turn speed in Km/h.
double DTATurning::getMinGreenTime | ( | ) | const |
Gets the minimum green-time for this turn [s] For actuated phases with recall Max it will add the maximum green time of the phase. For actuated phases with recall No it will not add any time to the min green time.
const DTASection * DTATurning::getOrigin | ( | ) | const |
Returns the origin section.
double DTATurning::getOriginCapacity | ( | ) | const |
Gets the capacity of the origin section.
double DTATurning::getPastCost | ( | DTAManager * | dtaManager, |
int | index | ||
) | const |
Returns the past cost that has been read from the replication that has been set for the past costs. The index parameter defines the shift from the current interval. So index = 0 means that the returned path cost will be from the same interval. index = 1 means the next interval and index = -1 the previous interval.
double DTATurning::getPastCostVT | ( | DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass, | ||
int | index | ||
) | const |
Returns the past cost that has been read from the replication that has been set for the past costs. The index parameter defines the shift from the current interval. So index = 0 means that the returned path cost will be from the same interval. index = 1 means the next interval and index = -1 the previous interval and using the user class.
double DTATurning::getPastCostVT | ( | DTAManager * | dtaManager, |
const DTAVehicleType * | vehType, | ||
int | index | ||
) | const |
Returns the past cost that has been read from the replication that has been set for the past costs. The index parameter defines the shift from the current interval. So index = 0 means that the returned path cost will be from the same interval. index = 1 means the next interval and index = -1 the previous interval. VehType defines the vehicle type from (0..number vehicles -1).
double DTATurning::getSpeed | ( | ) | const |
Returns the speed in either m/s (micro/meso) or km/h (macro).
double DTATurning::getSpeed_ms | ( | ) | const |
Returns the speed in m/s.
double DTATurning::getStaDelayT | ( | DTAManager * | dtaManager | ) | const |
Returns the link (section + turn) delay time for the last route choice interval/s.
double DTATurning::getStaDelayTVT | ( | DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass | ||
) | const |
Returns the link (section + turn) delay time for the last route choice interval/s considering the user class.
double DTATurning::getStaDelayTVT | ( | DTAManager * | dtaManager, |
const DTAVehicleType * | vehType | ||
) | const |
Returns the link (section + turn) delay time for the last route choice interval/s considering the vehicle type vehType.
double DTATurning::getStaFlow | ( | DTAManager * | dtaManager | ) | const |
Returns the flow for the last route choice interval/s.
double DTATurning::getStaFlowVT | ( | DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass | ||
) | const |
Returns the flow for the last route choice interval/s considering the user class.
double DTATurning::getStaFlowVT | ( | DTAManager * | dtaManager, |
const DTAVehicleType * | vehType | ||
) | const |
Returns the flow for the last route choice interval/s considering the vehicle type vehType.
double DTATurning::getStaInitialCost | ( | DTAManager * | dtaManager | ) | const |
Returns the cost of the last route choice interval/s using the initial cost function.
double DTATurning::getStaInitialCostVT | ( | DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass | ||
) | const |
Returns the cost of the last route choice interval/s using the initial cost function and considering the user class.
double DTATurning::getStaInitialCostVT | ( | DTAManager * | dtaManager, |
const DTAVehicleType * | vehType | ||
) | const |
Returns the cost of the last route choice interval/s using the initial cost function and considering the vehicle type vehType.
double DTATurning::getStaNbStopVeh | ( | DTAManager * | dtaManager | ) | const |
Returns the number of stops done for the last route choice interval/s. This is only available for turn being modeled using the micro model.
double DTATurning::getStaNbStopVehVT | ( | DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass | ||
) | const |
Returns the number of stops for the last route choice interval/s considering the user class.
double DTATurning::getStaNbStopVehVT | ( | DTAManager * | dtaManager, |
DTAVehicleType * | vehType | ||
) | const |
Returns the number of stops for the last route choice interval/s considering the vehicle type vehType.
double DTATurning::getStaSpeed | ( | DTAManager * | dtaManager | ) | const |
Returns the link (section + turn) speed for the last route choice interval/s.
double DTATurning::getStaSpeedVT | ( | DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass | ||
) | const |
Returns the link (section + turn) speed for the last route choice interval/s considering the user class.
double DTATurning::getStaSpeedVT | ( | DTAManager * | dtaManager, |
const DTAVehicleType * | vehType | ||
) | const |
Returns the link (section + turn) speed for the last route choice interval/s considering the vehicle type vehType.
double DTATurning::getStaStopT | ( | DTAManager * | dtaManager | ) | const |
Returns the stop time for the last route choice interval/s. This is only available for turn being modeled using the micro model.
double DTATurning::getStaStopTVT | ( | DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass | ||
) | const |
Returns the stop time for the last route choice interval/s considering the user class.
double DTATurning::getStaStopTVT | ( | DTAManager * | dtaManager, |
const DTAVehicleType * | vehType | ||
) | const |
Returns the stop time for the last route choice interval/s considering the vehicle type vehType.
double DTATurning::getStaTravelT | ( | DTAManager * | dtaManager | ) | const |
Returns the link (section + turn) travel time for the last route choice interval/s. When the section has waiting time in virtual queue, the waiting time is added to the travel time.
double DTATurning::getStaTravelTNoVQ | ( | const DTAManager * | dtaManager | ) | const |
Returns the link (section + turn) travel time without considering the time in virtual queue for the last route choice interval/s.
double DTATurning::getStaTravelTNoVQVT | ( | const DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass | ||
) | const |
Returns the link (section + turn) travel time without considering the time in virtual queue for the last route choice interval/s considering the vehicle type vehType.
double DTATurning::getStaTravelTNoVQVT | ( | const DTAManager * | dtaManager, |
const DTAVehicleType * | vehType | ||
) | const |
Returns the link (section + turn) travel time without considering the time in virtual queue for the last route choice interval/s considering the vehicle type vehType.
double DTATurning::getStaTravelTVT | ( | DTAManager * | dtaManager, |
const DTAUserClass * | gkUserClass | ||
) | const |
Returns the link (section + turn) travel time for the last route choice interval/s considering the user class. When the section has waiting time in virtual queue, the waiting time is added to the travel time.
double DTATurning::getStaTravelTVT | ( | DTAManager * | dtaManager, |
const DTAVehicleType * | vehType | ||
) | const |
Returns the link (section + turn) travel time for the last route choice interval/s considering the vehicle type vehType. When the section has waiting time in virtual queue, the waiting time is added to the travel time.
double DTATurning::getUncontrolledTime | ( | ) | const |
Gets duration of time with no control defined (Uncontrolled or Unspecified).
double DTATurning::getUserDefinedCost | ( | ) | const |
Returns the turn user defined cost.
double DTATurning::getUserDefinedCost2 | ( | ) | const |
Returns the turn user defined cost 2.
double DTATurning::getUserDefinedCost3 | ( | ) | const |
Returns the turn user defined cost 3.
double DTATurning::getYellowDuration | ( | ) | const |
Gets the yellow-time for this turn [s].
bool DTATurning::isVehicleAllowed | ( | const DTAVehicleType * | vehType | ) | const |
Returns true if vehicle avehtype can go through this turn.
bool DTATurning::isVehicleAllowed | ( | const DTAVehicleType * | vehType, |
int | idCentroideDesti | ||
) | const |
Returns true if vehicle avehtype can go through this turn using the destination centroid. The turn may be closed by a traffic management action that why the destination centroid can be checked too.
double DTATurning::length2D | ( | ) | const |
Returns the 2D length in meters.
double DTATurning::length3D | ( | ) | const |
Returns the length in meters.
void DTATurning::setCapacity | ( | double | capacity | ) |
Sets the turn capacity.
double DTATurning::vdfDefaultCost | ( | DTAManager * | dtaManager | ) | const |
Default VDF cost without considering the vehicle type.
double DTATurning::vdfDefaultCostVT | ( | DTAManager * | dtaManager, |
DTAVehicleType * | vehType | ||
) | const |
Default VDF cost considering the vehicle type.