43 myStopFrameParent(StopFrameParent) {
69 std::ostringstream information;
74 <<
"- Click over a bus stop\n" 75 <<
" to create a stop.";
79 <<
"- Click over a container stop\n" 80 <<
" to create a stop.";
84 <<
"- Click over a charging \n" 85 <<
" station to create a stop.";
89 <<
"- Click over a parking area\n" 90 <<
" to create a stop.";
94 <<
"- Click over a lane to\n" 99 <<
"- No stop parents in\n" 100 <<
" current network.";
112 GNEFrame(horizontalFrameParent, viewNet,
"Stops") {
140 bool validStopParent =
false;
144 validStopParent =
true;
148 if (validStopParent) {
191 bool friendlyPosition =
false;
221 }
else if (stoppingPlace) {
283 if (!stop.
lane.empty()) {
const AttributeCarriers & getAttributeCarriers() const
retrieve all attribute carriers of Net
stop placed over a parking area (used in netedit)
const int STOP_CONTAINER_TRIGGER_SET
SumoXMLTag
Numbers representing SUMO-XML - element names.
std::string lane
The lane to stop at.
void hideHelpCreation()
hide HelpCreation
std::set< std::string > awaitedPersons
IDs of persons the vehicle has to wait for until departing.
bool isVehicle() const
return true if tag correspond to a vehicle element
void setDemandElement(GNEDemandElement *demandElement)
set current demand element
void showTagSelector()
show item selector
void hideAttributesCreatorModul()
hide group box
begin/end of the description of a single lane
void refreshDemandElementSelector()
refresh demand element selector
void showAttributesCreatorModul(const GNEAttributeCarrier::TagProperties &myTagProperties)
show AttributesCreator modul
const std::string & getTagStr() const
get Tag vinculated with this attribute Property in String Format (used to avoid multiple calls to toS...
stop placed over a lane (used in netedit)
std::string busstop
(Optional) bus stop if one is assigned to the stop
int parametersSet
Information for the output which parameter were set.
void showDemandElementSelector()
show demand element selector
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
void hideNeteditAttributesModul()
hide Netedit attributes modul
~HelpCreation()
destructor
std::map< SumoXMLAttr, std::string > getAttributesAndValues(bool includeAll) const
get attributes and their values
std::string parkingarea
(Optional) parking area if one is assigned to the stop
void tagSelected()
Tag selected in TagSelector.
GNEFrameAttributesModuls::AttributesCreator * myStopAttributes
internal Stop attributes
begin/end of the description of a route
#define WRITE_WARNING(msg)
bool triggered
whether an arriving person lets the vehicle continue
bool areValuesValid() const
check if parameters of attributes are valid
GNEStopFrame(FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet)
Constructor.
std::string tripId
id of the trip within a cyclical public transport route
GNEViewNet * myViewNet
View Net.
void showNeteditAttributesModul(const GNEAttributeCarrier::TagProperties &tagValue)
show Netedit attributes modul
GNEDemandElement * getDemandElementFront() const
get front net element element (or a pointer to nullptr if there isn't)
void showHelpCreation()
show HelpCreation
void hideTagSelector()
hide item selector
GNEDemandElement * getCurrentDemandElement() const
get current demand element
stop placed over a charging station (used in netedit)
std::string toString(const T &t, std::streamsize accuracy=gPrecision)
void updateHelpCreation()
update HelpCreation
void demandElementSelected()
selected demand element in DemandElementSelector
SumoXMLTag getTag() const
get Tag vinculated with this attribute Property
const std::vector< SumoXMLTag > & getAllowedTags() const
static bool getStopParameter(SUMOVehicleParameter::Stop &stop, bool &friendlyPosition, const SumoXMLTag stopTag, GNEViewNet *viewNet, const GNEFrameAttributesModuls::AttributesCreator *stopAttributes, const GNEFrameAttributesModuls::NeteditAttributes *myNeteditAttributes, const GNELane *lane, const GNEAdditional *stoppingPlace)
get stop parameters
SUMOTime until
The time at which the vehicle may continue its journey.
void refreshTagProperties()
due myCurrentTagProperties is a Reference, we need to refresh it when frameParent is show ...
GNEStopFrame * myStopFrameParent
pointer to Stop Frame Parent
stop placed over a containerStop (used in netedit)
stop placed over a busStop (used in netedit)
SUMOTime string2time(const std::string &r)
class used to group all variables related with objects under cursor after a click over view ...
const int STOP_TRIP_ID_SET
GNELane * getLaneFront() const
get front lane (or a pointer to nullptr if there isn't)
std::map< SumoXMLTag, std::map< std::string, GNEDemandElement * > > demandElements
map with the name and pointer to demand elements of net
const int STOP_EXPECTED_SET
const std::string getID() const
function to support debugging
GNEFrameModuls::DemandElementSelector * myStopParentSelector
Stop parent selectors.
double endPos
The stopping position end.
#define GUIDesignLabelFrameInformation
label extended over frame without thick and with text justify to left, used to show information in fr...
std::string generateDemandElementID(const std::string &prefix, SumoXMLTag type) const
generate demand element id
FXLabel * myInformationLabel
Label with creation information.
GNEAdditional * getAdditionalFront() const
get front additional element (or a pointer to nullptr if there isn't)
Definition of vehicle stop (position and duration)
int index
at which position in the stops list
bool getNeteditAttributesAndValues(std::map< SumoXMLAttr, std::string > &valuesMap, const GNELane *lane) const
fill valuesMap with netedit attributes
const int STOP_PARKING_SET
double startPos
The stopping position start.
const int STOP_TRIGGER_SET
virtual void show()
show Frame
const int STOP_EXPECTED_CONTAINERS_SET
bool containerTriggered
whether an arriving container lets the vehicle continue
An Element which don't belongs to GNENet but has influency in the simulation.
#define GUIDesignGroupBoxFrame
Group box design extended over frame.
HelpCreation(GNEStopFrame *StopFrameParent)
constructor
static void buildStop(GNEViewNet *viewNet, bool undoDemandElements, const SUMOVehicleParameter::Stop &stopParameters, GNEDemandElement *stopParent, bool friendlyPosition)
build stop
const std::string & getTagStr() const
get tag assigned to this object in string format
const GNEAttributeCarrier::TagProperties & getCurrentTagProperties() const
get current type tag
HelpCreation * myHelpCreation
Help creation.
GNEFrameAttributesModuls::NeteditAttributes * myNeteditAttributes
Netedit parameter.
bool addStop(const GNEViewNetHelper::ObjectsUnderCursor &objectsUnderCursor, bool shiftPressed)
add Stop element
virtual void hide()
hide Frame
void showWarningMessage(std::string extra="") const
show warning message with information about non-valid attributes
GNENet * getNet() const
get the net object
const TagProperties & getTagProperty() const
get Tag Property assigned to this object
std::string chargingStation
(Optional) charging station if one is assigned to the stop
std::string containerstop
(Optional) container stop if one is assigned to the stop
void hideDemandElementSelector()
hide demand element selector
~GNEStopFrame()
Destructor.
GNEFrameModuls::TagSelector * myStopTagSelector
stop tag selector selector (used to select diffent kind of Stops)
SUMOTime duration
The stopping duration.
bool parking
whether the vehicle is removed from the net while stopping
std::set< std::string > awaitedContainers
IDs of containers the vehicle has to wait for until departing.