本文整理汇总了C++中MESegment::getMaxSpeed方法的典型用法代码示例。如果您正苦于以下问题:C++ MESegment::getMaxSpeed方法的具体用法?C++ MESegment::getMaxSpeed怎么用?C++ MESegment::getMaxSpeed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MESegment
的用法示例。
在下文中一共展示了MESegment::getMaxSpeed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: GUIParameterTableWindow
GUIParameterTableWindow*
GUIEdge::getParameterWindow(GUIMainWindow& app,
GUISUMOAbstractView& parent) {
GUIParameterTableWindow* ret = 0;
#ifdef HAVE_INTERNAL
ret = new GUIParameterTableWindow(app, *this, 16);
// add edge items
ret->mkItem("length [m]", false, (*myLanes)[0]->getLength());
ret->mkItem("allowed speed [m/s]", false, getAllowedSpeed());
ret->mkItem("occupancy [%]", true, new FunctionBinding<GUIEdge, SUMOReal>(this, &GUIEdge::getBruttoOccupancy, 100.));
ret->mkItem("mean vehicle speed [m/s]", true, new FunctionBinding<GUIEdge, SUMOReal>(this, &GUIEdge::getMeanSpeed));
ret->mkItem("flow [veh/h/lane]", true, new FunctionBinding<GUIEdge, SUMOReal>(this, &GUIEdge::getFlow));
ret->mkItem("#vehicles", true, new CastingFunctionBinding<GUIEdge, SUMOReal, unsigned int>(this, &GUIEdge::getVehicleNo));
ret->mkItem("vehicle ids", false, getVehicleIDs());
// add segment items
MESegment* segment = getSegmentAtPosition(parent.getPositionInformation());
ret->mkItem("segment index", false, segment->getIndex());
ret->mkItem("segment length [m]", false, segment->getLength());
ret->mkItem("segment allowed speed [m/s]", false, segment->getMaxSpeed());
ret->mkItem("segment jam threshold [%]", false, segment->getRelativeJamThreshold());
ret->mkItem("segment occupancy [%]", true, new FunctionBinding<MESegment, SUMOReal>(segment, &MESegment::getRelativeOccupancy));
ret->mkItem("segment mean vehicle speed [m/s]", true, new FunctionBinding<MESegment, SUMOReal>(segment, &MESegment::getMeanSpeed));
ret->mkItem("segment flow [veh/h/lane]", true, new FunctionBinding<MESegment, SUMOReal>(segment, &MESegment::getFlow));
ret->mkItem("segment #vehicles", true, new CastingFunctionBinding<MESegment, SUMOReal, size_t>(segment, &MESegment::getCarNumber));
ret->mkItem("segment leader leave time", true, new FunctionBinding<MESegment, SUMOReal>(segment, &MESegment::getEventTimeSeconds));
// close building
ret->closeBuilding();
#else
UNUSED_PARAMETER(app);
UNUSED_PARAMETER(parent);
#endif
return ret;
}