long long int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
LinkState
The right-of-way state of a link between two lanes used when constructing a NBTrafficLightLogic,...
@ LINKSTATE_MAJOR
This is an uncontrolled, major link, may pass.
Base class for objects which have an id.
A point in 2D or 3D with translation and scaling methods.
Position positionAtOffset(double pos, double lateralOffset=0) const
Returns the position at the given length.
A basic edge for routing applications.
A single lane the router may use.
const std::vector< std::pair< const ROLane *, const ROEdge * > > & getOutgoingViaLanes() const
get the map of outgoing lanes to via edges
double myLength
The length of the lane.
ROLane(const std::string &id, ROEdge *edge, double length, double maxSpeed, SVCPermissions permissions, const PositionVector &shape)
Constructor.
ROEdge * myEdge
The parent edge of this lane.
const PositionVector & getShape() const
double myMaxSpeed
The maximum speed allowed on the lane.
ROLane & operator=(const ROLane &src)
Invalidated assignment operator.
double getLength() const
Returns the length of the lane.
bool allowsVehicleClass(SUMOVehicleClass vclass) const
SVCPermissions getPermissions() const
Returns the list of allowed vehicle classes.
const PositionVector myShape
shape for this lane
const Position geometryPositionAtOffset(double offset, double lateralOffset=0) const
std::vector< std::pair< const ROLane *, const ROEdge * > > myOutgoingLanes
double interpolateLanePosToGeometryPos(double lanePos) const
const double myLengthGeometryFactor
precomputed myShape.length / myLength
void addOutgoingLane(ROLane *lane, ROEdge *via=nullptr)
ROLane(const ROLane &src)
Invalidated copy constructor.
LinkState getIncomingLinkState() const
get the state of the link from the logical predecessor to this lane (ignored for routing)
double getSpeed() const
Returns the maximum speed allowed on this lane.
ROEdge & getEdge() const
Returns the lane's edge.
SVCPermissions myPermissions
The encoding of allowed vehicle classes.