Distribution_MeanDev Class Reference

#include <Distribution_MeanDev.h>

Inheritance diagram for Distribution_MeanDev:

Distribution Named

Detailed Description

A description of distribution by the distribution's mean value and a standard deviation. Incomplete and unused yet. This class should be overridden by derived classes

Definition at line 44 of file Distribution_MeanDev.h.


Public Member Functions

 Distribution_MeanDev (const std::string &id, SUMOReal mean, SUMOReal deviation) throw ()
 Constructor.
const std::string & getID () const throw ()
 Returns the id.
SUMOReal getMax () const
 Returns the maximum value of this distribution.
virtual ~Distribution_MeanDev () throw ()
 Destructor.

Protected Attributes

std::string myID
 The name of the object.

Private Attributes

SUMOReal myDeviation
 The distribution's standard deviation.
SUMOReal myMeanValue
 The distribution's mean.

Constructor & Destructor Documentation

Distribution_MeanDev::Distribution_MeanDev ( const std::string &  id,
SUMOReal  mean,
SUMOReal  deviation 
) throw ()

Constructor.

Definition at line 41 of file Distribution_MeanDev.cpp.

00043         : Distribution(id), myMeanValue(mean), myDeviation(deviation) {}

Distribution_MeanDev::~Distribution_MeanDev (  )  throw () [virtual]

Destructor.

Definition at line 46 of file Distribution_MeanDev.cpp.

00046 {}


Member Function Documentation

const std::string& Named::getID (  )  const throw () [inline, inherited]

Returns the id.

Returns:
The stored id

Definition at line 59 of file Named.h.

References Named::myID.

Referenced by RORouteDef_Alternatives::addAlternative(), MSRouteProbe::addRoute(), MSEmitter::MSEmitter_FileTriggeredChild::buildAndScheduleFlowVehicle(), MSCalibrator::MSCalibrator_FileTriggeredChild::buildAndScheduleFlowVehicle(), RORouteDef_Complete::buildCurrentRoute(), ODDistrictHandler::closeDistrict(), NBTrafficLightDefinition::collectLinks(), NBTrafficLightDefinition::compute(), GUIPointOfInterest::drawGL(), MSInductLoop::enterDetectorByMove(), MSVTypeProbe::execute(), MSNet::getBusStopID(), GUITriggeredRerouter::getMicrosimID(), GUIPointOfInterest::getMicrosimID(), GUILaneSpeedTrigger::getMicrosimID(), GUIInductLoop::MyWrapper::getMicrosimID(), GUIEmitter::getMicrosimID(), GUIBusStop::getMicrosimID(), GUI_E2_ZS_Collector::MyWrapper::getMicrosimID(), traci::TraCIServer::handlePoiDomain(), RORDLoader_SUMOBase::myCharacters(), NBOwnTLDef::myCompute(), NBLoadedTLDef::myCompute(), MSTriggeredRerouter::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSEmitter::MSEmitter_FileTriggeredChild::myStartElement(), MSCalibrator::MSCalibrator_FileTriggeredChild::myStartElement(), NBLoadedTLDef::SignalGroup::patchTYellow(), TraCIServerAPI_Vehicle::processGet(), MSVehicle::replaceRoute(), MSVehicle::saveState(), NBOwnTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), RORDLoader_SUMOBase::startRoute(), GUIEmitter::GUIEmitterChild_UserTriggeredChild::wrappedExecute(), NBTrafficLightLogic::writeXML(), MSRouteProbe::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and MSVehicle::~MSVehicle().

00059                                            {
00060         return myID;
00061     }

SUMOReal Distribution_MeanDev::getMax (  )  const [virtual]

Returns the maximum value of this distribution.

Implements Distribution.

Definition at line 50 of file Distribution_MeanDev.cpp.

References myDeviation, and myMeanValue.

00050                                    {
00051     return myMeanValue + myDeviation;
00052 }


Field Documentation

The distribution's standard deviation.

Definition at line 62 of file Distribution_MeanDev.h.

Referenced by getMax().

std::string Named::myID [protected, inherited]

The distribution's mean.

Definition at line 59 of file Distribution_MeanDev.h.

Referenced by getMax().


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

Generated on Wed May 5 00:06:41 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6