 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
20 #ifndef SUMOVehicleClass_h
21 #define SUMOVehicleClass_h
@ SVC_RAIL_FAST
vehicle that is allowed to drive on high-speed rail tracks
@ SVC_PEDESTRIAN
pedestrian
SUMOVehicleClass
Definition of vehicle classes to differ between different lane usage and authority types.
@ SVC_E_VEHICLE
is an electric vehicle
@ SVC_EMERGENCY
public emergency vehicles
@ SVS_MOTORCYCLE
render as a motorcycle
@ SVC_COACH
vehicle is a coach
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
@ SVS_BUS_TROLLEY
render as a trolley bus
@ SVC_CUSTOM2
is a user-defined type
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.
@ SVS_TRUCK
render as a transport vehicle
@ SVC_BICYCLE
vehicle is a bicycle
@ SVC_DELIVERY
vehicle is a small delivery vehicle
@ SVC_NON_ROAD
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.
@ SVC_RAIL
vehicle is a not electrified rail
@ SVC_RAIL_URBAN
vehicle is a city rail
bool isWaterway(SVCPermissions permissions)
Returns whether an edge with the given permission is a waterway edge.
@ SVC_AUTHORITY
authorities vehicles
@ SVS_BUS_FLEXIBLE
render as a flexible city bus
@ SVS_PASSENGER_SEDAN
render as a sedan passenger vehicle ("Stufenheck")
@ SVC_PRIVATE
private vehicles
@ SVS_BICYCLE
render as a bicycle
const double DEFAULT_CONTAINER_TRANSHIP_SPEED
bool noVehicles(SVCPermissions permissions)
Returns whether an edge with the given permission forbids vehicles.
@ SVC_TRAM
vehicle is a light rail
@ SVS_DELIVERY
automated car (with cruise controllers)
SVCPermissions invertPermissions(SVCPermissions permissions)
negate the given permissions and ensure that only relevant bits are set
@ SVC_TRUCK
vehicle is a large transport vehicle
@ SVC_CUSTOM1
is a user-defined type
int SVCPermissions
bitset where each bit declares whether a certain SVC may use this edge/lane
@ SVC_RAIL_CLASSES
classes which drive on tracks
const double DEFAULT_PEDESTRIAN_SPEED
@ SVC_HOV
vehicle is a HOV
SUMOVehicleShape
Definition of vehicle classes to differ between different appearences.
const std::string DEFAULT_VTYPE_ID
@ SVC_PASSENGER
vehicle is a passenger car (a "normal" car)
@ SVC_RAIL_ELECTRIC
rail vehicle that requires electrified tracks
@ SVS_RAIL_CARGO
render as a cargo train
@ SVS_PASSENGER_HATCHBACK
render as a hatchback passenger vehicle ("Fliessheck")
bool canParseVehicleShape(const std::string &shape)
Checks whether the given string contains only known vehicle shape.
@ SVS_MOPED
render as a moped
@ SVS_POLICE
render as a police car
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.
@ SVC_SHIP
is an arbitrary ship
@ SVS_RAIL_CAR
render as a (city) rail without locomotive
@ SVS_PASSENGER_VAN
render as a van
@ SVS_PEDESTRIAN
render as a pedestrian
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.
@ SVC_MOPED
vehicle is a moped
@ SVC_TAXI
vehicle is a taxi
@ SVC_ROAD_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
@ SVS_PASSENGER
render as a passenger vehicle
@ SVS_EMERGENCY
render as an emergency vehicle
@ SVS_E_VEHICLE
render as a (futuristic) e-vehicle
@ SVS_SHIP
render as a arbitrary ship
const SUMOVehicleClass SUMOVehicleClass_MAX
StringBijection< SUMOVehicleClass > SumoVehicleClassStrings
@ SVS_TRUCK_SEMITRAILER
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.
@ SVS_FIREBRIGADE
render as a fire brigade
@ SVC_TRAILER
vehicle is a large transport vehicle
@ SVC_BUS
vehicle is a bus
StringBijection< SUMOVehicleShape > SumoVehicleShapeStrings
@ SVS_ANT
render as a giant ant
@ SVS_TRUCK_1TRAILER
render as a transport vehicle with one trailer
@ SVS_PASSENGER_WAGON
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
@ SVC_MOTORCYCLE
vehicle is a motorcycle
@ SVS_BUS_COACH
render as a coach
@ SVS_RICKSHAW
render as a rickshaw
const SVCPermissions SVC_UNSPECIFIED
permissions not specified
@ SVC_IGNORING
vehicles ignoring classes
const std::string DEFAULT_BIKETYPE_ID
Encapsulated SAX-Attributes.
const double DEFAULT_VEH_PROB
@ SVS_RAIL
render as a rail