20 #ifndef GNECalibrator_h 21 #define GNECalibrator_h 59 GNECalibratorFlow(
GNECalibrator* calibratorParent, std::string type, std::string route, std::string color, std::string departLane, std::string departPos,
60 std::string departSpeed, std::string arrivalLane, std::string arrivalPos, std::string arrivalSpeed,
61 std::string line,
int personNumber,
int containerNumber,
SUMOReal begin,
SUMOReal end,
71 const std::string&
getType()
const;
98 const std::string&
getLine()
const;
127 bool setType(std::string type);
172 bool setLine(std::string line);
289 const std::string& output,
const std::vector<GNECalibrator::GNECalibratorFlow*>& flowValues);
316 std::vector<GNECalibrator::GNECalibratorFlow*>
getFlowValues()
const;
319 void setFlowValues(std::vector<GNECalibrator::GNECalibratorFlow*> calibratorFlowValues);
void writeAdditional(OutputDevice &device) const
writte additional element into a xml file
bool setDepartSpeed(std::string departSpeed)
set depart speed
int getContainerNumber() const
get number of containers
bool setPersonNumber(int personNumber)
set number of persons
void setFlowValues(std::vector< GNECalibrator::GNECalibratorFlow * > calibratorFlowValues)
set Calbratorflow values
const std::string & getRoute() const
get route in which this flow is used
SUMOReal getProbability() const
get probability of vehicle
std::string myRoute
route in which this flow is used
std::string myDepartSpeed
depart speed
Stores the information about how to visualize structures.
SUMOReal getPeriod() const
get period of vehicle
void removeFlow(GNECalibratorFlow *flow)
remove a existent flow
bool setArrivalSpeed(std::string arrivalSpeed)
set arrival speed
~GNECalibrator()
Destructor.
std::string myType
type of flow
const std::string & getLine() const
get line of busStop/containerStop
GNECalibratorFlow & operator=(const GNECalibratorFlow &)
Invalidated assignment operator.
std::vector< GNECalibrator::GNECalibratorFlow * > getFlowValues() const
get Calbratorflow values
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
SUMOReal getBegin() const
get begin time step
bool setVehsPerHour(SUMOReal vehsPerHour)
set vehicles per hour
SUMOReal myVehsPerHour
vehicles per hour
SUMOReal myEnd
time step end
GNERouteProbe * myRouteProbe
pointer to RouteProbe
std::string myDepartPos
depart position
bool setPeriod(SUMOReal period)
set period of vehicles
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
const std::string & getArrivalLane() const
get arrival lane
bool setNumber(int number)
set number of vehicles
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
std::string myArrivalPos
arrival pos
int myPersonNumber
number of person
bool setBegin(SUMOReal begin)
set begin step
int myContainerNumber
number of container
void openAdditionalDialog()
open Calibrator Dialog
GNECalibrator * myCalibratorParent
pointer to calibrator parent
bool setArrivalLane(std::string arrivalLane)
set arrival lane
std::string myLine
line of bus/container stop
GNECalibratorFlow(GNECalibrator *calibratorParent, std::string type, std::string route)
constructor
GNECalibrator(const std::string &id, GNEEdge *edge, GNEViewNet *viewNet, SUMOReal pos, SUMOReal frequency, const std::string &output, const std::vector< GNECalibrator::GNECalibratorFlow * > &flowValues)
Constructor.
bool setEnd(SUMOReal end)
set end step
std::string myOutput
output of calibrator
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
bool setRoute(std::string route)
set route in which this flow is used
std::string getAttribute(SumoXMLAttr key) const
A point in 2D or 3D with translation and scaling methods.
bool setContainerNumber(int containerNumber)
set number of container
void commmitAdditionalGeometryMoved(SUMOReal, SUMOReal, GNEUndoList *)
updated geometry changes in the attributes of additional
std::string myArrivalLane
arrival lane
std::vector< GNECalibratorFlow * > myFlowValues
Calbratorflow values.
std::string myColor
color of flow
bool setDepartPos(std::string departPos)
set depart position
SUMOReal myProbability
probability
SUMOReal myBegin
time step begin
int getNumber() const
get number of vehicles
SUMOReal getEnd() const
get end time step
SUMOReal getVehsPerHour() const
get vehicles per hour
A road/street connecting two junctions (netedit-version)
bool setLine(std::string line)
set line of busStop/containerStop
const std::string & getDepartPos() const
get depart position
bool setProbability(SUMOReal probability)
set probability of vehicle
bool setArrivalPos(std::string arrivalPos)
set arrival position
~GNECalibratorFlow()
destructor
void insertFlow(GNECalibratorFlow *flow)
insert a new flow
An Element which don't belongs to GNENet but has influency in the simulation.
std::string myArrivalSpeed
arrival speed
bool setColor(std::string color)
set color of flow
int myNumber
number of vehicle
bool setDepartLane(std::string departLane)
set depart lane
Static storage of an output device and its base (abstract) implementation.
GNECalibrator * getCalibratorParent() const
get pointer to calibrator parent
void updateGeometry()
update pre-computed geometry information
bool setType(std::string type)
set type of vehicle
SUMOReal myFrequency
Frequency of calibrator.
void moveAdditionalGeometry(SUMOReal, SUMOReal)
change the position of the calibrator geometry
const std::string & getDepartSpeed() const
get arrival speed
std::string myDepartLane
depart lane
const std::string & getColor() const
get color of flow
const std::string & getParentName() const
Returns the name of the parent object (if any)
int getPersonNumber() const
get number of persons
const std::string & getArrivalPos() const
get arrival position
const std::string & getArrivalSpeed() const
get arrival speed
const std::string & getType() const
get type of vehicle
const std::string & getDepartLane() const
get depart lane
Position getPositionInView() const
Returns position of Calibrator in view.