Eclipse SUMO - Simulation of Urban MObility
NBFrame Class Reference

Sets and checks options for netbuild. More...

#include <NBFrame.h>

Static Public Member Functions

static bool checkOptions (OptionsCont &oc)
 Checks set options from the OptionsCont-singleton for being valid. More...
 
static void fillOptions (OptionsCont &oc, bool forNetgen)
 Inserts options used by the network converter. More...
 

Detailed Description

Sets and checks options for netbuild.

Definition at line 44 of file NBFrame.h.

Member Function Documentation

◆ checkOptions()

bool NBFrame::checkOptions ( OptionsCont oc)
static

Checks set options from the OptionsCont-singleton for being valid.

Returns
Whether needed (netbuild) options are set and have proper values

Definition at line 732 of file NBFrame.cpp.

References OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getString(), OptionsCont::getValueString(), StringBijection< T >::hasString(), OptionsCont::isDefault(), OptionsCont::isSet(), SUMOXMLDefinitions::LaneSpreadFunctions, SUMOXMLDefinitions::RightOfWayValues, OptionsCont::set(), OptionsCont::setDefault(), TL, toString(), SUMOXMLDefinitions::TrafficLightTypes, NBEdge::UNSPECIFIED_VISIBILITY_DISTANCE, WRITE_ERROR, WRITE_ERRORF, and WRITE_WARNING.

Referenced by checkOptions(), GNEApplicationWindow::onCmdOpenOptionsDialog(), and GNELoadThread::run().

Here is the caller graph for this function:

◆ fillOptions()

void NBFrame::fillOptions ( OptionsCont oc,
bool  forNetgen 
)
static

Inserts options used by the network converter.

Parameters
[in]forNetgenWhether netconvert options shall be omitted
Todo:
not working for netgen

Definition at line 48 of file NBFrame.cpp.

References OptionsCont::addDescription(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), TL, NBEdge::UNSPECIFIED_FRICTION, NBEdge::UNSPECIFIED_LOADED_LENGTH, and NBEdge::UNSPECIFIED_WIDTH.

Referenced by fillOptions(), and GNELoadThread::fillOptions().

Here is the caller graph for this function:

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