20 #ifndef GNECalibrator_h 21 #define GNECalibrator_h 66 const std::vector<GNECalibratorRoute>& calibratorRoutes,
const std::vector<GNECalibratorFlow>& calibratorFlows,
67 const std::vector<GNECalibratorVehicleType>& calibratorVehicleTypes);
const std::vector< GNECalibratorFlow > & getCalibratorFlows() const
get calibrator flows
void addCalibratorRoute(const GNECalibratorRoute &route)
add calibrator route
GNECalibrator(const std::string &id, GNELane *lane, GNEViewNet *viewNet, double pos, double frequency, const std::string &output, const std::vector< GNECalibratorRoute > &calibratorRoutes, const std::vector< GNECalibratorFlow > &calibratorFlows, const std::vector< GNECalibratorVehicleType > &calibratorVehicleTypes)
Constructor.
void addCalibratorFlow(const GNECalibratorFlow &flow)
add calibrator flow
Stores the information about how to visualize structures.
std::string getAttribute(SumoXMLAttr key) const
~GNECalibrator()
Destructor.
std::vector< GNECalibratorFlow > myCalibratorFlows
calibrator flow values
Position getPositionInView() const
Returns position of Calibrator in view.
GNERouteProbe * myRouteProbe
pointer to current RouteProbe
std::string generateVehicleTypeID() const
generate a vehicleType ID
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
bool vehicleTypeExists(std::string vehicleTypeID) const
check if a vehicelType with ID = vehicleTypeID exists
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
const std::vector< GNECalibratorRoute > & getCalibratorRoutes() const
get calibrator routes
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
bool routeExists(std::string routeID) const
check if a route with ID = routeID exists
void commmitAdditionalGeometryMoved(double, double, GNEUndoList *)
updated geometry changes in the attributes of additional
void openAdditionalDialog()
open Calibrator Dialog
std::string myOutput
output of calibrator
const GNECalibratorRoute & getCalibratorRoute(const std::string &routeID)
get reference calibrator route
GNECalibrator & operator=(const GNECalibrator &)
Invalidated assignment operator.
bool isValid(SumoXMLAttr key, const std::string &value)
method for checking if the key and their conrrespond attribute are valids
A point in 2D or 3D with translation and scaling methods.
void setCalibratorVehicleTypes(const std::vector< GNECalibratorVehicleType > &calibratorVehicleType)
set calibrator vehicleTypes values
void writeAdditional(OutputDevice &device) const
writte additional element into a xml file
const GNECalibratorVehicleType & getCalibratorVehicleType(const std::string &vehicleTypeID)
get reference to calibrator vehicle type
void setCalibratorRoutes(const std::vector< GNECalibratorRoute > &calibratorRoutes)
set calibrator route values
void addCalibratorVehicleType(const GNECalibratorVehicleType &vehicleType)
add calibrator vehicleType
std::string generateFlowID() const
generate a flow ID
const std::string & getParentName() const
Returns the name of the parent object (if any)
An Element which don't belongs to GNENet but has influency in the simulation.
bool flowExists(std::string flowID) const
check if a flow with ID = flowID exists
const std::vector< GNECalibratorVehicleType > & getCalibratorVehicleTypes() const
get calibrator vehicleTypes
void setCalibratorFlows(const std::vector< GNECalibratorFlow > &calibratorFlows)
set calibrator flow values
std::vector< GNECalibratorVehicleType > myCalibratorVehicleTypes
calibrator vehicleType values
Static storage of an output device and its base (abstract) implementation.
double myFrequency
Frequency of calibrator.
void updateGeometry()
update pre-computed geometry information
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
std::string generateRouteID() const
generate a route ID
const GNECalibratorFlow & getCalibratorFlow(const std::string &flowID)
get reference to calibrator flow
std::vector< GNECalibratorRoute > myCalibratorRoutes
calibrator route values
void moveAdditionalGeometry(double, double)
change the position of the calibrator geometry