 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
20 #ifndef MSLaneSpeedTrigger_h
21 #define MSLaneSpeedTrigger_h
64 const std::vector<MSLane*>& destLanes,
65 const std::string& file);
void setOverridingValue(double val)
double mySpeedOverrideValue
The speed to use if overriding the read speed.
std::vector< std::pair< SUMOTime, double > >::iterator myCurrentEntry
Representation of a lane in the micro simulation.
SAX-handler base for SUMO-files.
double myDefaultSpeed
The original speed allowed on the lanes.
SUMOTime execute(SUMOTime currentTime)
Executes a switch command.
Changes the speed allowed on a set of lanes.
virtual void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
std::vector< std::pair< SUMOTime, double > > myLoadedSpeeds
SUMOTime processCommand(bool move2next, SUMOTime currentTime)
An abstract device that changes the state of the micro simulation.
virtual ~MSLaneSpeedTrigger()
Destructor.
bool myAmOverriding
The information whether the read speed shall be overridden.
Base (microsim) event class.
bool myDidInit
The information whether init was called.
void setOverriding(bool val)
MSLaneSpeedTrigger(const std::string &id, const std::vector< MSLane * > &destLanes, const std::string &file)
Constructor.
double getDefaultSpeed() const
virtual void myEndElement(int element)
Called on the closing of a tag;.
Encapsulated SAX-Attributes.
MSLaneSpeedTrigger & operator=(const MSLaneSpeedTrigger &)
Invalidated assignment operator.
double getCurrentSpeed() const
Returns the current speed.
std::vector< MSLane * > myDestLanes