44 std::vector<MSLane*> incoming,
45 std::vector<MSLane*>
internal)
64 if (parent ==
nullptr) {
68 const int ownLinkIndex = specialLane->
getIncomingLanes()[0].viaLink->getIndex();
74 for (MSLinkCont::const_iterator q = lc.begin(); q != lc.end(); ++q) {
75 if ((*q)->getViaLane() !=
nullptr) {
76 const int foeIndex = (*i)->getIncomingLanes()[0].viaLink->getIndex();
98 for (MSLinkCont::const_iterator j = lc.begin(); j != lc.end(); ++j) {
99 MSLane* via = (*j)->getViaLane();
108 assert(thisLink->getViaLane()->getLinkCont().size() == 1);
110 exitLink->setRequestInformation(ownLinkIndex,
false,
false, std::vector<MSLink*>(),
113 thisLink->addBlockedLink(*k);
114 (*k)->addBlockedLink(thisLink);
const std::vector< IncomingLaneInfo > & getIncomingLanes() const
MSEdge & getEdge() const
Returns the lane's edge.
LinkDirection getDirection() const
Returns the direction the vehicle passing this link take.
MSInternalJunction(const std::string &id, SumoXMLNodeType type, const Position &position, const PositionVector &shape, std::vector< MSLane *> incoming, std::vector< MSLane *> internal)
Constructor.
const MSJunctionLogic * getLogic() const
const PositionVector & getShape() const
Returns this lane's shape.
const std::string & getID() const
Returns the id.
const MSJunction * getToJunction() const
The link is a (hard) left direction.
std::vector< MSLane * > myIncomingLanes
list of incoming lanes
virtual ~MSInternalJunction()
Destructor.
MSLane * getViaLane() const
Returns the following inner lane.
A point in 2D or 3D with translation and scaling methods.
bool indirectBicycleTurn(const MSLane *specialLane, const MSLink *thisLink, const MSLane *foeFirstPart, const MSLink *foeLink) const
SVCPermissions getPermissions() const
Returns the vehicle class permissions for this lane.
std::vector< MSLane * > myInternalLanes
list of internal lanes
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
virtual const MSLogicJunction::LinkBits & getResponseFor(int linkIndex) const
Returns the response for the given link.
A junction with right-of-way - rules.
std::vector< MSLane * > myInternalLaneFoes
std::vector< MSLink * > myInternalLinkFoes
const MSLinkCont & getLinkCont() const
returns the container with all links !!!
std::bitset< SUMO_MAX_CONNECTIONS > LinkBits
Container for link response and foes.
void postloadInit()
initialises the junction after the whole net has been loaded
Representation of a lane in the micro simulation.
bool intersects(const Position &p1, const Position &p2) const
Returns the information whether this list of points interesects the given line.