 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
21 #ifndef SUMOVehicleClass_h
22 #define SUMOVehicleClass_h
vehicle that is allowed to drive on high-speed rail tracks
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
public emergency vehicles
const std::string DEFAULT_PEDTYPE_ID
Static storage of an output device and its base (abstract) implementation.
const std::vector< std::string > & getVehicleClassNamesList(SVCPermissions permissions)
Returns the ids of the given classes, divided using a ' '.
SUMOVehicleClass getVehicleClassID(const std::string &name)
Returns the class id of the abstract class given by its name.
const double NETWORK_VERSION
version for written networks and default version for loading
void writePreferences(OutputDevice &into, SVCPermissions preferred)
writes allowed disallowed attributes if needed;
int getVehicleClassCompoundID(const std::string &name)
Returns the OR'ed id of the compound class given by its name.
render as a transport vehicle
vehicle is a small delivery vehicle
classes which (normally) do not drive on normal roads
std::string getVehicleShapeName(SUMOVehicleShape id)
Returns the class name of the shape class given by its id.
SUMOVehicleShape getVehicleShapeID(const std::string &name)
Returns the class id of the shape class given by its name.
vehicle is a not electrified rail
bool isWaterway(SVCPermissions permissions)
Returns whether an edge with the given permission is a waterway edge.
render as a flexible city bus
render as a sedan passenger vehicle ("Stufenheck")
const double DEFAULT_CONTAINER_TRANSHIP_SPEED
bool noVehicles(SVCPermissions permissions)
Returns whether an edge with the given permission forbids vehicles.
automated car (with cruise controllers)
SVCPermissions invertPermissions(SVCPermissions permissions)
negate the given permissions and ensure that only relevant bits are set
const int SUMOVehicleClass_MAX
vehicle is a large transport vehicle
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
classes which drive on tracks
const double DEFAULT_PEDESTRIAN_SPEED
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
const std::string DEFAULT_VTYPE_ID
vehicle is a passenger car (a "normal" car)
rail vehicle that requires electrified tracks
render as a hatchback passenger vehicle ("Fliessheck")
bool canParseVehicleShape(const std::string &shape)
Checks whether the given string contains only known vehicle shape.
bool isRailway(SVCPermissions permissions)
Returns whether an edge with the given permission is a railway edge.
std::map< SVCPermissions, double > parseStopOffsets(const SUMOSAXAttributes &attrs, bool &ok)
Extract stopOffsets from attributes of stopOffset element.
render as a (city) rail without locomotive
const std::string & getVehicleClassNames(SVCPermissions permissions, bool expand=false)
Returns the ids of the given classes, divided using a ' '.
bool canParseVehicleClasses(const std::string &classes)
Checks whether the given string contains only known vehicle classes.
classes which drive on roads
SVCPermissions parseVehicleClasses(const std::string &allowedS)
Parses the given definition of allowed vehicle classes into the given containers Deprecated classes g...
const SVCPermissions SVCAll
all VClasses are allowed
render as a passenger vehicle
render as an emergency vehicle
render as a (futuristic) e-vehicle
render as a arbitrary ship
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings
render as a semi-trailer transport vehicle ("Sattelschlepper")
void writePermissions(OutputDevice &into, SVCPermissions permissions)
writes allowed disallowed attributes if needed;
bool isForbidden(SVCPermissions permissions)
Returns whether an edge with the given permission is a forbidden edge.
vehicle is a large transport vehicle
StringBijection< SUMOVehicleShape > SumoVehicleShapeStrings
render as a transport vehicle with one trailer
render as a wagon passenger vehicle ("Combi")
bool isSidewalk(SVCPermissions permissions)
Returns whether an edge with the given permission is a sidewalk.
std::set< std::string > deprecatedVehicleClassesSeen
const SVCPermissions SVC_UNSPECIFIED
permissions not specified
vehicles ignoring classes
const std::string DEFAULT_BIKETYPE_ID
Encapsulated SAX-Attributes.
const double DEFAULT_VEH_PROB