SUMO - Simulation of Urban MObility
SUMOVehicleParameter.h File Reference
#include <config.h>
#include <string>
#include <utils/common/Parameterised.h>
#include <utils/common/RGBColor.h>
#include <utils/common/SUMOTime.h>
#include <utils/common/SUMOVehicleClass.h>
Include dependency graph for SUMOVehicleParameter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  SUMOVehicleParameter
 Structure representing possible vehicle parameter. More...
 
struct  SUMOVehicleParameter::Stop
 Definition of vehicle stop (position and duration) More...
 

Enumerations

enum  ArrivalLaneDefinition { ARRIVAL_LANE_DEFAULT, ARRIVAL_LANE_GIVEN, ARRIVAL_LANE_CURRENT, ARRIVAL_LANE_DEF_MAX }
 Possible ways to choose the arrival lane. More...
 
enum  ArrivalPosDefinition {
  ARRIVAL_POS_DEFAULT, ARRIVAL_POS_GIVEN, ARRIVAL_POS_RANDOM, ARRIVAL_POS_MAX,
  ARRIVAL_POS_DEF_MAX
}
 Possible ways to choose the arrival position. More...
 
enum  ArrivalPosLatDefinition {
  ARRIVAL_POSLAT_DEFAULT, ARRIVAL_POSLAT_GIVEN, ARRIVAL_POSLAT_RIGHT, ARRIVAL_POSLAT_CENTER,
  ARRIVAL_POSLAT_LEFT, ARRIVAL_POSLAT_DEF_MAX
}
 Possible ways to choose the departure position. More...
 
enum  ArrivalSpeedDefinition { ARRIVAL_SPEED_DEFAULT, ARRIVAL_SPEED_GIVEN, ARRIVAL_SPEED_CURRENT, ARRIVAL_SPEED_DEF_MAX }
 Possible ways to choose the arrival speed. More...
 
enum  DepartDefinition {
  DEPART_GIVEN, DEPART_TRIGGERED, DEPART_CONTAINER_TRIGGERED, DEPART_NOW,
  DEPART_DEF_MAX
}
 Possible ways to depart. More...
 
enum  DepartLaneDefinition {
  DEPART_LANE_DEFAULT, DEPART_LANE_GIVEN, DEPART_LANE_RANDOM, DEPART_LANE_FREE,
  DEPART_LANE_ALLOWED_FREE, DEPART_LANE_BEST_FREE, DEPART_LANE_FIRST_ALLOWED, DEPART_LANE_DEF_MAX
}
 Possible ways to choose a lane on depart. More...
 
enum  DepartPosDefinition {
  DEPART_POS_DEFAULT, DEPART_POS_GIVEN, DEPART_POS_RANDOM, DEPART_POS_FREE,
  DEPART_POS_BASE, DEPART_POS_LAST, DEPART_POS_RANDOM_FREE, DEPART_POS_DEF_MAX
}
 Possible ways to choose the departure position. More...
 
enum  DepartPosLatDefinition {
  DEPART_POSLAT_DEFAULT, DEPART_POSLAT_GIVEN, DEPART_POSLAT_RIGHT, DEPART_POSLAT_CENTER,
  DEPART_POSLAT_LEFT, DEPART_POSLAT_RANDOM, DEPART_POSLAT_FREE, DEPART_POSLAT_RANDOM_FREE,
  DEPART_POSLAT_DEF_MAX
}
 
enum  DepartSpeedDefinition {
  DEPART_SPEED_DEFAULT, DEPART_SPEED_GIVEN, DEPART_SPEED_RANDOM, DEPART_SPEED_MAX,
  DEPART_SPEED_DEF_MAX
}
 Possible ways to choose the departure speed. More...
 

Variables

const int STOP_CONTAINER_TRIGGER_SET = 2 << 4
 
const int STOP_END_SET = 1
 
const int STOP_EXPECTED_CONTAINERS_SET = 2 << 5
 
const int STOP_EXPECTED_SET = 2 << 3
 
const int STOP_INDEX_END = -1
 
const int STOP_INDEX_FIT = -2
 
const int STOP_PARKING_SET = 2 << 2
 
const int STOP_START_SET = 2
 
const int STOP_TRIGGER_SET = 2 << 1
 
const int VEHPARS_ARRIVALLANE_SET = 2 << 7
 
const int VEHPARS_ARRIVALPOS_SET = 2 << 8
 
const int VEHPARS_ARRIVALPOSLAT_SET = 2 << 18
 
const int VEHPARS_ARRIVALSPEED_SET = 2 << 9
 
const int VEHPARS_COLOR_SET = 1
 
const int VEHPARS_CONTAINER_NUMBER_SET = 2 << 16
 
const int VEHPARS_DEPARTLANE_SET = 2 << 1
 
const int VEHPARS_DEPARTPOS_SET = 2 << 2
 
const int VEHPARS_DEPARTPOSLAT_SET = 2 << 17
 
const int VEHPARS_DEPARTSPEED_SET = 2 << 3
 
