Eclipse SUMO - Simulation of Urban MObility
ROFrame Class Reference

Sets and checks options for routing. More...

#include <ROFrame.h>

Static Public Member Functions

static bool checkOptions (OptionsCont &oc)
 Checks whether options are valid. More...
 
static void fillOptions (OptionsCont &oc, const bool isDUA=false, const bool isMA=false)
 Inserts options used by routing applications into the OptionsCont-singleton. More...
 

Detailed Description

Sets and checks options for routing.

Normally, these methods are called from another frame (ROJTRFrame, RODUAFrame)...

Definition at line 40 of file ROFrame.h.

Member Function Documentation

◆ checkOptions()

bool ROFrame::checkOptions ( OptionsCont oc)
static

Checks whether options are valid.

To be valid,

  • an output file must be given
  • max-alternatives must not be lower than 2
Parameters
[in]ocThe options container to fill
Returns
Whether all needed options are set
Todo:
probably, more things should be checked...

Definition at line 233 of file ROFrame.cpp.

References OptionsCont::getInt(), OptionsCont::isSet(), TL, and WRITE_ERROR.

Referenced by RODUAFrame::checkOptions(), and ROJTRFrame::checkOptions().

Here is the caller graph for this function:

◆ fillOptions()

void ROFrame::fillOptions ( OptionsCont oc,
const bool  isDUA = false,
const bool  isMA = false 
)
static

Inserts options used by routing applications into the OptionsCont-singleton.

Parameters
[in]ocThe options container to fill

Definition at line 42 of file ROFrame.cpp.

References OptionsCont::addDescription(), SystemFrame::addReportOptions(), OptionsCont::addSynonyme(), OptionsCont::doRegister(), INVALID_DOUBLE, and TL.

Referenced by RODUAFrame::fillOptions(), ROJTRFrame::fillOptions(), and ROMAFrame::fillOptions().

Here is the caller graph for this function:

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