SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Distribution_Points.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// The description of a distribution by a curve
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11
// Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
12
/****************************************************************************/
13
//
14
// This file is part of SUMO.
15
// SUMO is free software: you can redistribute it and/or modify
16
// it under the terms of the GNU General Public License as published by
17
// the Free Software Foundation, either version 3 of the License, or
18
// (at your option) any later version.
19
//
20
/****************************************************************************/
21
#ifndef Distribution_Points_h
22
#define Distribution_Points_h
23
24
25
// ===========================================================================
26
// included modules
27
// ===========================================================================
28
#ifdef _MSC_VER
29
#include <
windows_config.h
>
30
#else
31
#include <
config.h
>
32
#endif
33
34
#include "
Distribution.h
"
35
#include <
utils/geom/PositionVector.h
>
36
37
38
// ===========================================================================
39
// class definitions
40
// ===========================================================================
47
class
Distribution_Points
:
48
public
Distribution
{
49
public
:
51
Distribution_Points
(
const
std::string&
id
,
52
const
PositionVector
& points,
bool
interpolating =
false
) ;
53
55
virtual
~Distribution_Points
() ;
56
58
SUMOReal
getMax
()
const
;
59
60
size_t
getAreaNo
()
const
;
61
SUMOReal
getAreaBegin
(
size_t
index)
const
;
62
SUMOReal
getAreaEnd
(
size_t
index)
const
;
63
SUMOReal
getAreaPerc
(
size_t
index)
const
;
64
65
66
protected
:
68
PositionVector
myPoints
;
69
70
mutable
bool
myProbabilitiesAreComputed
;
71
72
mutable
std::vector<SUMOReal>
myProbabilities
;
73
74
bool
myInterpolateDist
;
75
76
};
77
78
79
#endif
80
81
/****************************************************************************/
82
tmp
buildd
sumo-0.15.0~dfsg
src
utils
distribution
Distribution_Points.h
Generated on Sun May 27 2012 14:52:03 for SUMO - Simulation of Urban MObility by
1.8.1