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