SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Distribution_Points Class Reference

#include <Distribution_Points.h>

Inheritance diagram for Distribution_Points:
Distribution Named

Public Member Functions

 Distribution_Points (const std::string &id, const PositionVector &points, bool interpolating=false)
 Constructor.
SUMOReal getAreaBegin (size_t index) const
SUMOReal getAreaEnd (size_t index) const
size_t getAreaNo () const
SUMOReal getAreaPerc (size_t index) const
const std::string & getID () const
 Returns the id.
SUMOReal getMax () const
 Returns the maximum value of this distribution.
void setID (const std::string &newID)
 resets the id
virtual ~Distribution_Points ()
 Destructor.

Protected Attributes

std::string myID
 The name of the object.
bool myInterpolateDist
PositionVector myPoints
 The list of points that describe the distribution.
std::vector< SUMORealmyProbabilities
bool myProbabilitiesAreComputed

Detailed Description

A description of a distribution that uses a set of points in a 2d-space to describe the values (each points x-value) and theri possibilities (each points y-value)

Definition at line 47 of file Distribution_Points.h.


Constructor & Destructor Documentation

Distribution_Points::Distribution_Points ( const std::string &  id,
const PositionVector points,
bool  interpolating = false 
)

Constructor.

Definition at line 46 of file Distribution_Points.cpp.

Distribution_Points::~Distribution_Points ( )
virtual

Destructor.

Definition at line 53 of file Distribution_Points.cpp.


Member Function Documentation

SUMOReal Distribution_Points::getAreaBegin ( size_t  index) const

Definition at line 71 of file Distribution_Points.cpp.

References myPoints.

Referenced by ODMatrix::applyCurve(), and getAreaPerc().

SUMOReal Distribution_Points::getAreaEnd ( size_t  index) const

Definition at line 77 of file Distribution_Points.cpp.

References myPoints.

Referenced by ODMatrix::applyCurve(), and getAreaPerc().

size_t Distribution_Points::getAreaNo ( ) const

Definition at line 65 of file Distribution_Points.cpp.

References myPoints, and PositionVector::size().

Referenced by ODMatrix::applyCurve().

SUMOReal Distribution_Points::getAreaPerc ( size_t  index) const
const std::string& Named::getID ( ) const
inlineinherited

Returns the id.

Returns:
The stored id

Reimplemented in MS_E2_ZS_CollectorOverLanes.

Definition at line 61 of file Named.h.

References Named::myID.

Referenced by MSDetectorControl::add(), ShapeContainer::add(), RORouteDef_Alternatives::addAlternative(), MSNet::addBusStop(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), NIImporter_OpenDrive::addE2EConnectionsSecure(), RONet::addNode(), NIImporter_SUMO::addPhase(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), NIVisumTL::build(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), NBNodeCont::buildOffRamp(), NBNodeCont::buildOnRamp(), ODDistrictHandler::closeDistrict(), NBTrafficLightDefinition::collectEdges(), NBOwnTLDef::collectLinks(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NBEdge::connections_sorter(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSE3Collector::enter(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), MSNet::getBusStopID(), NIImporter_VISUM::getNamedEdgeContinuating(), NLTriggerBuilder::getPosition(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), NBEdgeCont::ignoreFilterMatch(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), NIImporter_OpenDrive::loadNetwork(), MSLane::moveCritical(), MSVehicle::MSVehicle(), RORDLoader_SUMOBase::myCharacters(), NBOwnTLDef::myCompute(), NBLoadedTLDef::myCompute(), NIXMLTrafficLightsHandler::myEndElement(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_Tripinfo::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), NBLoadedTLDef::SignalGroup::patchTYellow(), RORouteDef_Complete::preComputeCurrentRoute(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Vehicle::processGet(), NWWriter_SUMO::prohibitionConnection(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), MSLane::setCritical(), NIXMLEdgesHandler::setNodes(), NBOwnTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), RORDLoader_SUMOBase::startRoute(), NBEdge::startShapeAt(), NIXMLConnectionsHandler::validateLaneInfo(), MSInstantInductLoop::write(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeJunction(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), MSInductLoop::writeTypedXMLOutput(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().

SUMOReal Distribution_Points::getMax ( ) const
virtual

Returns the maximum value of this distribution.

Implements Distribution.

Definition at line 57 of file Distribution_Points.cpp.

References myPoints, and PositionVector::size().

void Named::setID ( const std::string &  newID)
inlineinherited

resets the id

Definition at line 67 of file Named.h.

References Named::myID.

Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().


Field Documentation

bool Distribution_Points::myInterpolateDist
protected

Definition at line 74 of file Distribution_Points.h.

Referenced by getAreaPerc().

PositionVector Distribution_Points::myPoints
protected

The list of points that describe the distribution.

Definition at line 68 of file Distribution_Points.h.

Referenced by getAreaBegin(), getAreaEnd(), getAreaNo(), getAreaPerc(), and getMax().

std::vector<SUMOReal> Distribution_Points::myProbabilities
mutableprotected

Definition at line 72 of file Distribution_Points.h.

Referenced by getAreaPerc().

bool Distribution_Points::myProbabilitiesAreComputed
mutableprotected

Definition at line 70 of file Distribution_Points.h.

Referenced by getAreaPerc().


The documentation for this class was generated from the following files: