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 ()
 Checks set options from the OptionsCont-singleton for being valid. More...
 
static void fillOptions (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 ( )
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 696 of file NBFrame.cpp.

References OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getOptions(), 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, and WRITE_WARNING.

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

Here is the caller graph for this function:

◆ fillOptions()

void NBFrame::fillOptions ( 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 47 of file NBFrame.cpp.

References OptionsCont::addDescription(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), OptionsCont::getOptions(), 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: