SUMO - Simulation of Urban MObility
GNEVariableSpeedSignStep.h
Go to the documentation of this file.
1 /****************************************************************************/
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2017 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software; you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation; either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GNEVariableSpeedSignStep_h
21 #define GNEVariableSpeedSignStep_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <vector>
36 
37 // ===========================================================================
38 // class declarations
39 // ===========================================================================
40 
42 
43 // ===========================================================================
44 // class definitions
45 // ===========================================================================
51 public:
53  GNEVariableSpeedSignStep(GNEVariableSpeedSign* variableSpeedSignParent);
54 
56  GNEVariableSpeedSignStep(GNEVariableSpeedSign* variableSpeedSignParent, double time, double speed);
57 
60 
63 
65  SumoXMLTag getTag() const;
66 
68  double getTime() const;
69 
71  double getSpeed() const;
72 
76  bool setTime(double time);
77 
81  bool setSpeed(double speed);
82 
84  bool operator==(const GNEVariableSpeedSignStep& variableSpeedSignStep) const;
85 
87  bool operator!=(const GNEVariableSpeedSignStep& variableSpeedSignStep) const;
88 
90  bool operator>(const GNEVariableSpeedSignStep& variableSpeedSignStep) const;
91 
93  bool operator<(const GNEVariableSpeedSignStep& variableSpeedSignStep) const;
94 
96  bool operator>=(const GNEVariableSpeedSignStep& variableSpeedSignStep) const;
97 
99  bool operator<=(const GNEVariableSpeedSignStep& variableSpeedSignStep) const;
100 
101 protected:
104 
106  double myTime;
107 
109  double mySpeed;
110 
113 };
114 
115 #endif
116 
117 /****************************************************************************/
GNEVariableSpeedSign * myVariableSpeedSignParent
pointer to variable speed sign parent
SumoXMLTag
Numbers representing SUMO-XML - element names.
bool operator>=(const GNEVariableSpeedSignStep &variableSpeedSignStep) const
overload operator >=
bool operator>(const GNEVariableSpeedSignStep &variableSpeedSignStep) const
overload operator >
bool operator<(const GNEVariableSpeedSignStep &variableSpeedSignStep) const
overload operator <
double getTime() const
get time
bool operator!=(const GNEVariableSpeedSignStep &variableSpeedSignStep) const
overload operator !=
bool setTime(double time)
set time
SumoXMLTag myTag
XML Tag of a variable speed sign interval.
double mySpeed
speed in this timeStep
double getSpeed() const
get speed
bool operator<=(const GNEVariableSpeedSignStep &variableSpeedSignStep) const
overload operator <=
bool operator==(const GNEVariableSpeedSignStep &variableSpeedSignStep) const
overload operator ==
SumoXMLTag getTag() const
get tag
GNEVariableSpeedSignStep(GNEVariableSpeedSign *variableSpeedSignParent)
default constructor
GNEVariableSpeedSign * getVariableSpeedSignParent() const
get variable speed sign parent
bool setSpeed(double speed)
set speed time