const int VEHPARS_FORCE_REROUTE = 2 << 13
 
const int VEHPARS_FROM_TAZ_SET = 2 << 11
 
const int VEHPARS_LINE_SET = 2 << 10
 
const int VEHPARS_PERIODFREQ_SET = 2 << 5
 
const int VEHPARS_PERIODNUM_SET = 2 << 4
 
const int VEHPARS_PERSON_CAPACITY_SET = 2 << 14
 
const int VEHPARS_PERSON_NUMBER_SET = 2 << 15
 
const int VEHPARS_ROUTE_SET = 2 << 6
 
const int VEHPARS_TO_TAZ_SET = 2 << 12
 
const int VEHPARS_VTYPE_SET = 2
 

Detailed Description

Author
Daniel Krajzewicz
Jakob Erdmann
Axel Wegener
Michael Behrisch
Date
2006-01-24
Version
Id
SUMOVehicleParameter.h 23150 2017-02-27 12:08:30Z behrisch

Definition in file SUMOVehicleParameter.h.

Enumeration Type Documentation

◆ ArrivalLaneDefinition

Possible ways to choose the arrival lane.

Enumerator
ARRIVAL_LANE_DEFAULT 

No information given; use default.

ARRIVAL_LANE_GIVEN 

The arrival lane is given.

ARRIVAL_LANE_CURRENT 

The current lane shall be used.

ARRIVAL_LANE_DEF_MAX 

Tag for the last element in the enum for safe int casting.

Definition at line 203 of file SUMOVehicleParameter.h.

◆ ArrivalPosDefinition

Possible ways to choose the arrival position.

Enumerator
ARRIVAL_POS_DEFAULT 

No information given; use default.

ARRIVAL_POS_GIVEN 

The arrival position is given.

ARRIVAL_POS_RANDOM 

The arrival position is chosen randomly.

ARRIVAL_POS_MAX 

The maximum arrival position is used.

ARRIVAL_POS_DEF_MAX 

Tag for the last element in the enum for safe int casting.

Definition at line 219 of file SUMOVehicleParameter.h.

◆ ArrivalPosLatDefinition

Possible ways to choose the departure position.

Enumerator
ARRIVAL_POSLAT_DEFAULT 

No information given; use default.

ARRIVAL_POSLAT_GIVEN 

The position is given.

ARRIVAL_POSLAT_RIGHT 

At the rightmost side of the lane.

ARRIVAL_POSLAT_CENTER 

At the center of the lane.

ARRIVAL_POSLAT_LEFT 

At the leftmost side of the lane.

ARRIVAL_POSLAT_DEF_MAX 

Tag for the last element in the enum for safe int casting.

Definition at line 237 of file SUMOVehicleParameter.h.

◆ ArrivalSpeedDefinition

Possible ways to choose the arrival speed.

Enumerator
ARRIVAL_SPEED_DEFAULT 

No information given; use default.

ARRIVAL_SPEED_GIVEN 

The speed is given.

ARRIVAL_SPEED_CURRENT 

The current speed is used.

ARRIVAL_SPEED_DEF_MAX 

Tag for the last element in the enum for safe int casting.

Definition at line 257 of file SUMOVehicleParameter.h.

◆ DepartDefinition

Possible ways to depart.

Enumerator
DEPART_GIVEN 

The time is given.

DEPART_TRIGGERED 

The departure is person triggered.

DEPART_CONTAINER_TRIGGERED 

The departure is container triggered.

DEPART_NOW 

The vehicle is discarded if emission fails (not fully implemented yet)

DEPART_DEF_MAX 

Tag for the last element in the enum for safe int casting.

Definition at line 93 of file SUMOVehicleParameter.h.

◆ DepartLaneDefinition

Possible ways to choose a lane on depart.

Enumerator
DEPART_LANE_DEFAULT 

No information given; use default.

DEPART_LANE_GIVEN 

The lane is given.

DEPART_LANE_RANDOM 

The lane is chosen randomly.

DEPART_LANE_FREE 

The least occupied lane is used.

DEPART_LANE_ALLOWED_FREE 

The least occupied lane from lanes which allow the continuation.

DEPART_LANE_BEST_FREE 

The least occupied lane from best lanes.

DEPART_LANE_FIRST_ALLOWED 

The rightmost lane the vehicle may use.

DEPART_LANE_DEF_MAX 

Tag for the last element in the enum for safe int casting.

Definition at line 111 of file SUMOVehicleParameter.h.

◆ DepartPosDefinition

Possible ways to choose the departure position.

Enumerator
DEPART_POS_DEFAULT 

No information given; use default.

DEPART_POS_GIVEN 

The position is given.

DEPART_POS_RANDOM 

The position is chosen randomly.

DEPART_POS_FREE 

A free position is chosen.

DEPART_POS_BASE 

Back-at-zero position.

DEPART_POS_LAST 

Insert behind the last vehicle as close as possible to still allow the specified departSpeed. Fallback to DEPART_POS_BASE if there is no vehicle on the departLane yet.

