Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEDemandElementPlan.h>
Static Public Member Functions | |
static std::pair< SumoXMLTag, GUIIcon > | getContainerStopTagIcon (const CommonXMLStructure::PlanParameters &planParameters) |
get the container stop tag and icon for the combination | |
static std::pair< SumoXMLTag, GUIIcon > | getPersonStopTagIcon (const CommonXMLStructure::PlanParameters &planParameters) |
get the person stop tag and icon for the combination | |
static std::pair< SumoXMLTag, GUIIcon > | getPersonTripTagIcon (const CommonXMLStructure::PlanParameters &planParameters) |
get the personTrip tag and icon for the combination | |
static std::pair< SumoXMLTag, GUIIcon > | getRideTagIcon (const CommonXMLStructure::PlanParameters &planParameters) |
get the ride tag and icon for the combination | |
static std::pair< SumoXMLTag, GUIIcon > | getTranshipTagIcon (const CommonXMLStructure::PlanParameters &planParameters) |
get the tranship tag and icon for the combination | |
static std::pair< SumoXMLTag, GUIIcon > | getTransportTagIcon (const CommonXMLStructure::PlanParameters &planParameters) |
get the transport tag and icon for the combination | |
static std::pair< SumoXMLTag, GUIIcon > | getWalkTagIcon (const CommonXMLStructure::PlanParameters &planParameters) |
get the walk tag and icon for the combination | |
Protected Member Functions | |
std::string | getPersonPlanProblem () const |
get plan problem | |
GNEMoveOperation * | getPlanMoveOperation () |
get move operation | |
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) | |
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 44 of file GNEDemandElementPlan.h.
|
protected |
constructor
Definition at line 939 of file GNEDemandElementPlan.cpp.
References updatePlanCenteringBoundary().
|
privatedelete |
Invalidated copy constructor.
|
protected |
check if container plan can be drawn
Definition at line 1828 of file GNEDemandElementPlan.cpp.
References GNEDemandElement::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 1791 of file GNEDemandElementPlan.cpp.
References GNEDemandElement::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 1131 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 2235 of file GNEDemandElementPlan.cpp.
References GLHelper::drawFilledCircleDetailled(), GUIVisualizationSettings::drawForRectangleSelection, getPlanAttributePosition(), GNE_ATTR_PLAN_GEOMETRY_ENDPOS, GLHelper::popMatrix(), GLHelper::pushMatrix(), Position::x(), and Position::y().
|
private |
draw from arrow
Definition at line 2195 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 1865 of file GNEDemandElementPlan.cpp.
References GNEContour::calculateContourCircleShape(), GNEContour::calculateContourExtrudedShape(), GUIVisualizationSettings::checkDrawContainer(), GUIVisualizationSettings::checkDrawPerson(), GUIVisualizationSettings::dottedContourSettings, GUIVisualizationSettings::drawBoundaries, GLHelper::drawBoundary(), GNEContour::drawDottedContours(), GUIGeometry::drawGeometry(), GNEDemandElement::drawGL(), 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 2033 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(), GNEDemandElement::drawGL(), GNEViewNetHelper::LockIcon::drawLockIcon(), GNEAttributeCarrier::drawUsingSelectColor(), GNELane2laneConnection::exist(), GNESegment::getContour(), GNENet::getDemandPathManager(), GUIVisualizationSettings::getDetailLevel(), GUIVisualizationSizeSettings::getExaggeration(), GNEViewNet::getInspectedElements(), 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 1925 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(), GNEDemandElement::drawGL(), 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(), 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 2215 of file GNEDemandElementPlan.cpp.
References GUIGeometry::drawChildLine(), GNELane::getLaneShape(), GNESegment::getPreviousLane(), GNEAttributeCarrier::isAttributeCarrierSelected(), myPlanElement, GLHelper::popMatrix(), GLHelper::pushMatrix(), and RGBColor::RED.
Referenced by drawPlanLanePartial().
|
static |
get the container stop tag and icon for the combination
Definition at line 920 of file GNEDemandElementPlan.cpp.
References EMPTY, GNE_TAG_STOPCONTAINER_BUSSTOP, GNE_TAG_STOPCONTAINER_CHARGINGSTATION, GNE_TAG_STOPCONTAINER_CONTAINERSTOP, GNE_TAG_STOPCONTAINER_EDGE, GNE_TAG_STOPCONTAINER_PARKINGAREA, GNE_TAG_STOPCONTAINER_TRAINSTOP, STOPELEMENT, SUMO_TAG_NOTHING, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toParkingArea, and CommonXMLStructure::PlanParameters::toTrainStop.
Referenced by GNERouteHandler::buildContainerStop(), and GNEPlanCreator::planCanBeCreated().
|
private |
get end position radius
Definition at line 2182 of file GNEDemandElementPlan.cpp.
References GNESegment::isLastSegment(), GUIVisualizationSettings::laneWidthExaggeration, MIN2(), and myArrivalPositionDiameter.
Referenced by drawPlanLanePartial().
|
protected |
get first plan path lane
Definition at line 1085 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 1108 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 2149 of file GNEDemandElementPlan.cpp.
References GNEDemandElement::getLastPathLane(), GNEHierarchicalElement::getParentDemandElements(), myPlanElement, and TLF.
Referenced by GNEPersonTrip::getDemandElementProblem(), GNERide::getDemandElementProblem(), GNEStopPlan::getDemandElementProblem(), GNETranship::getDemandElementProblem(), GNETransport::getDemandElementProblem(), and GNEWalk::getDemandElementProblem().
|
static |
get the person stop tag and icon for the combination
Definition at line 900 of file GNEDemandElementPlan.cpp.
References EMPTY, GNE_TAG_STOPPERSON_BUSSTOP, GNE_TAG_STOPPERSON_CHARGINGSTATION, GNE_TAG_STOPPERSON_CONTAINERSTOP, GNE_TAG_STOPPERSON_EDGE, GNE_TAG_STOPPERSON_PARKINGAREA, GNE_TAG_STOPPERSON_TRAINSTOP, STOPELEMENT, SUMO_TAG_NOTHING, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toParkingArea, and CommonXMLStructure::PlanParameters::toTrainStop.
Referenced by GNERouteHandler::buildPersonStop(), and GNEPlanCreator::planCanBeCreated().
|
static |
get the personTrip tag and icon for the combination
Definition at line 218 of file GNEDemandElementPlan.cpp.
References EMPTY, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, CommonXMLStructure::PlanParameters::fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, GNE_TAG_PERSONTRIP_BUSSTOP_BUSSTOP, GNE_TAG_PERSONTRIP_BUSSTOP_CHARGINGSTATION, GNE_TAG_PERSONTRIP_BUSSTOP_CONTAINERSTOP, GNE_TAG_PERSONTRIP_BUSSTOP_EDGE, GNE_TAG_PERSONTRIP_BUSSTOP_JUNCTION, GNE_TAG_PERSONTRIP_BUSSTOP_PARKINGAREA, GNE_TAG_PERSONTRIP_BUSSTOP_TAZ, GNE_TAG_PERSONTRIP_BUSSTOP_TRAINSTOP, GNE_TAG_PERSONTRIP_CHARGINGSTATION_BUSSTOP, GNE_TAG_PERSONTRIP_CHARGINGSTATION_CHARGINGSTATION, GNE_TAG_PERSONTRIP_CHARGINGSTATION_CONTAINERSTOP, GNE_TAG_PERSONTRIP_CHARGINGSTATION_EDGE, GNE_TAG_PERSONTRIP_CHARGINGSTATION_JUNCTION, GNE_TAG_PERSONTRIP_CHARGINGSTATION_PARKINGAREA, GNE_TAG_PERSONTRIP_CHARGINGSTATION_TAZ, GNE_TAG_PERSONTRIP_CHARGINGSTATION_TRAINSTOP, GNE_TAG_PERSONTRIP_CONTAINERSTOP_BUSSTOP, GNE_TAG_PERSONTRIP_CONTAINERSTOP_CHARGINGSTATION, GNE_TAG_PERSONTRIP_CONTAINERSTOP_CONTAINERSTOP, GNE_TAG_PERSONTRIP_CONTAINERSTOP_EDGE, GNE_TAG_PERSONTRIP_CONTAINERSTOP_JUNCTION, GNE_TAG_PERSONTRIP_CONTAINERSTOP_PARKINGAREA, GNE_TAG_PERSONTRIP_CONTAINERSTOP_TAZ, GNE_TAG_PERSONTRIP_CONTAINERSTOP_TRAINSTOP, GNE_TAG_PERSONTRIP_EDGE_BUSSTOP, GNE_TAG_PERSONTRIP_EDGE_CHARGINGSTATION, GNE_TAG_PERSONTRIP_EDGE_CONTAINERSTOP, GNE_TAG_PERSONTRIP_EDGE_EDGE, GNE_TAG_PERSONTRIP_EDGE_JUNCTION, GNE_TAG_PERSONTRIP_EDGE_PARKINGAREA, GNE_TAG_PERSONTRIP_EDGE_TAZ, GNE_TAG_PERSONTRIP_EDGE_TRAINSTOP, GNE_TAG_PERSONTRIP_JUNCTION_BUSSTOP, GNE_TAG_PERSONTRIP_JUNCTION_CHARGINGSTATION, GNE_TAG_PERSONTRIP_JUNCTION_CONTAINERSTOP, GNE_TAG_PERSONTRIP_JUNCTION_EDGE, GNE_TAG_PERSONTRIP_JUNCTION_JUNCTION, GNE_TAG_PERSONTRIP_JUNCTION_PARKINGAREA, GNE_TAG_PERSONTRIP_JUNCTION_TAZ, GNE_TAG_PERSONTRIP_JUNCTION_TRAINSTOP, GNE_TAG_PERSONTRIP_PARKINGAREA_BUSSTOP, GNE_TAG_PERSONTRIP_PARKINGAREA_CHARGINGSTATION, GNE_TAG_PERSONTRIP_PARKINGAREA_CONTAINERSTOP, GNE_TAG_PERSONTRIP_PARKINGAREA_EDGE, GNE_TAG_PERSONTRIP_PARKINGAREA_JUNCTION, GNE_TAG_PERSONTRIP_PARKINGAREA_PARKINGAREA, GNE_TAG_PERSONTRIP_PARKINGAREA_TAZ, GNE_TAG_PERSONTRIP_PARKINGAREA_TRAINSTOP, GNE_TAG_PERSONTRIP_TAZ_BUSSTOP, GNE_TAG_PERSONTRIP_TAZ_CHARGINGSTATION, GNE_TAG_PERSONTRIP_TAZ_CONTAINERSTOP, GNE_TAG_PERSONTRIP_TAZ_EDGE, GNE_TAG_PERSONTRIP_TAZ_JUNCTION, GNE_TAG_PERSONTRIP_TAZ_PARKINGAREA, GNE_TAG_PERSONTRIP_TAZ_TAZ, GNE_TAG_PERSONTRIP_TAZ_TRAINSTOP, GNE_TAG_PERSONTRIP_TRAINSTOP_BUSSTOP, GNE_TAG_PERSONTRIP_TRAINSTOP_CHARGINGSTATION, GNE_TAG_PERSONTRIP_TRAINSTOP_CONTAINERSTOP, GNE_TAG_PERSONTRIP_TRAINSTOP_EDGE, GNE_TAG_PERSONTRIP_TRAINSTOP_JUNCTION, GNE_TAG_PERSONTRIP_TRAINSTOP_PARKINGAREA, GNE_TAG_PERSONTRIP_TRAINSTOP_TAZ, GNE_TAG_PERSONTRIP_TRAINSTOP_TRAINSTOP, CommonXMLStructure::PlanParameters::isSingleEdgePlan(), PERSONTRIP_BUSSTOP, PERSONTRIP_CHARGINGSTATION, PERSONTRIP_CONTAINERSTOP, PERSONTRIP_EDGE, PERSONTRIP_JUNCTION, PERSONTRIP_PARKINGAREA, PERSONTRIP_TAZ, PERSONTRIP_TRAINSTOP, SUMO_TAG_NOTHING, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toParkingArea, CommonXMLStructure::PlanParameters::toTAZ, and CommonXMLStructure::PlanParameters::toTrainStop.
Referenced by GNERouteHandler::buildPersonTrip(), and GNEPlanCreator::planCanBeCreated().
|
protected |
get plan attribute string
Definition at line 1350 of file GNEDemandElementPlan.cpp.
References GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), GNEHierarchicalElement::getParentJunctions(), GNEHierarchicalElement::getParentStoppingPlaces(), GNEHierarchicalElement::getParentTAZs(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_FROM_BUSSTOP, GNE_ATTR_FROM_CHARGINGSTATION, GNE_ATTR_FROM_CONTAINERSTOP, GNE_ATTR_FROM_PARKINGAREA, GNE_ATTR_FROM_TRAINSTOP, GNE_ATTR_PARENT, GNE_ATTR_SELECTED, GNEAttributeCarrier::isAttributeCarrierSelected(), 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 1413 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 1490 of file GNEDemandElementPlan.cpp.
References GNEDemandElement::getFirstPathLane(), GNEDemandElement::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(), GNEWalk::getAttributePosition(), and getPlanMoveOperation().
|
protected |
get plan centering boundary
Definition at line 1270 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 1725 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 |
get move operation
Definition at line 949 of file GNEDemandElementPlan.cpp.
References Position::distanceSquaredTo2D(), GNEHierarchicalElement::getParentDemandElements(), GNEHierarchicalElement::getParentEdges(), getPlanAttributePosition(), GUISUMOAbstractView::getPositionInformation(), GNEAttributeCarrier::getTagProperty(), GNEDemandElement::getVClass(), GNENet::getViewNet(), GNE_ATTR_PLAN_GEOMETRY_ENDPOS, myArrivalPosition, myArrivalPositionDiameter, GNEAttributeCarrier::myNet, and myPlanElement.
Referenced by GNEPersonTrip::getMoveOperation(), GNERide::getMoveOperation(), GNEStopPlan::getMoveOperation(), GNETranship::getMoveOperation(), GNETransport::getMoveOperation(), and GNEWalk::getMoveOperation().
|
protected |
Returns an own popup-menu.
Definition at line 1065 of file GNEDemandElementPlan.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIDesigns::buildFXMenuCommand(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GNEViewNet::buildSelectionACPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), GNEAttributeCarrier::getNet(), getPlanPositionInView(), GNEAttributeCarrier::getTagStr(), GNENet::getViewNet(), MID_COPY_NAME, MID_COPY_TYPED_NAME, 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 1318 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().
|
static |
get the ride tag and icon for the combination
Definition at line 388 of file GNEDemandElementPlan.cpp.
References EMPTY, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, CommonXMLStructure::PlanParameters::fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, GNE_TAG_RIDE_BUSSTOP_BUSSTOP, GNE_TAG_RIDE_BUSSTOP_CHARGINGSTATION, GNE_TAG_RIDE_BUSSTOP_CONTAINERSTOP, GNE_TAG_RIDE_BUSSTOP_EDGE, GNE_TAG_RIDE_BUSSTOP_JUNCTION, GNE_TAG_RIDE_BUSSTOP_PARKINGAREA, GNE_TAG_RIDE_BUSSTOP_TAZ, GNE_TAG_RIDE_BUSSTOP_TRAINSTOP, GNE_TAG_RIDE_CHARGINGSTATION_BUSSTOP, GNE_TAG_RIDE_CHARGINGSTATION_CHARGINGSTATION, GNE_TAG_RIDE_CHARGINGSTATION_CONTAINERSTOP, GNE_TAG_RIDE_CHARGINGSTATION_EDGE, GNE_TAG_RIDE_CHARGINGSTATION_JUNCTION, GNE_TAG_RIDE_CHARGINGSTATION_PARKINGAREA, GNE_TAG_RIDE_CHARGINGSTATION_TAZ, GNE_TAG_RIDE_CHARGINGSTATION_TRAINSTOP, GNE_TAG_RIDE_CONTAINERSTOP_BUSSTOP, GNE_TAG_RIDE_CONTAINERSTOP_CHARGINGSTATION, GNE_TAG_RIDE_CONTAINERSTOP_CONTAINERSTOP, GNE_TAG_RIDE_CONTAINERSTOP_EDGE, GNE_TAG_RIDE_CONTAINERSTOP_JUNCTION, GNE_TAG_RIDE_CONTAINERSTOP_PARKINGAREA, GNE_TAG_RIDE_CONTAINERSTOP_TAZ, GNE_TAG_RIDE_CONTAINERSTOP_TRAINSTOP, GNE_TAG_RIDE_EDGE_BUSSTOP, GNE_TAG_RIDE_EDGE_CHARGINGSTATION, GNE_TAG_RIDE_EDGE_CONTAINERSTOP, GNE_TAG_RIDE_EDGE_EDGE, GNE_TAG_RIDE_EDGE_JUNCTION, GNE_TAG_RIDE_EDGE_PARKINGAREA, GNE_TAG_RIDE_EDGE_TAZ, GNE_TAG_RIDE_EDGE_TRAINSTOP, GNE_TAG_RIDE_JUNCTION_BUSSTOP, GNE_TAG_RIDE_JUNCTION_CHARGINGSTATION, GNE_TAG_RIDE_JUNCTION_CONTAINERSTOP, GNE_TAG_RIDE_JUNCTION_EDGE, GNE_TAG_RIDE_JUNCTION_JUNCTION, GNE_TAG_RIDE_JUNCTION_PARKINGAREA, GNE_TAG_RIDE_JUNCTION_TAZ, GNE_TAG_RIDE_JUNCTION_TRAINSTOP, GNE_TAG_RIDE_PARKINGAREA_BUSSTOP, GNE_TAG_RIDE_PARKINGAREA_CHARGINGSTATION, GNE_TAG_RIDE_PARKINGAREA_CONTAINERSTOP, GNE_TAG_RIDE_PARKINGAREA_EDGE, GNE_TAG_RIDE_PARKINGAREA_JUNCTION, GNE_TAG_RIDE_PARKINGAREA_PARKINGAREA, GNE_TAG_RIDE_PARKINGAREA_TAZ, GNE_TAG_RIDE_PARKINGAREA_TRAINSTOP, GNE_TAG_RIDE_TAZ_BUSSTOP, GNE_TAG_RIDE_TAZ_CHARGINGSTATION, GNE_TAG_RIDE_TAZ_CONTAINERSTOP, GNE_TAG_RIDE_TAZ_EDGE, GNE_TAG_RIDE_TAZ_JUNCTION, GNE_TAG_RIDE_TAZ_PARKINGAREA, GNE_TAG_RIDE_TAZ_TAZ, GNE_TAG_RIDE_TAZ_TRAINSTOP, GNE_TAG_RIDE_TRAINSTOP_BUSSTOP, GNE_TAG_RIDE_TRAINSTOP_CHARGINGSTATION, GNE_TAG_RIDE_TRAINSTOP_CONTAINERSTOP, GNE_TAG_RIDE_TRAINSTOP_EDGE, GNE_TAG_RIDE_TRAINSTOP_JUNCTION, GNE_TAG_RIDE_TRAINSTOP_PARKINGAREA, GNE_TAG_RIDE_TRAINSTOP_TAZ, GNE_TAG_RIDE_TRAINSTOP_TRAINSTOP, CommonXMLStructure::PlanParameters::isSingleEdgePlan(), RIDE_BUSSTOP, RIDE_CHARGINGSTATION, RIDE_CONTAINERSTOP, RIDE_EDGE, RIDE_JUNCTION, RIDE_PARKINGAREA, RIDE_TAZ, RIDE_TRAINSTOP, SUMO_TAG_NOTHING, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toParkingArea, CommonXMLStructure::PlanParameters::toTAZ, and CommonXMLStructure::PlanParameters::toTrainStop.
Referenced by GNERouteHandler::buildRide(), and GNEPlanCreator::planCanBeCreated().
|
static |
get the tranship tag and icon for the combination
Definition at line 728 of file GNEDemandElementPlan.cpp.
References CommonXMLStructure::PlanParameters::consecutiveEdges, EMPTY, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, CommonXMLStructure::PlanParameters::fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, GNE_TAG_TRANSHIP_BUSSTOP_BUSSTOP, GNE_TAG_TRANSHIP_BUSSTOP_CHARGINGSTATION, GNE_TAG_TRANSHIP_BUSSTOP_CONTAINERSTOP, GNE_TAG_TRANSHIP_BUSSTOP_EDGE, GNE_TAG_TRANSHIP_BUSSTOP_JUNCTION, GNE_TAG_TRANSHIP_BUSSTOP_PARKINGAREA, GNE_TAG_TRANSHIP_BUSSTOP_TAZ, GNE_TAG_TRANSHIP_BUSSTOP_TRAINSTOP, GNE_TAG_TRANSHIP_CHARGINGSTATION_BUSSTOP, GNE_TAG_TRANSHIP_CHARGINGSTATION_CHARGINGSTATION, GNE_TAG_TRANSHIP_CHARGINGSTATION_CONTAINERSTOP, GNE_TAG_TRANSHIP_CHARGINGSTATION_EDGE, GNE_TAG_TRANSHIP_CHARGINGSTATION_JUNCTION, GNE_TAG_TRANSHIP_CHARGINGSTATION_PARKINGAREA, GNE_TAG_TRANSHIP_CHARGINGSTATION_TAZ, GNE_TAG_TRANSHIP_CHARGINGSTATION_TRAINSTOP, GNE_TAG_TRANSHIP_CONTAINERSTOP_BUSSTOP, GNE_TAG_TRANSHIP_CONTAINERSTOP_CHARGINGSTATION, GNE_TAG_TRANSHIP_CONTAINERSTOP_CONTAINERSTOP, GNE_TAG_TRANSHIP_CONTAINERSTOP_EDGE, GNE_TAG_TRANSHIP_CONTAINERSTOP_JUNCTION, GNE_TAG_TRANSHIP_CONTAINERSTOP_PARKINGAREA, GNE_TAG_TRANSHIP_CONTAINERSTOP_TAZ, GNE_TAG_TRANSHIP_CONTAINERSTOP_TRAINSTOP, GNE_TAG_TRANSHIP_EDGE_BUSSTOP, GNE_TAG_TRANSHIP_EDGE_CHARGINGSTATION, GNE_TAG_TRANSHIP_EDGE_CONTAINERSTOP, GNE_TAG_TRANSHIP_EDGE_EDGE, GNE_TAG_TRANSHIP_EDGE_JUNCTION, GNE_TAG_TRANSHIP_EDGE_PARKINGAREA, GNE_TAG_TRANSHIP_EDGE_TAZ, GNE_TAG_TRANSHIP_EDGE_TRAINSTOP, GNE_TAG_TRANSHIP_EDGES, GNE_TAG_TRANSHIP_JUNCTION_BUSSTOP, GNE_TAG_TRANSHIP_JUNCTION_CHARGINGSTATION, GNE_TAG_TRANSHIP_JUNCTION_CONTAINERSTOP, GNE_TAG_TRANSHIP_JUNCTION_EDGE, GNE_TAG_TRANSHIP_JUNCTION_JUNCTION, GNE_TAG_TRANSHIP_JUNCTION_PARKINGAREA, GNE_TAG_TRANSHIP_JUNCTION_TAZ, GNE_TAG_TRANSHIP_JUNCTION_TRAINSTOP, GNE_TAG_TRANSHIP_PARKINGAREA_BUSSTOP, GNE_TAG_TRANSHIP_PARKINGAREA_CHARGINGSTATION, GNE_TAG_TRANSHIP_PARKINGAREA_CONTAINERSTOP, GNE_TAG_TRANSHIP_PARKINGAREA_EDGE, GNE_TAG_TRANSHIP_PARKINGAREA_JUNCTION, GNE_TAG_TRANSHIP_PARKINGAREA_PARKINGAREA, GNE_TAG_TRANSHIP_PARKINGAREA_TAZ, GNE_TAG_TRANSHIP_PARKINGAREA_TRAINSTOP, GNE_TAG_TRANSHIP_TAZ_BUSSTOP, GNE_TAG_TRANSHIP_TAZ_CHARGINGSTATION, GNE_TAG_TRANSHIP_TAZ_CONTAINERSTOP, GNE_TAG_TRANSHIP_TAZ_EDGE, GNE_TAG_TRANSHIP_TAZ_JUNCTION, GNE_TAG_TRANSHIP_TAZ_PARKINGAREA, GNE_TAG_TRANSHIP_TAZ_TAZ, GNE_TAG_TRANSHIP_TAZ_TRAINSTOP, GNE_TAG_TRANSHIP_TRAINSTOP_BUSSTOP, GNE_TAG_TRANSHIP_TRAINSTOP_CHARGINGSTATION, GNE_TAG_TRANSHIP_TRAINSTOP_CONTAINERSTOP, GNE_TAG_TRANSHIP_TRAINSTOP_EDGE, GNE_TAG_TRANSHIP_TRAINSTOP_JUNCTION, GNE_TAG_TRANSHIP_TRAINSTOP_PARKINGAREA, GNE_TAG_TRANSHIP_TRAINSTOP_TAZ, GNE_TAG_TRANSHIP_TRAINSTOP_TRAINSTOP, CommonXMLStructure::PlanParameters::isSingleEdgePlan(), SUMO_TAG_NOTHING, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toParkingArea, CommonXMLStructure::PlanParameters::toTAZ, CommonXMLStructure::PlanParameters::toTrainStop, TRANSHIP_BUSSTOP, TRANSHIP_CHARGINGSTATION, TRANSHIP_CONTAINERSTOP, TRANSHIP_EDGE, TRANSHIP_EDGES, TRANSHIP_JUNCTION, TRANSHIP_PARKINGAREA, TRANSHIP_TAZ, and TRANSHIP_TRAINSTOP.
Referenced by GNERouteHandler::buildTranship(), and GNEPlanCreator::planCanBeCreated().
|
static |
get the transport tag and icon for the combination
Definition at line 558 of file GNEDemandElementPlan.cpp.
References EMPTY, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, CommonXMLStructure::PlanParameters::fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, GNE_TAG_TRANSPORT_BUSSTOP_BUSSTOP, GNE_TAG_TRANSPORT_BUSSTOP_CHARGINGSTATION, GNE_TAG_TRANSPORT_BUSSTOP_CONTAINERSTOP, GNE_TAG_TRANSPORT_BUSSTOP_EDGE, GNE_TAG_TRANSPORT_BUSSTOP_JUNCTION, GNE_TAG_TRANSPORT_BUSSTOP_PARKINGAREA, GNE_TAG_TRANSPORT_BUSSTOP_TAZ, GNE_TAG_TRANSPORT_BUSSTOP_TRAINSTOP, GNE_TAG_TRANSPORT_CHARGINGSTATION_BUSSTOP, GNE_TAG_TRANSPORT_CHARGINGSTATION_CHARGINGSTATION, GNE_TAG_TRANSPORT_CHARGINGSTATION_CONTAINERSTOP, GNE_TAG_TRANSPORT_CHARGINGSTATION_EDGE, GNE_TAG_TRANSPORT_CHARGINGSTATION_JUNCTION, GNE_TAG_TRANSPORT_CHARGINGSTATION_PARKINGAREA, GNE_TAG_TRANSPORT_CHARGINGSTATION_TAZ, GNE_TAG_TRANSPORT_CHARGINGSTATION_TRAINSTOP, GNE_TAG_TRANSPORT_CONTAINERSTOP_BUSSTOP, GNE_TAG_TRANSPORT_CONTAINERSTOP_CHARGINGSTATION, GNE_TAG_TRANSPORT_CONTAINERSTOP_CONTAINERSTOP, GNE_TAG_TRANSPORT_CONTAINERSTOP_EDGE, GNE_TAG_TRANSPORT_CONTAINERSTOP_JUNCTION, GNE_TAG_TRANSPORT_CONTAINERSTOP_PARKINGAREA, GNE_TAG_TRANSPORT_CONTAINERSTOP_TAZ, GNE_TAG_TRANSPORT_CONTAINERSTOP_TRAINSTOP, GNE_TAG_TRANSPORT_EDGE_BUSSTOP, GNE_TAG_TRANSPORT_EDGE_CHARGINGSTATION, GNE_TAG_TRANSPORT_EDGE_CONTAINERSTOP, GNE_TAG_TRANSPORT_EDGE_EDGE, GNE_TAG_TRANSPORT_EDGE_JUNCTION, GNE_TAG_TRANSPORT_EDGE_PARKINGAREA, GNE_TAG_TRANSPORT_EDGE_TAZ, GNE_TAG_TRANSPORT_EDGE_TRAINSTOP, GNE_TAG_TRANSPORT_JUNCTION_BUSSTOP, GNE_TAG_TRANSPORT_JUNCTION_CHARGINGSTATION, GNE_TAG_TRANSPORT_JUNCTION_CONTAINERSTOP, GNE_TAG_TRANSPORT_JUNCTION_EDGE, GNE_TAG_TRANSPORT_JUNCTION_JUNCTION, GNE_TAG_TRANSPORT_JUNCTION_PARKINGAREA, GNE_TAG_TRANSPORT_JUNCTION_TAZ, GNE_TAG_TRANSPORT_JUNCTION_TRAINSTOP, GNE_TAG_TRANSPORT_PARKINGAREA_BUSSTOP, GNE_TAG_TRANSPORT_PARKINGAREA_CHARGINGSTATION, GNE_TAG_TRANSPORT_PARKINGAREA_CONTAINERSTOP, GNE_TAG_TRANSPORT_PARKINGAREA_EDGE, GNE_TAG_TRANSPORT_PARKINGAREA_JUNCTION, GNE_TAG_TRANSPORT_PARKINGAREA_PARKINGAREA, GNE_TAG_TRANSPORT_PARKINGAREA_TAZ, GNE_TAG_TRANSPORT_PARKINGAREA_TRAINSTOP, GNE_TAG_TRANSPORT_TAZ_BUSSTOP, GNE_TAG_TRANSPORT_TAZ_CHARGINGSTATION, GNE_TAG_TRANSPORT_TAZ_CONTAINERSTOP, GNE_TAG_TRANSPORT_TAZ_EDGE, GNE_TAG_TRANSPORT_TAZ_JUNCTION, GNE_TAG_TRANSPORT_TAZ_PARKINGAREA, GNE_TAG_TRANSPORT_TAZ_TAZ, GNE_TAG_TRANSPORT_TAZ_TRAINSTOP, GNE_TAG_TRANSPORT_TRAINSTOP_BUSSTOP, GNE_TAG_TRANSPORT_TRAINSTOP_CHARGINGSTATION, GNE_TAG_TRANSPORT_TRAINSTOP_CONTAINERSTOP, GNE_TAG_TRANSPORT_TRAINSTOP_EDGE, GNE_TAG_TRANSPORT_TRAINSTOP_JUNCTION, GNE_TAG_TRANSPORT_TRAINSTOP_PARKINGAREA, GNE_TAG_TRANSPORT_TRAINSTOP_TAZ, GNE_TAG_TRANSPORT_TRAINSTOP_TRAINSTOP, CommonXMLStructure::PlanParameters::isSingleEdgePlan(), SUMO_TAG_NOTHING, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toParkingArea, CommonXMLStructure::PlanParameters::toTAZ, CommonXMLStructure::PlanParameters::toTrainStop, TRANSPORT_BUSSTOP, TRANSPORT_CHARGINGSTATION, TRANSPORT_CONTAINERSTOP, TRANSPORT_EDGE, TRANSPORT_JUNCTION, TRANSPORT_PARKINGAREA, TRANSPORT_TAZ, and TRANSPORT_TRAINSTOP.
Referenced by GNERouteHandler::buildTransport(), and GNEPlanCreator::planCanBeCreated().
|
static |
get the walk tag and icon for the combination
Definition at line 44 of file GNEDemandElementPlan.cpp.
References CommonXMLStructure::PlanParameters::consecutiveEdges, EMPTY, CommonXMLStructure::PlanParameters::fromBusStop, CommonXMLStructure::PlanParameters::fromChargingStation, CommonXMLStructure::PlanParameters::fromContainerStop, CommonXMLStructure::PlanParameters::fromEdge, CommonXMLStructure::PlanParameters::fromJunction, CommonXMLStructure::PlanParameters::fromParkingArea, CommonXMLStructure::PlanParameters::fromTAZ, CommonXMLStructure::PlanParameters::fromTrainStop, GNE_TAG_WALK_BUSSTOP_BUSSTOP, GNE_TAG_WALK_BUSSTOP_CHARGINGSTATION, GNE_TAG_WALK_BUSSTOP_CONTAINERSTOP, GNE_TAG_WALK_BUSSTOP_EDGE, GNE_TAG_WALK_BUSSTOP_JUNCTION, GNE_TAG_WALK_BUSSTOP_PARKINGAREA, GNE_TAG_WALK_BUSSTOP_TAZ, GNE_TAG_WALK_BUSSTOP_TRAINSTOP, GNE_TAG_WALK_CHARGINGSTATION_BUSSTOP, GNE_TAG_WALK_CHARGINGSTATION_CHARGINGSTATION, GNE_TAG_WALK_CHARGINGSTATION_CONTAINERSTOP, GNE_TAG_WALK_CHARGINGSTATION_EDGE, GNE_TAG_WALK_CHARGINGSTATION_JUNCTION, GNE_TAG_WALK_CHARGINGSTATION_PARKINGAREA, GNE_TAG_WALK_CHARGINGSTATION_TAZ, GNE_TAG_WALK_CHARGINGSTATION_TRAINSTOP, GNE_TAG_WALK_CONTAINERSTOP_BUSSTOP, GNE_TAG_WALK_CONTAINERSTOP_CHARGINGSTATION, GNE_TAG_WALK_CONTAINERSTOP_CONTAINERSTOP, GNE_TAG_WALK_CONTAINERSTOP_EDGE, GNE_TAG_WALK_CONTAINERSTOP_JUNCTION, GNE_TAG_WALK_CONTAINERSTOP_PARKINGAREA, GNE_TAG_WALK_CONTAINERSTOP_TAZ, GNE_TAG_WALK_CONTAINERSTOP_TRAINSTOP, GNE_TAG_WALK_EDGE_BUSSTOP, GNE_TAG_WALK_EDGE_CHARGINGSTATION, GNE_TAG_WALK_EDGE_CONTAINERSTOP, GNE_TAG_WALK_EDGE_EDGE, GNE_TAG_WALK_EDGE_JUNCTION, GNE_TAG_WALK_EDGE_PARKINGAREA, GNE_TAG_WALK_EDGE_TAZ, GNE_TAG_WALK_EDGE_TRAINSTOP, GNE_TAG_WALK_EDGES, GNE_TAG_WALK_JUNCTION_BUSSTOP, GNE_TAG_WALK_JUNCTION_CHARGINGSTATION, GNE_TAG_WALK_JUNCTION_CONTAINERSTOP, GNE_TAG_WALK_JUNCTION_EDGE, GNE_TAG_WALK_JUNCTION_JUNCTION, GNE_TAG_WALK_JUNCTION_PARKINGAREA, GNE_TAG_WALK_JUNCTION_TAZ, GNE_TAG_WALK_JUNCTION_TRAINSTOP, GNE_TAG_WALK_PARKINGAREA_BUSSTOP, GNE_TAG_WALK_PARKINGAREA_CHARGINGSTATION, GNE_TAG_WALK_PARKINGAREA_CONTAINERSTOP, GNE_TAG_WALK_PARKINGAREA_EDGE, GNE_TAG_WALK_PARKINGAREA_JUNCTION, GNE_TAG_WALK_PARKINGAREA_PARKINGAREA, GNE_TAG_WALK_PARKINGAREA_TAZ, GNE_TAG_WALK_PARKINGAREA_TRAINSTOP, GNE_TAG_WALK_ROUTE, GNE_TAG_WALK_TAZ_BUSSTOP, GNE_TAG_WALK_TAZ_CHARGINGSTATION, GNE_TAG_WALK_TAZ_CONTAINERSTOP, GNE_TAG_WALK_TAZ_EDGE, GNE_TAG_WALK_TAZ_JUNCTION, GNE_TAG_WALK_TAZ_PARKINGAREA, GNE_TAG_WALK_TAZ_TAZ, GNE_TAG_WALK_TAZ_TRAINSTOP, GNE_TAG_WALK_TRAINSTOP_BUSSTOP, GNE_TAG_WALK_TRAINSTOP_CHARGINGSTATION, GNE_TAG_WALK_TRAINSTOP_CONTAINERSTOP, GNE_TAG_WALK_TRAINSTOP_EDGE, GNE_TAG_WALK_TRAINSTOP_JUNCTION, GNE_TAG_WALK_TRAINSTOP_PARKINGAREA, GNE_TAG_WALK_TRAINSTOP_TAZ, GNE_TAG_WALK_TRAINSTOP_TRAINSTOP, CommonXMLStructure::PlanParameters::isSingleEdgePlan(), SUMO_TAG_NOTHING, CommonXMLStructure::PlanParameters::toBusStop, CommonXMLStructure::PlanParameters::toChargingStation, CommonXMLStructure::PlanParameters::toContainerStop, CommonXMLStructure::PlanParameters::toEdge, CommonXMLStructure::PlanParameters::toJunction, CommonXMLStructure::PlanParameters::toParkingArea, CommonXMLStructure::PlanParameters::toRoute, CommonXMLStructure::PlanParameters::toTAZ, CommonXMLStructure::PlanParameters::toTrainStop, WALK_BUSSTOP, WALK_CHARGINGSTATION, WALK_CONTAINERSTOP, WALK_EDGE, WALK_EDGES, WALK_JUNCTION, WALK_PARKINGAREA, WALK_ROUTE, WALK_TAZ, and WALK_TRAINSTOP.
Referenced by GNERouteHandler::buildWalk(), and GNEPlanCreator::planCanBeCreated().
|
protected |
check if plan attribute is enabled
Definition at line 1642 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 2116 of file GNEDemandElementPlan.cpp.
References GNEDemandElement::DISCONNECTED_PLAN, GNEDemandElement::getFirstPathLane(), GNEDemandElement::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 1616 of file GNEDemandElementPlan.cpp.
References GNEAttributeCarrier::getTagStr(), GNE_ATTR_PARENT, GNE_ATTR_SELECTED, myPlanElement, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_ENDPOS, and toString().
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 2252 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 1678 of file GNEDemandElementPlan.cpp.
References GNEDemandElement::computePathElement(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_PARENT, GNE_ATTR_SELECTED, GNEAttributeCarrier::isTemplate(), myArrivalPosition, myDepartPosition, myPlanElement, GNEDemandElement::replaceFirstParentEdge(), GNEDemandElement::replaceLastParentEdge(), replacePlanParent(), GNEAttributeCarrier::selectAttributeCarrier(), SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_ENDPOS, SUMO_ATTR_FROM, SUMO_ATTR_TO, toString(), GNEAttributeCarrier::unselectAttributeCarrier(), and GNEDemandElement::updateGeometry().
|
protected |
set plan attribute
Definition at line 1598 of file GNEDemandElementPlan.cpp.
References GNEChange_Attribute::changeAttribute(), GNEAttributeCarrier::getTagStr(), GNE_ATTR_PARENT, GNE_ATTR_SELECTED, myPlanElement, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_ENDPOS, and toString().
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 1276 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 GNEDemandElementPlan(), and updatePlanGeometry().
|
protected |
update pre-computed geometry information
Definition at line 1209 of file GNEDemandElementPlan.cpp.
References GUIGeometry::clearGeometry(), GNEHierarchicalElement::getChildDemandElements(), GNEDemandElement::getFirstPathLane(), GNELane::getLaneShape(), GNEDemandElement::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 973 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 1040 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 187 of file GNEDemandElementPlan.h.
Referenced by getPlanAttribute(), getPlanAttributeDouble(), getPlanAttributePosition(), getPlanMoveOperation(), GNEPersonTrip::setMoveShape(), GNERide::setMoveShape(), GNEStopPlan::setMoveShape(), GNETranship::setMoveShape(), GNETransport::setMoveShape(), GNEWalk::setMoveShape(), setPlanAttribute(), and writeLocationAttributes().
|
staticprivate |
arrival position diameter
Definition at line 209 of file GNEDemandElementPlan.h.
Referenced by getEndPosRadius(), and getPlanMoveOperation().
|
protected |
depart position (used in tranships)
Definition at line 184 of file GNEDemandElementPlan.h.
Referenced by getPlanAttribute(), getPlanAttributeDouble(), setPlanAttribute(), and writeLocationAttributes().
|
protected |
plan boundary
Definition at line 76 of file GNEDemandElementPlan.h.
Referenced by getPlanCenteringBoundary(), and updatePlanCenteringBoundary().
|
protected |
variable used for draw central contour
Definition at line 70 of file GNEDemandElementPlan.h.
Referenced by drawPlanGL().
|
protected |
variable used for draw contour end
Definition at line 73 of file GNEDemandElementPlan.h.
Referenced by drawPlanGL(), and drawPlanLanePartial().
|
private |
pointer to plan element
Definition at line 206 of file GNEDemandElementPlan.h.
Referenced by checkDrawContainerPlan(), checkDrawPersonPlan(), computePlanPathElement(), drawFromArrow(), drawPlanGL(), drawPlanJunctionPartial(), drawPlanLanePartial(), drawToArrow(), getFirstPlanPathLane(), getLastPlanPathLane(), getPersonPlanProblem(), getPlanAttribute(), getPlanAttributeDouble(), getPlanAttributePosition(), getPlanHierarchyName(), getPlanMoveOperation(), getPlanPopUpMenu(), getPlanPositionInView(), isPlanPersonValid(), isPlanValid(), replacePlanParent(), setPlanAttribute(), setPlanAttribute(), updatePlanCenteringBoundary(), updatePlanGeometry(), writeLocationAttributes(), and writeOriginStop().