153 typedef std::map<std::string, MSJunction* >
DictType;
156 typedef std::map<const MSVehicle*, std::set<const MSVehicle*> >
LeaderMap;
MSJunction & operator=(const MSJunction &)
Invalidated assignment operator.
Representation of a vehicle in the micro simulation.
void addIncoming(MSEdge *edge)
SumoXMLNodeType myType
Tye type of this junction.
The base class for an intersection.
ConstMSEdgeVector myOutgoing
outgoing edges
std::vector< const MSEdge * > ConstMSEdgeVector
std::vector< MSLink * > myEmptyLinks
virtual const std::vector< MSLane * > & getFoeInternalLanes(const MSLink *const) const
std::vector< const MSEdge * > ConstMSEdgeVector
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.
std::map< const MSVehicle *, std::set< const MSVehicle * > > LeaderMap
map from leader vehicle to follower vehicles
void passedJunction(const MSVehicle *vehicle)
erase vehicle from myLinkLeaders
std::map< std::string, MSJunction *> DictType
definition of the static dictionary type
A point in 2D or 3D with translation and scaling methods.
const ConstMSEdgeVector & getIncoming() const
const Position & getPosition() const
virtual const std::vector< MSLink * > & getFoeLinks(const MSLink *const) const
void addOutgoing(MSEdge *edge)
Base class for objects which have an id.
const ConstMSEdgeVector & getOutgoing() const
SumoXMLNodeType
Numbers representing special SUMO-XML-attribute values for representing node- (junction-) types used ...
virtual void postloadInit()
PositionVector myShape
The shape of the junction.
std::vector< MSLane * > myEmptyLanes
Representation of a lane in the micro simulation.
bool isLeader(const MSVehicle *ego, const MSVehicle *foe)
const PositionVector & getShape() const
Returns this junction's shape.
SumoXMLNodeType getType() const
return the type of this Junction