DEPART_POS_RANDOM_FREE 

If a fixed number of random choices fails, a free position is chosen.

DEPART_POS_DEF_MAX 

Tag for the last element in the enum for safe int casting.

Definition at line 135 of file SUMOVehicleParameter.h.

◆ DepartPosLatDefinition

Enumerator
DEPART_POSLAT_DEFAULT 

No information given; use default.

DEPART_POSLAT_GIVEN 

The position is given.

DEPART_POSLAT_RIGHT 

At the rightmost side of the lane.

DEPART_POSLAT_CENTER 

At the center of the lane.

DEPART_POSLAT_LEFT 

At the leftmost side of the lane.

DEPART_POSLAT_RANDOM 

The lateral position is chosen randomly.

DEPART_POSLAT_FREE 

A free lateral position is chosen.

DEPART_POSLAT_RANDOM_FREE 

If a fixed number of random choices fails, a free lateral position is chosen.

DEPART_POSLAT_DEF_MAX 

Tag for the last element in the enum for safe int casting.

Definition at line 159 of file SUMOVehicleParameter.h.

◆ DepartSpeedDefinition

Possible ways to choose the departure speed.

Enumerator
DEPART_SPEED_DEFAULT 

No information given; use default.

DEPART_SPEED_GIVEN 

The speed is given.

DEPART_SPEED_RANDOM 

The speed is chosen randomly.

DEPART_SPEED_MAX 

The maximum speed is used.

DEPART_SPEED_DEF_MAX 

Tag for the last element in the enum for safe int casting.

Definition at line 185 of file SUMOVehicleParameter.h.

Variable Documentation

◆ STOP_CONTAINER_TRIGGER_SET

const int STOP_CONTAINER_TRIGGER_SET = 2 << 4

◆ STOP_END_SET

const int STOP_END_SET = 1

◆ STOP_EXPECTED_CONTAINERS_SET

const int STOP_EXPECTED_CONTAINERS_SET = 2 << 5

◆ STOP_EXPECTED_SET

const int STOP_EXPECTED_SET = 2 << 3

◆ STOP_INDEX_END

const int STOP_INDEX_END = -1

◆ STOP_INDEX_FIT

◆ STOP_PARKING_SET

const int STOP_PARKING_SET = 2 << 2

◆ STOP_START_SET

const int STOP_START_SET = 2

◆ STOP_TRIGGER_SET

const int STOP_TRIGGER_SET = 2 << 1

◆ VEHPARS_ARRIVALLANE_SET

const int VEHPARS_ARRIVALLANE_SET = 2 << 7

◆ VEHPARS_ARRIVALPOS_SET

const int VEHPARS_ARRIVALPOS_SET = 2 << 8

◆ VEHPARS_ARRIVALPOSLAT_SET

const int VEHPARS_ARRIVALPOSLAT_SET = 2 << 18

◆ VEHPARS_ARRIVALSPEED_SET

const int VEHPARS_ARRIVALSPEED_SET = 2 << 9

◆ VEHPARS_COLOR_SET

◆ VEHPARS_CONTAINER_NUMBER_SET

const int VEHPARS_CONTAINER_NUMBER_SET = 2 << 16

◆ VEHPARS_DEPARTLANE_SET

const int VEHPARS_DEPARTLANE_SET = 2 << 1

◆ VEHPARS_DEPARTPOS_SET

const int VEHPARS_DEPARTPOS_SET = 2 << 2

◆ VEHPARS_DEPARTPOSLAT_SET

const int VEHPARS_DEPARTPOSLAT_SET = 2 << 17

◆ VEHPARS_DEPARTSPEED_SET

const int VEHPARS_DEPARTSPEED_SET = 2 << 3

◆ VEHPARS_FORCE_REROUTE

◆ VEHPARS_FROM_TAZ_SET

◆ VEHPARS_LINE_SET

const int VEHPARS_LINE_SET = 2 << 10

◆ VEHPARS_PERIODFREQ_SET

const int VEHPARS_PERIODFREQ_SET = 2 << 5

Definition at line 59 of file SUMOVehicleParameter.h.

Referenced by SUMOVehicleParserHelper::parseFlowAttributes().

◆ VEHPARS_PERIODNUM_SET

const int VEHPARS_PERIODNUM_SET = 2 << 4

Definition at line 58 of file SUMOVehicleParameter.h.

◆ VEHPARS_PERSON_CAPACITY_SET

const int VEHPARS_PERSON_CAPACITY_SET = 2 << 14

Definition at line 68 of file SUMOVehicleParameter.h.

◆ VEHPARS_PERSON_NUMBER_SET

const int VEHPARS_PERSON_NUMBER_SET = 2 << 15

◆ VEHPARS_ROUTE_SET

const int VEHPARS_ROUTE_SET = 2 << 6

◆ VEHPARS_TO_TAZ_SET

◆ VEHPARS_VTYPE_SET

const int VEHPARS_VTYPE_SET = 2