 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
16 #ifndef MSRailCrossing_h
17 #define MSRailCrossing_h
47 const std::string&
id,
const std::string& programID,
SUMOTime delay,
48 const std::map<std::string, std::string>& parameters);
#define UNUSED_PARAMETER(x)
Representation of a lane in the micro simulation.
~MSRailCrossing()
Destructor.
void changeStepAndDuration(MSTLLogicControl &tlcontrol, SUMOTime simStep, int step, SUMOTime stepDuration)
Changes the current phase and her duration.
int getIndexFromOffset(SUMOTime offset) const
Returns the step (the phasenumber) of a given position of the cycle.
void init(NLDetectorBuilder &nb)
Initialises the rail signal with information about adjacent rail signals.
SUMOTime getOffsetFromIndex(int index) const
Returns the position (start of a phase during a cycle) from of a given step.
SUMOTime getPhaseIndexAtTime(SUMOTime simStep) const
Returns the index of the logic at the given simulation step.
A fixed traffic light logic.
SUMOTime trySwitch()
Switches to the next phase.
The parent class for traffic light logics.
std::vector< MSLink * > myIncomingRailLinks
The incoming rail links.
MSRailCrossing(MSTLLogicControl &tlcontrol, const std::string &id, const std::string &programID, SUMOTime delay, const std::map< std::string, std::string > ¶meters)
Constructor.
SUMOTime myMinGreenTime
minimum green time
void adaptLinkInformationFrom(const MSTrafficLightLogic &logic)
Applies information about controlled links and lanes from the given logic.
void addLink(MSLink *link, MSLane *lane, int pos)
Adds a link on building.
A class that stores and controls tls and switching of their programs.
SUMOTime mySecurityGap
minimum time gap between closing the crossing (end of yellow time) and train passing the crossing
SUMOTime myYellowTime
minimum green time
SUMOTime updateCurrentPhase()
updates the current phase of the signal
Builds detectors for microsim.