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