![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEDemandElementPlan.h>
Protected Member Functions | |
| std::string | getPersonPlanProblem () const |
| get plan problem | |
| GUIGLObjectPopupMenu * | getPlanPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) |
| Returns an own popup-menu. | |
| GNEDemandElementPlan (GNEDemandElement *planElement, const double departPosition, const double arrivalPosition) | |
| constructor | |
| GNEDemandElement::Problem | isPlanPersonValid () const |
| check if plan is valid | |
| void | writeLocationAttributes (OutputDevice &device) const |
| write plan element common attributes | |
| void | writeOriginStop (OutputDevice &device) const |
| write initial stop stage if plan starts at a stopping place | |
path functions | |
| GNELane * | getFirstPlanPathLane () const |
| get first plan path lane | |
| GNELane * | getLastPlanPathLane () const |
| get last plan path lane | |
| void | computePlanPathElement () |
| compute plan pathElement | |
geometry functions | |
| void | updatePlanGeometry () |
| update pre-computed geometry information | |
| Boundary | getPlanCenteringBoundary () const |
| get plan centering boundary | |
| void | updatePlanCenteringBoundary (const bool updateGrid) |
| update plan centering boundary | |
| Position | getPlanPositionInView () const |
| Returns position of additional in view. | |
attribute functions | |
| std::string | getPlanAttribute (SumoXMLAttr key) const |
| get plan attribute string | |
| double | getPlanAttributeDouble (SumoXMLAttr key) const |
| get plan attribute double | |
| Position | getPlanAttributePosition (SumoXMLAttr key) const |
| get plan attribute position | |
| void | setPlanAttribute (SumoXMLAttr key, const std::string &value, GNEUndoList *undoList) |
| set plan attribute | |
| bool | isPlanValid (SumoXMLAttr key, const std::string &value) |
| check if plan attribute is valid | |
| bool | isPlanAttributeEnabled (SumoXMLAttr key) const |
| check if plan attribute is enabled | |
| void | setPlanAttribute (SumoXMLAttr key, const std::string &value) |
| set plan attribute (intern) | |
| std::string | getPlanHierarchyName () const |
| get plan Hierarchy Name (Used in AC Hierarchy) | |
drawing functions | |
| bool | checkDrawPersonPlan () const |
| check if person plan can be drawn | |
| bool | checkDrawContainerPlan () const |
| check if container plan can be drawn | |
| void | drawPlanGL (const bool drawPlan, const GUIVisualizationSettings &s, const RGBColor &planColor, const RGBColor &planSelectedColor) const |
| draw plan | |
| void | drawPlanLanePartial (const bool drawPlan, const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront, const double planWidth, const RGBColor &planColor, const RGBColor &planSelectedColor) const |
| draw plan partial lane | |
| void | drawPlanJunctionPartial (const bool drawPlan, const GUIVisualizationSettings &s, const GNESegment *segment, const double offsetFront, const double planWidth, const RGBColor &planColor, const RGBColor &planSelectedColor) const |
| draw plan partial junction | |
Protected Attributes | |
| double | myArrivalPosition |
| arrival position (used in all plans over edges) | |
| double | myDepartPosition |
| depart position (used in tranships) | |
| GNEMoveElementPlan * | myMoveElementPlan = nullptr |
| move element plan | |
| Boundary | myPlanBoundary |
| plan boundary | |
| GNEContour | myPlanContour |
| variable used for draw central contour | |
| GNEContour | myPlanContourEnd |
| variable used for draw contour end | |
Private Member Functions | |
| void | drawEndPosition (const GUIVisualizationSettings &s, const GUIVisualizationSettings::Detail d, const double endPosRadius) const |
| draw to arrow | |
| void | drawFromArrow (const GUIVisualizationSettings &s, const GNELane *lane, const GNESegment *segment) const |
| draw from arrow | |
| void | drawToArrow (const GUIVisualizationSettings &s, const GNELane *lane, const GNESegment *segment) const |
| draw to arrow | |
| double | getEndPosRadius (const GUIVisualizationSettings &s, const GNESegment *segment, const bool drawHalfWidth) const |
| get end position radius | |
| GNEDemandElementPlan (const GNEDemandElementPlan &)=delete | |
| Invalidated copy constructor. | |
| GNEDemandElementPlan & | operator= (const GNEDemandElementPlan &)=delete |
| Invalidated assignment operator. | |
| bool | replacePlanParent (const std::string &newParentID) |
| replace plan parent | |
Private Attributes | |
| GNEDemandElement * | myPlanElement |
| pointer to plan element | |
Static Private Attributes | |
| static const double | myArrivalPositionDiameter = SUMO_const_halfLaneWidth |
| arrival position diameter | |
Definition at line 45 of file GNEDemandElementPlan.h.
|
protected |
constructor
Definition at line 40 of file GNEDemandElementPlan.cpp.
|
privatedelete |
Invalidated copy constructor.
|
protected |
check if container plan can be drawn
Definition at line 894 of file GNEDemandElementPlan.cpp.
References GNEAttributeCarrier::getAttribute(), GNEViewNet::getInspectedElements(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNENet::getViewNet(), GNE_ATTR_PARENT, GNEAttributeCarrier::isAttributeCarrierSelected(), and myPlanElement.
Referenced by GNEStopPlan::drawGL(), GNETranship::drawGL(), GNETransport::drawGL(), GNETranship::drawJunctionPartialGL(), GNETransport::drawJunctionPartialGL(), GNETranship::drawLanePartialGL(), and GNETransport::drawLanePartialGL().
|
protected |
check if person plan can be drawn
Definition at line 857 of file GNEDemandElementPlan.cpp.
References GNEAttributeCarrier::getAttribute(), GNEViewNet::getInspectedElements(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNENet::getViewNet(), GNE_ATTR_PARENT, GNEAttributeCarrier::isAttributeCarrierSelected(), and myPlanElement.
Referenced by GNEPersonTrip::drawGL(), GNERide::drawGL(), GNEStopPlan::drawGL(), GNEWalk::drawGL(), GNEPersonTrip::drawJunctionPartialGL(), GNERide::drawJunctionPartialGL(), GNEWalk::drawJunctionPartialGL(), GNEPersonTrip::drawLanePartialGL(), GNERide::drawLanePartialGL(), and GNEWalk::drawLanePartialGL().
|
protected |
compute plan pathElement
Definition at line 198 of file GNEDemandElementPlan.cpp.
References GNEPathManager::calculateConsecutivePathEdges(), GNENet::getDemandPathManager(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEAttributeCarrier::getTagProperty(), GNEDemandElement::getVClass(), myPlanElement, GNEAttributeCarrier::myTagProperty, GNETagProperties::planFromEdge(), GNETagProperties::planFromJunction(), GNETagProperties::planFromStoppingPlace(), GNETagProperties::planStoppingPlace(), GNETagProperties::planToEdge(), GNETagProperties::planToJunction(), GNETagProperties::planToStoppingPlace(), and updatePlanGeometry().
Referenced by GNEPersonTrip::computePathElement(), GNERide::computePathElement(), GNETranship::computePathElement(), GNETransport::computePathElement(), and GNEWalk::computePathElement().
|
private |
draw to arrow
Definition at line 1306 of file GNEDemandElementPlan.cpp.
References GLHelper::drawFilledCircleDetailled(), getPlanAttributePosition(), GNE_ATTR_PLAN_GEOMETRY_ENDPOS, GLHelper::popMatrix(), GLHelper::pushMatrix(), Position::x(), and Position::y().
|
private |
draw from arrow
Definition at line 1266 of file GNEDemandElementPlan.cpp.
References GUIGeometry::drawChildLine(), GNELane::getLaneShape(), GNESegment::getNextLane(), GNEAttributeCarrier::isAttributeCarrierSelected(), myPlanElement, GLHelper::popMatrix(), GLHelper::pushMatrix(), and RGBColor::RED.
Referenced by drawPlanLanePartial().
|
protected |
draw plan
Definition at line 931 of file GNEDemandElementPlan.cpp.
References GNEContour::calculateContourCircleShape(), GNEContour::calculateContourExtrudedShape(), GUIVisualizationSettings::checkDrawContainer(), GUIVisualizationSettings::checkDrawPerson(), GUIVisualizationSettings::dottedContourSettings, GUIVisualizationSettings::drawBoundaries, GLHelper::drawBoundary(), GNEContour::drawDottedContours(), GUIGeometry::drawGeometry(), GUIGlObject::drawGL(), GNEAttributeCarrier::drawInLayer(), GLHelper::drawTriangleAtEnd(), GNEAttributeCarrier::drawUsingSelectColor(), GUIVisualizationSettings::getDetailLevel(), GNEViewNet::getInspectedElements(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), getPlanCenteringBoundary(), GNEDemandElement::getPreviousChildDemandElement(), GNEAttributeCarrier::getTagProperty(), GUIGlObject::getType(), GNENet::getViewNet(), GLO_TAZ, gViewObjectsHandler, GNEAttributeCarrier::isAttributeCarrierSelected(), GUIViewObjectsHandler::isObjectSelected(), GNEDemandElement::myDemandElementGeometry, myPlanContour, myPlanContourEnd, myPlanElement, GUIVisualizationWidthSettings::personTripWidth, GLHelper::popMatrix(), GLHelper::pushMatrix(), GUIVisualizationWidthSettings::rideWidth, GUIVisualizationDottedContourSettings::segmentWidth, GLHelper::setColor(), GUIVisualizationWidthSettings::walkWidth, and GUIVisualizationSettings::widthSettings.
Referenced by GNEPersonTrip::drawGL(), GNERide::drawGL(), GNETranship::drawGL(), GNETransport::drawGL(), and GNEWalk::drawGL().
|
protected |
draw plan partial junction
Definition at line 1104 of file GNEDemandElementPlan.cpp.
References GUIVisualizationSettings::addSize, GUIViewObjectsHandler::addToRedrawPathElements(), GNEContour::calculateContourExtrudedShape(), GNEContour::checkDrawPathContour(), GNEPathManager::PathDraw::checkDrawPathGeometry(), GUIVisualizationSettings::dottedContourSettings, GUIVisualizationSettings::drawBoundaries, GLHelper::drawBoundary(), GLHelper::drawBoxLines(), GNEContour::drawDottedContours(), GUIVisualizationSettings::drawForViewObjectsHandler, GUIGeometry::drawGeometry(), GUIGlObject::drawGL(), GNEAttributeCarrier::drawInLayer(), GNEViewNetHelper::LockIcon::drawLockIcon(), GNEAttributeCarrier::drawUsingSelectColor(), GNELane2laneConnection::exist(), GNESegment::getContour(), GNENet::getDemandPathManager(), GUIVisualizationSettings::getDetailLevel(), GUIVisualizationSizeSettings::getExaggeration(), GNEViewNet::getInspectedElements(), GNESegment::getJunction(), GNESegment::getLane(), GNELane::getLane2laneConnections(), GNELane2laneConnection::getLane2laneGeometry(), GNELane::getLaneShape(), GNEAttributeCarrier::getNet(), GNESegment::getNextLane(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentJunctions(), GNEPathManager::getPathDraw(), getPlanCenteringBoundary(), GNEDemandElement::getPositionInView(), GNEDemandElement::getPreviousChildDemandElement(), GNESegment::getPreviousLane(), GUIGeometry::getShape(), GNEAttributeCarrier::getTagProperty(), GUIGlObject::getType(), GNENet::getViewNet(), gViewObjectsHandler, GUIViewObjectsHandler::isObjectSelected(), GUIViewObjectsHandler::isPathElementMarkForRedraw(), myPlanElement, GLHelper::popMatrix(), GLHelper::pushMatrix(), RGBColor::RED, GUIVisualizationDottedContourSettings::segmentWidth, and GLHelper::setColor().
Referenced by GNEPersonTrip::drawJunctionPartialGL(), GNERide::drawJunctionPartialGL(), GNETranship::drawJunctionPartialGL(), GNETransport::drawJunctionPartialGL(), and GNEWalk::drawJunctionPartialGL().
|
protected |
draw plan partial lane
Definition at line 992 of file GNEDemandElementPlan.cpp.
References GUIVisualizationSettings::addName, GUIVisualizationSettings::addSize, GUIViewObjectsHandler::addToRedrawPathElements(), GNEContour::calculateContourCircleShape(), GNEContour::calculateContourExtrudedShape(), GUIVisualizationSettings::checkDrawContainer(), GNEContour::checkDrawPathContour(), GNEPathManager::PathDraw::checkDrawPathGeometry(), GUIVisualizationSettings::checkDrawPerson(), GUIVisualizationSettings::dottedContourSettings, GUIVisualizationSettings::drawBoundaries, GLHelper::drawBoundary(), GNEContour::drawDottedContours(), drawFromArrow(), GUIGeometry::drawGeometry(), GUIGlObject::drawGL(), GNEAttributeCarrier::drawInLayer(), GUIGlObject::drawName(), drawToArrow(), GNEAttributeCarrier::drawUsingSelectColor(), Boundary::getCenter(), GUIGlObject::getCenteringBoundary(), GNESegment::getContour(), GNENet::getDemandPathManager(), GUIVisualizationSettings::getDetailLevel(), getEndPosRadius(), GUIVisualizationSizeSettings::getExaggeration(), GNEViewNet::getInspectedElements(), GNESegment::getLane(), GNELane::getLaneGeometry(), GNELane::getLaneShape(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentDemandElements(), GNELane::getParentEdge(), GNEPathManager::getPathDraw(), getPlanAttributeDouble(), getPlanAttributePosition(), getPlanCenteringBoundary(), GNEDemandElement::getPreviousChildDemandElement(), GUIGeometry::getShape(), GNEAttributeCarrier::getTagProperty(), GUIGlObject::getType(), GNENet::getViewNet(), GNE_ATTR_PLAN_GEOMETRY_ENDPOS, GNE_ATTR_PLAN_GEOMETRY_STARTPOS, gViewObjectsHandler, Position::INVALID, GNEAttributeCarrier::isAttributeCarrierSelected(), GNESegment::isFirstSegment(), GNESegment::isLastSegment(), GUIViewObjectsHandler::isObjectSelected(), GUIViewObjectsHandler::isPathElementMarkForRedraw(), myPlanContourEnd, myPlanElement, GLHelper::popMatrix(), GLHelper::pushMatrix(), GUIVisualizationSettings::scale, GUIVisualizationDottedContourSettings::segmentWidth, GLHelper::setColor(), and GUIGeometry::updateGeometry().
Referenced by GNEPersonTrip::drawLanePartialGL(), GNERide::drawLanePartialGL(), GNETranship::drawLanePartialGL(), GNETransport::drawLanePartialGL(), and GNEWalk::drawLanePartialGL().
|
private |
draw to arrow
Definition at line 1286 of file GNEDemandElementPlan.cpp.
References GUIGeometry::drawChildLine(), GNELane::getLaneShape(), GNESegment::getPreviousLane(), GNEAttributeCarrier::isAttributeCarrierSelected(), myPlanElement, GLHelper::popMatrix(), GLHelper::pushMatrix(), and RGBColor::RED.
Referenced by drawPlanLanePartial().
|
private |
get end position radius
Definition at line 1253 of file GNEDemandElementPlan.cpp.
References GNESegment::isLastSegment(), GUIVisualizationSettings::laneWidthExaggeration, MIN2(), and myArrivalPositionDiameter.
Referenced by drawPlanLanePartial().
|
protected |
get first plan path lane
Definition at line 152 of file GNEDemandElementPlan.cpp.
References GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEAttributeCarrier::getTagProperty(), GNEDemandElement::getVClass(), and myPlanElement.
Referenced by GNEPersonTrip::getFirstPathLane(), GNERide::getFirstPathLane(), GNEStopPlan::getFirstPathLane(), GNETranship::getFirstPathLane(), GNETransport::getFirstPathLane(), and GNEWalk::getFirstPathLane().
|
protected |
get last plan path lane
Definition at line 175 of file GNEDemandElementPlan.cpp.
References GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEAttributeCarrier::getTagProperty(), GNEDemandElement::getVClass(), and myPlanElement.
Referenced by GNEPersonTrip::getLastPathLane(), GNERide::getLastPathLane(), GNEStopPlan::getLastPathLane(), GNETranship::getLastPathLane(), GNETransport::getLastPathLane(), and GNEWalk::getLastPathLane().
|
protected |
get plan problem
Definition at line 1220 of file GNEDemandElementPlan.cpp.
References GNEPathElement::getLastPathLane(), GNEHierarchicalElement::getParentDemandElements(), myPlanElement, and TLF.
Referenced by GNEPersonTrip::getDemandElementProblem(), GNERide::getDemandElementProblem(), GNEStopPlan::getDemandElementProblem(), GNETranship::getDemandElementProblem(), GNETransport::getDemandElementProblem(), and GNEWalk::getDemandElementProblem().
|
protected |
get plan attribute string
Definition at line 417 of file GNEDemandElementPlan.cpp.
References GNEAttributeCarrier::getCommonAttribute(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEHierarchicalElement::getParentTAZs(), GNE_ATTR_FROM_BUSSTOP, GNE_ATTR_FROM_CHARGINGSTATION, GNE_ATTR_FROM_CONTAINERSTOP, GNE_ATTR_FROM_PARKINGAREA, GNE_ATTR_FROM_TRAINSTOP, GNE_ATTR_PARENT, myArrivalPosition, myDepartPosition, myPlanElement, GNEAttributeCarrier::parseIDs(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_ENDPOS, SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_ID, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_TRAIN_STOP, and toString().
Referenced by GNEPersonTrip::getAttribute(), GNERide::getAttribute(), GNEStopPlan::getAttribute(), GNETranship::getAttribute(), GNETransport::getAttribute(), and GNEWalk::getAttribute().
|
protected |
get plan attribute double
Definition at line 478 of file GNEDemandElementPlan.cpp.
References GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_PLAN_GEOMETRY_ENDPOS, GNE_ATTR_PLAN_GEOMETRY_STARTPOS, INVALID_DOUBLE, myArrivalPosition, myDepartPosition, myPlanElement, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_ENDPOS, SUMO_ATTR_STARTPOS, and toString().
Referenced by drawPlanLanePartial(), GNEPersonTrip::getAttributeDouble(), GNERide::getAttributeDouble(), GNEStopPlan::getAttributeDouble(), GNETranship::getAttributeDouble(), GNETransport::getAttributeDouble(), and GNEWalk::getAttributeDouble().
|
protected |
get plan attribute position
Definition at line 559 of file GNEDemandElementPlan.cpp.
References GNEPathElement::getFirstPathLane(), GNEPathElement::getLastPathLane(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEHierarchicalElement::getParentTAZs(), GNEAttributeCarrier::getTagProperty(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_PLAN_GEOMETRY_ENDPOS, GNE_ATTR_PLAN_GEOMETRY_STARTPOS, GNE_ATTR_TAZ_CENTROID, Position::INVALID, myArrivalPosition, myPlanElement, SUMO_ATTR_CENTER, SUMO_ATTR_DEPARTPOS, and toString().
Referenced by drawEndPosition(), drawPlanLanePartial(), GNEPersonTrip::getAttributePosition(), GNERide::getAttributePosition(), GNEStopPlan::getAttributePosition(), GNETranship::getAttributePosition(), GNETransport::getAttributePosition(), and GNEWalk::getAttributePosition().
|
protected |
get plan centering boundary
Definition at line 337 of file GNEDemandElementPlan.cpp.
References myPlanBoundary.
Referenced by drawPlanGL(), drawPlanJunctionPartial(), drawPlanLanePartial(), GNEPersonTrip::getCenteringBoundary(), GNERide::getCenteringBoundary(), GNEStopPlan::getCenteringBoundary(), GNETranship::getCenteringBoundary(), GNETransport::getCenteringBoundary(), and GNEWalk::getCenteringBoundary().
|
protected |
get plan Hierarchy Name (Used in AC Hierarchy)
Definition at line 791 of file GNEDemandElementPlan.cpp.
References GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEHierarchicalElement::getParentTAZs(), GNEAttributeCarrier::getTagProperty(), and myPlanElement.
Referenced by GNEPersonTrip::getHierarchyName(), GNERide::getHierarchyName(), GNEStopPlan::getHierarchyName(), GNETranship::getHierarchyName(), GNETransport::getHierarchyName(), and GNEWalk::getHierarchyName().
|
protected |
Returns an own popup-menu.
Definition at line 141 of file GNEDemandElementPlan.cpp.
References GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildPopUpMenuCommonOptions(), getPlanPositionInView(), GNETagProperties::getTag(), GNEAttributeCarrier::getTagProperty(), GNENet::getViewNet(), GNEAttributeCarrier::isAttributeCarrierSelected(), GNEAttributeCarrier::myNet, myPlanElement, and toString().
Referenced by GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNETranship::getPopUpMenu(), GNETransport::getPopUpMenu(), and GNEWalk::getPopUpMenu().
|
protected |
Returns position of additional in view.
Definition at line 385 of file GNEDemandElementPlan.cpp.
References GNEDemandElement::getDemandElementGeometry(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEHierarchicalElement::getParentTAZs(), GUIGeometry::getShape(), GNEAttributeCarrier::getTagProperty(), GNE_ATTR_TAZ_CENTROID, myPlanElement, and SUMO_ATTR_CENTER.
Referenced by getPlanPopUpMenu(), GNEPersonTrip::getPositionInView(), GNERide::getPositionInView(), GNEStopPlan::getPositionInView(), GNETranship::getPositionInView(), GNETransport::getPositionInView(), and GNEWalk::getPositionInView().
|
protected |
check if plan attribute is enabled
Definition at line 709 of file GNEDemandElementPlan.cpp.
References GNE_ATTR_FROM_BUSSTOP, GNE_ATTR_FROM_CHARGINGSTATION, GNE_ATTR_FROM_CONTAINERSTOP, GNE_ATTR_FROM_PARKINGAREA, GNE_ATTR_FROM_TRAINSTOP, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, and SUMO_ATTR_TRAIN_STOP.
Referenced by GNEPersonTrip::isAttributeEnabled(), GNERide::isAttributeEnabled(), GNEStopPlan::isAttributeEnabled(), GNETranship::isAttributeEnabled(), GNETransport::isAttributeEnabled(), and GNEWalk::isAttributeEnabled().
|
protected |
check if plan is valid
Definition at line 1187 of file GNEDemandElementPlan.cpp.
References GNEDemandElement::DISCONNECTED_PLAN, GNEPathElement::getFirstPathLane(), GNEPathElement::getLastPathLane(), GNEHierarchicalElement::getParentDemandElements(), myPlanElement, and GNEDemandElement::OK.
Referenced by GNEPersonTrip::isDemandElementValid(), GNERide::isDemandElementValid(), GNEStopPlan::isDemandElementValid(), GNETranship::isDemandElementValid(), GNETransport::isDemandElementValid(), and GNEWalk::isDemandElementValid().
|
protected |
check if plan attribute is valid
Definition at line 685 of file GNEDemandElementPlan.cpp.
References GNE_ATTR_PARENT, GNEAttributeCarrier::isCommonAttributeValid(), myPlanElement, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, and SUMO_ATTR_ENDPOS.
Referenced by GNEPersonTrip::isValid(), GNERide::isValid(), GNEStopPlan::isValid(), GNETranship::isValid(), GNETransport::isValid(), and GNEWalk::isValid().
|
privatedelete |
Invalidated assignment operator.
|
private |
replace plan parent
Definition at line 1323 of file GNEDemandElementPlan.cpp.
References GNENet::getAttributeCarriers(), GNEAttributeCarrier::getNet(), GNETagProperties::isPlanPerson(), myPlanElement, GNEAttributeCarrier::myTagProperty, GNEDemandElement::replaceDemandElementParent(), GNENetHelper::AttributeCarriers::retrieveDemandElement(), SUMO_TAG_CONTAINER, SUMO_TAG_CONTAINERFLOW, SUMO_TAG_PERSON, and SUMO_TAG_PERSONFLOW.
Referenced by setPlanAttribute().
|
protected |
set plan attribute (intern)
Definition at line 745 of file GNEDemandElementPlan.cpp.
References GNEPathElement::computePathElement(), GNE_ATTR_PARENT, GNEAttributeCarrier::isTemplate(), myArrivalPosition, myDepartPosition, myPlanElement, GNEDemandElement::replaceFirstParentEdge(), GNEDemandElement::replaceLastParentEdge(), replacePlanParent(), GNEAttributeCarrier::setCommonAttribute(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_ENDPOS, SUMO_ATTR_FROM, SUMO_ATTR_TO, and GNEAttributeCarrier::updateGeometry().
|
protected |
set plan attribute
Definition at line 667 of file GNEDemandElementPlan.cpp.
References GNEChange_Attribute::changeAttribute(), GNE_ATTR_PARENT, myPlanElement, GNEAttributeCarrier::setCommonAttribute(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, and SUMO_ATTR_ENDPOS.
Referenced by GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNEStopPlan::setAttribute(), GNETranship::setAttribute(), GNETransport::setAttribute(), GNEWalk::setAttribute(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNEStopPlan::setAttribute(), GNETranship::setAttribute(), GNETransport::setAttribute(), and GNEWalk::setAttribute().
|
protected |
update plan centering boundary
Definition at line 343 of file GNEDemandElementPlan.cpp.
References Boundary::add(), GNENet::addGLObjectIntoGrid(), PositionVector::getBoxBoundary(), GNEDemandElement::getDemandElementGeometry(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentAdditionals(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GUIGeometry::getShape(), GNE_ATTR_TAZ_CENTROID, Boundary::grow(), Boundary::isInitialised(), myPlanBoundary, myPlanElement, GNENet::removeGLObjectFromGrid(), SUMO_ATTR_CENTER, and SUMO_TAG_TAZ.
Referenced by GNEPersonTrip::GNEPersonTrip(), GNERide::GNERide(), GNEStopPlan::GNEStopPlan(), GNETranship::GNETranship(), GNETransport::GNETransport(), GNEWalk::GNEWalk(), and updatePlanGeometry().
|
protected |
update pre-computed geometry information
Definition at line 276 of file GNEDemandElementPlan.cpp.
References GUIGeometry::clearGeometry(), GNEHierarchicalElement::getChildDemandElements(), GNEPathElement::getFirstPathLane(), GNELane::getLaneShape(), GNEPathElement::getLastPathLane(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEHierarchicalElement::getParentTAZs(), GNEAttributeCarrier::getTagProperty(), GNE_ATTR_TAZ_CENTROID, Position::INVALID, GNEDemandElement::myDemandElementGeometry, myPlanElement, SUMO_ATTR_CENTER, GUIGeometry::updateGeometry(), and updatePlanCenteringBoundary().
Referenced by computePlanPathElement(), GNEPersonTrip::updateGeometry(), GNERide::updateGeometry(), GNETranship::updateGeometry(), GNETransport::updateGeometry(), and GNEWalk::updateGeometry().
|
protected |
write plan element common attributes
Definition at line 49 of file GNEDemandElementPlan.cpp.
References GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEHierarchicalElement::getParentTAZs(), GNEAttributeCarrier::getTagProperty(), myArrivalPosition, myDepartPosition, myPlanElement, GNEAttributeCarrier::parseIDs(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_EDGE, SUMO_ATTR_EDGES, SUMO_ATTR_ENDPOS, SUMO_ATTR_FROM, SUMO_ATTR_FROM_JUNCTION, SUMO_ATTR_FROM_TAZ, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_ROUTE, SUMO_ATTR_TO, SUMO_ATTR_TO_JUNCTION, SUMO_ATTR_TO_TAZ, SUMO_ATTR_TRAIN_STOP, and OutputDevice::writeAttr().
Referenced by GNEPersonTrip::writeDemandElement(), GNERide::writeDemandElement(), GNEStopPlan::writeDemandElement(), GNETranship::writeDemandElement(), GNETransport::writeDemandElement(), and GNEWalk::writeDemandElement().
|
protected |
write initial stop stage if plan starts at a stopping place
Definition at line 116 of file GNEDemandElementPlan.cpp.
References OutputDevice::closeTag(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEAttributeCarrier::getTagProperty(), myPlanElement, OutputDevice::openTag(), SUMO_ATTR_BUS_STOP, SUMO_ATTR_CHARGING_STATION, SUMO_ATTR_CONTAINER_STOP, SUMO_ATTR_DURATION, SUMO_ATTR_PARKING_AREA, SUMO_ATTR_TRAIN_STOP, SUMO_TAG_STOP, and OutputDevice::writeAttr().
Referenced by GNEPersonTrip::writeDemandElement(), GNERide::writeDemandElement(), GNETranship::writeDemandElement(), GNETransport::writeDemandElement(), and GNEWalk::writeDemandElement().
|
protected |
arrival position (used in all plans over edges)
Definition at line 164 of file GNEDemandElementPlan.h.
Referenced by getPlanAttribute(), getPlanAttributeDouble(), getPlanAttributePosition(), setPlanAttribute(), and writeLocationAttributes().
|
staticprivate |
arrival position diameter
Definition at line 186 of file GNEDemandElementPlan.h.
Referenced by getEndPosRadius().
|
protected |
depart position (used in tranships)
Definition at line 161 of file GNEDemandElementPlan.h.
Referenced by getPlanAttribute(), getPlanAttributeDouble(), setPlanAttribute(), and writeLocationAttributes().
|
protected |
move element plan
Definition at line 49 of file GNEDemandElementPlan.h.
Referenced by GNEPersonTrip::getMoveElement(), GNERide::getMoveElement(), GNEStopPlan::getMoveElement(), GNETranship::getMoveElement(), GNETransport::getMoveElement(), and GNEWalk::getMoveElement().
|
protected |
plan boundary
Definition at line 58 of file GNEDemandElementPlan.h.
Referenced by getPlanCenteringBoundary(), and updatePlanCenteringBoundary().
|
protected |
variable used for draw central contour
Definition at line 52 of file GNEDemandElementPlan.h.
Referenced by drawPlanGL().
|
protected |
variable used for draw contour end
Definition at line 55 of file GNEDemandElementPlan.h.
Referenced by drawPlanGL(), and drawPlanLanePartial().
|
private |
pointer to plan element
Definition at line 183 of file GNEDemandElementPlan.h.
Referenced by checkDrawContainerPlan(), checkDrawPersonPlan(), computePlanPathElement(), drawFromArrow(), drawPlanGL(), drawPlanJunctionPartial(), drawPlanLanePartial(), drawToArrow(), getFirstPlanPathLane(), getLastPlanPathLane(), getPersonPlanProblem(), getPlanAttribute(), getPlanAttributeDouble(), getPlanAttributePosition(), getPlanHierarchyName(), getPlanPopUpMenu(), getPlanPositionInView(), isPlanPersonValid(), isPlanValid(), replacePlanParent(), setPlanAttribute(), setPlanAttribute(), updatePlanCenteringBoundary(), updatePlanGeometry(), writeLocationAttributes(), and writeOriginStop().