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  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_PWAG_SIMPLE, DEPART_POS_PWAG_GENERIC, DEPART_POS_MAX_SPEED_GAP,
  DEPART_POS_RANDOM_FREE, DEPART_POS_DEF_MAX
}
 Possible ways to choose the departure position. More...
 
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_ARRIVALSPEED_SET = 2 << 9
 
const int VEHPARS_COLOR_SET = 1
 
const int VEHPARS_CONTAINER_NUMBER_SET = 2 << 15
 
const int VEHPARS_DEPARTLANE_SET = 2 << 1
 
const int VEHPARS_DEPARTPOS_SET = 2 << 2
 
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 19525 2015-12-04 11:08:33Z namdre

Definition in file SUMOVehicleParameter.h.

Enumeration Type Documentation

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 179 of file SUMOVehicleParameter.h.

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 195 of file SUMOVehicleParameter.h.

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 213 of file SUMOVehicleParameter.h.

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 91 of file SUMOVehicleParameter.h.

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 109 of file SUMOVehicleParameter.h.

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_PWAG_SIMPLE 

Simple max-flow insertion by P.Wagner.

DEPART_POS_PWAG_GENERIC 

Generic max-flow insertion by P.Wagner.

DEPART_POS_MAX_SPEED_GAP 

A gap is chosen where the maximum speed may be achieved.

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 133 of file SUMOVehicleParameter.h.

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 161 of file SUMOVehicleParameter.h.

Variable Documentation

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_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_ARRIVALSPEED_SET = 2 << 9
const int VEHPARS_CONTAINER_NUMBER_SET = 2 << 15
const int VEHPARS_DEPARTLANE_SET = 2 << 1
const int VEHPARS_DEPARTPOS_SET = 2 << 2
const int VEHPARS_DEPARTSPEED_SET = 2 << 3
const int VEHPARS_LINE_SET = 2 << 10
const int VEHPARS_PERIODFREQ_SET = 2 << 5

Definition at line 59 of file SUMOVehicleParameter.h.

Referenced by SUMOVehicleParserHelper::parseFlowAttributes().

const int VEHPARS_PERIODNUM_SET = 2 << 4

Definition at line 58 of file SUMOVehicleParameter.h.

const int VEHPARS_PERSON_CAPACITY_SET = 2 << 14

Definition at line 68 of file SUMOVehicleParameter.h.

const int VEHPARS_PERSON_NUMBER_SET = 2 << 15
const int VEHPARS_ROUTE_SET = 2 << 6
const int VEHPARS_VTYPE_SET = 2