paramics小车车辆属性相关API
一.QPG_VHC(读取车辆属性及车辆动作状态):
(判断是否加速)qpg_VHC_accelerating:This function returns TRUE if the specified vehicles is accelerating.
(加速度值)qpg_VHC_acceleration:This function returns the current acceleration values used by the vehicle.
(车龄)qpg_VHC_age:This function returns the vehicles age.
(车侵害性值)qpg_VHC_aggression:This function returns the vehicles aggression value.
(获取同一线路上指定车辆前面的车)qpg_VHC_ahead:This function returns a pointer to the vehicle directly infornt of the specified vehicle on the same link.
(车辆意识)qpg_VHC_awareness:This function returns the vehicles awareness value
(获取同一线路上指定车辆后面的车)qpg_VHC_behind:This function returns a pointer to the vehicle directly behind the specified vehicle on the same link.
(车辆正在刹车时返回真)qpg_VHC_braking:This function returns TRUE if the specified vehicles is breaking.
(在公交车道上的车避开公交车到另一个车道时返回真)qpg_VHC_busAvoid:This function returns TRUE if the specified vehicles is changing lanes to avoid a PT vehicle at a PT stop.
(负减速度值)qpg_VHC_deceleration:This function returns the current deceleration value applied to the vehicle.
(与指定车同类型车辆的需求比例)qpg_VHC_demand:This function returns the demand proportion associated with the vehicle’s vehicle type.
(车辆目的地小区索引)qpg_VHC_destination:This function returns an index to the vehicles destination zone.
(如果在仿真中使用了car parks时返回一个与qpg_VHC_destination返回的不一样的最终目的小区的值)qpg_VHC_destinationTrip:This function returns an index to the drivers ultimate destination zone which may be different fro the value returned by qpg_VHC_destination if car parks are used in the simulation.
(返回车头到线路终点的距离)qpg_VHC_distance:This function returns the distance the head of the vehicle is from the end if the link.(of the link)
(返回车辆在线路中的存在时间)qpg_VHC_existTime:This function returns the time the vehicle has existed in the network.
(返回相应车型的熟悉的驾驶员比例)qpg_VHC_familiar:This function returns the familiar driver proportion associated with the vehicle’s vehicle type.
(车辆高度)qpg_VHC_height:This function returns the vehicles height.
(车辆出事故时返回真)qpg_VHC_incident:This function returns TRUE if the specified vehicles is involved in an incident.
(判断车辆是否为公交车)qpg_VHC_isBus:This function returns TRUE if the specified vehicle is a PT vehicle.
(判断车辆是否为重型车辆)qpg_VHC_isHeavy:This function returns TRUE if the specified vehicle is a heavy good vehicle.
(返回车辆所在车道的当前索引)qpg_VHC_lane:This function returns the lane index the vehicle is currently travelling in.
(车辆可接受车道范围的高巷车道索引)qpg_VHC_laneHigh:This function returns the high lane index of the vehicles acceptable lane range.
(车辆可接受车道范围的高巷车道索引)qpg_VHC_laneLow:This function returns the low lane index of the vehicles acceptable lane range.
(车辆长度)qpg_VHC_length:This function returns the length of the vehicle.
(车辆被允许进入时返回真)qpg_VHC_letIn:This function returns TRUE if the specified vehicles let in flag is enabled.
(车辆当前所在线路)qpg_VHC_link:This function returns the link the vehicle is currently travelling on.
温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/68184.html