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