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