82 nr += (int)e->getLanes().size();
91 #ifdef DEBUG_LINKLEADER 93 std::cout <<
SIMTIME <<
" MSJunction::passedJunction " <<
getID() <<
" veh=" << vehicle->
getID() <<
"\n";
101 #ifdef DEBUG_LINKLEADER 103 std::cout <<
SIMTIME <<
" MSJunction::isLeader " <<
getID()
104 <<
" ego=" << ego->
getID()
105 <<
" foe=" << foe->
getID()
111 #ifdef DEBUG_LINKLEADER 113 std::cout <<
" foe (" << foe->
getID() <<
") is past the junction (leader)" << std::endl;
123 #ifdef DEBUG_LINKLEADER 125 std::cout <<
" foe (" << foe->
getID() <<
") is the leader!" << std::endl;
130 #ifdef DEBUG_LINKLEADER 132 std::cout <<
" ego (" << ego->
getID() <<
") is the leader!" << std::endl;
MSEdge & getEdge() const
Returns the lane's edge.
Representation of a vehicle in the micro simulation.
MSLane * getLane() const
Returns the lane the vehicle is on.
const std::string & getID() const
Returns the id.
const MSJunction * getToJunction() const
virtual ~MSJunction()
Destructor.
A road/street connecting two junctions.
ConstMSEdgeVector myIncoming
incoming edges
Position myPosition
The position of the junction.
MSJunction(const std::string &id, SumoXMLNodeType type, const Position &position, const PositionVector &shape)
Constructor.
void passedJunction(const MSVehicle *vehicle)
erase vehicle from myLinkLeaders
A point in 2D or 3D with translation and scaling methods.
const Position & getPosition() const
Base class for objects which have an id.
bool isLeader(const MSVehicle *ego, const MSVehicle *foe, bool updateLeader)
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
int getNrOfIncomingLanes() const
virtual void postloadInit()
const std::string & getID() const
Returns the name of the vehicle.