SUMO - Simulation of Urban MObility
 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-sim.org/
11 // Copyright (C) 2001-2014 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"
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
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:
69 
71 
72  mutable std::vector<SUMOReal> myProbabilities;
73 
75 
76 };
77 
78 
79 #endif
80 
81 /****************************************************************************/
82 
SUMOReal getAreaPerc(size_t index) const
SUMOReal getAreaEnd(size_t index) const
A list of positions.
virtual ~Distribution_Points()
Destructor.
SUMOReal getAreaBegin(size_t index) const
PositionVector myPoints
The list of points that describe the distribution.
Distribution_Points(const std::string &id, const PositionVector &points, bool interpolating=false)
Constructor.
SUMOReal getMax() const
Returns the maximum value of this distribution.
#define SUMOReal
Definition: config.h:215
std::vector< SUMOReal > myProbabilities