Eclipse SUMO - Simulation of Urban MObility
|
stop offset More...
#include <SUMOVehicleClass.h>
Public Member Functions | |
std::string | getExceptions () const |
get exceptions (used in netedit) | |
double | getOffset () const |
get offset | |
SVCPermissions | getPermissions () const |
get permissions | |
bool | isDefined () const |
check if stopOffset was defined | |
bool | operator!= (StopOffset const &other) const |
comparator | |
bool | operator== (StopOffset const &other) const |
comparator | |
void | reset () |
reset stopOffset | |
void | setExceptions (const std::string permissions) |
set exceptions (used in netedit) | |
void | setOffset (const double offset) |
set offset | |
void | setPermissions (const SVCPermissions permissions) |
update permissions | |
StopOffset () | |
constructor | |
StopOffset (const SUMOSAXAttributes &attrs, bool &ok) | |
constructor (parser) | |
Private Attributes | |
double | myOffset |
offset | |
SVCPermissions | myPermissions |
permissions (allowed) | |
stop offset
Definition at line 260 of file SUMOVehicleClass.h.
StopOffset::StopOffset | ( | ) |
constructor
Definition at line 192 of file SUMOVehicleClass.cpp.
StopOffset::StopOffset | ( | const SUMOSAXAttributes & | attrs, |
bool & | ok | ||
) |
constructor (parser)
Definition at line 198 of file SUMOVehicleClass.cpp.
References SUMOSAXAttributes::getOpt(), SUMOSAXAttributes::hasAttribute(), myOffset, myPermissions, parseVehicleClasses(), SUMO_ATTR_EXCEPTIONS, SUMO_ATTR_VALUE, SUMO_ATTR_VCLASSES, TL, and WRITE_ERROR.
std::string StopOffset::getExceptions | ( | ) | const |
get exceptions (used in netedit)
Definition at line 247 of file SUMOVehicleClass.cpp.
References getVehicleClassNames(), and myPermissions.
Referenced by GNEEdge::getAttribute(), and GNELane::getAttribute().
double StopOffset::getOffset | ( | ) | const |
get offset
Definition at line 253 of file SUMOVehicleClass.cpp.
References myOffset.
Referenced by GUILane::drawLinkRules(), GNEEdge::getAttribute(), GNELane::getAttribute(), MSLane::getVehicleStopOffset(), GNEEdge::isAttributeEnabled(), GNELane::isAttributeEnabled(), NIXMLEdgesHandler::myStartElement(), NBEdge::setEdgeStopOffset(), and NWWriter_SUMO::writeStopOffsets().
SVCPermissions StopOffset::getPermissions | ( | ) | const |
get permissions
Definition at line 241 of file SUMOVehicleClass.cpp.
References myPermissions.
Referenced by GNEEdge::drawLaneStopOffset(), GUILane::drawLinkRules(), MSLane::getVehicleStopOffset(), and NWWriter_SUMO::writeStopOffsets().
bool StopOffset::isDefined | ( | ) | const |
check if stopOffset was defined
Definition at line 228 of file SUMOVehicleClass.cpp.
References myOffset.
Referenced by NIImporter_SUMO::_loadNetwork(), NIImporter_SUMO::addStopOffsets(), NLEdgeControlBuilder::applyDefaultStopOffsetsToLanes(), GNEEdge::drawLaneStopOffset(), GUILane::drawLinkRules(), GNEEdge::getAttribute(), GNELane::getAttribute(), MSLane::getVehicleStopOffset(), NBEdge::hasLaneSpecificStopOffsets(), NIXMLEdgesHandler::myEndElement(), NIXMLEdgesHandler::myStartElement(), NLEdgeControlBuilder::setDefaultStopOffset(), NBEdge::setEdgeStopOffset(), NLEdgeControlBuilder::updateCurrentLaneStopOffset(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeLane(), and NWWriter_SUMO::writeStopOffsets().
bool StopOffset::operator!= | ( | StopOffset const & | other | ) | const |
comparator
Definition at line 284 of file SUMOVehicleClass.cpp.
References myOffset, and myPermissions.
bool StopOffset::operator== | ( | StopOffset const & | other | ) | const |
comparator
Definition at line 277 of file SUMOVehicleClass.cpp.
References myOffset, and myPermissions.
void StopOffset::reset | ( | ) |
reset stopOffset
Definition at line 234 of file SUMOVehicleClass.cpp.
References myOffset, myPermissions, and SVC_IGNORING.
Referenced by NLEdgeControlBuilder::closeEdge().
void StopOffset::setExceptions | ( | const std::string | permissions | ) |
set exceptions (used in netedit)
Definition at line 265 of file SUMOVehicleClass.cpp.
References myPermissions.
Referenced by GNEEdge::setAttribute(), and GNELane::setAttribute().
void StopOffset::setOffset | ( | const double | offset | ) |
set offset
Definition at line 271 of file SUMOVehicleClass.cpp.
References myOffset.
Referenced by GNEEdge::setAttribute(), and GNELane::setAttribute().
void StopOffset::setPermissions | ( | const SVCPermissions | permissions | ) |
|
private |
offset
Definition at line 304 of file SUMOVehicleClass.h.
Referenced by getOffset(), isDefined(), operator!=(), operator==(), reset(), setOffset(), and StopOffset().
|
private |
permissions (allowed)
Definition at line 301 of file SUMOVehicleClass.h.
Referenced by getExceptions(), getPermissions(), operator!=(), operator==(), reset(), setExceptions(), setPermissions(), and StopOffset().