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< GNECalibratorRoute > & getCalibratorRoutes() const
get calibrator routes
bool flowExists(std::string flowID) const
check if a flow with ID = flowID exists
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.
const std::vector< GNECalibratorVehicleType > & getCalibratorVehicleTypes() const
get calibrator vehicleTypes
void addCalibratorFlow(const GNECalibratorFlow &flow)
add calibrator flow
Stores the information about how to visualize structures.
~GNECalibrator()
Destructor.
std::vector< GNECalibratorFlow > myCalibratorFlows
calibrator flow values
void drawGL(const GUIVisualizationSettings &s) const
Draws the object.
void moveGeometry(const Position &newPosition)
change the position of the element geometry without saving in undoList
GNERouteProbe * myRouteProbe
pointer to current RouteProbe
This lane is powered by an underlying GNEEdge and basically knows how to draw itself.
bool routeExists(std::string routeID) const
check if a route with ID = routeID exists
SumoXMLAttr
Numbers representing SUMO-XML - attributes.
void setAttribute(SumoXMLAttr key, const std::string &value, GNEUndoList *undoList)
method for setting the attribute and letting the object perform additional changes ...
bool vehicleTypeExists(std::string vehicleTypeID) const
check if a vehicelType with ID = vehicleTypeID exists
void openAdditionalDialog()
open Calibrator Dialog
void writeAdditional(OutputDevice &device, bool volatileOptionsEnabled) const
writte additional element into a xml file
std::string generateRouteID() const
generate a route ID
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
std::string getAttribute(SumoXMLAttr key) const
This functions has to be implemented in allGNEAttributeCarrier.
A point in 2D or 3D with translation and scaling methods.
void setCalibratorVehicleTypes(const std::vector< GNECalibratorVehicleType > &calibratorVehicleType)
set calibrator vehicleTypes values
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
double myPositionOverLane
position over Lane
const std::vector< GNECalibratorFlow > & getCalibratorFlows() const
get calibrator flows
std::string generateFlowID() const
generate a flow ID
An Element which don't belongs to GNENet but has influency in the simulation.
void setCalibratorFlows(const std::vector< GNECalibratorFlow > &calibratorFlows)
set calibrator flow values
std::vector< GNECalibratorVehicleType > myCalibratorVehicleTypes
calibrator vehicleType values
std::string generateVehicleTypeID() const
generate a vehicleType ID
void commitGeometryMoving(const Position &oldPos, GNEUndoList *undoList)
commit geometry changes in the attributes of an element after use of moveGeometry(...)
Static storage of an output device and its base (abstract) implementation.
double myFrequency
Frequency of calibrator.
void updateGeometry()
update pre-computed geometry information
const GNECalibratorFlow & getCalibratorFlow(const std::string &flowID)
get reference to calibrator flow
const std::string & getParentName() const
Returns the name of the parent object (if any)
std::vector< GNECalibratorRoute > myCalibratorRoutes
calibrator route values
Position getPositionInView() const
Returns position of additional in view.