61 const std::vector<MSLane*>& destLanes,
62 const std::string& file);
97 static const std::map<std::string, MSLaneSpeedTrigger*>&
getInstances() {
Representation of a lane in the micro simulation.
Changes the speed allowed on a set of lanes.
void setOverridingValue(double val)
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()
std::vector< std::pair< SUMOTime, double > >::iterator myCurrentFrictionEntry
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 getCurrentFriction() const
Returns the current friction.
double getCurrentSpeed() const
Returns the current speed.
double mySpeedOverrideValue
The speed to use if overriding the read speed.
SUMOTime executeFrictionChange(SUMOTime currentTime)
MSLaneSpeedTrigger(const MSLaneSpeedTrigger &)
Invalidated copy constructor.
virtual ~MSLaneSpeedTrigger()
Destructor.
const double myDefaultFriction
The original friction on the lanes.
std::vector< MSLane * > myDestLanes
std::vector< std::pair< SUMOTime, double > >::iterator myCurrentSpeedEntry
std::vector< std::pair< SUMOTime, double > > myLoadedFrictions
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 executeSpeedChange(SUMOTime currentTime)
Executes a switch command.
const double myDefaultSpeed
The original speed allowed on the lanes.
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.
Base class for objects which have an id.
Encapsulated SAX-Attributes.
SAX-handler base for SUMO-files.