Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/src/router/ROFrame.h
169666 views
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
3
// Copyright (C) 2001-2025 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials are made available under the
5
// terms of the Eclipse Public License 2.0 which is available at
6
// https://www.eclipse.org/legal/epl-2.0/
7
// This Source Code may also be made available under the following Secondary
8
// Licenses when the conditions for such availability set forth in the Eclipse
9
// Public License 2.0 are satisfied: GNU General Public License, version 2
10
// or later which is available at
11
// https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13
/****************************************************************************/
14
/// @file ROFrame.h
15
/// @author Daniel Krajzewicz
16
/// @author Jakob Erdmann
17
/// @date Sept 2002
18
///
19
// Sets and checks options for routing
20
/****************************************************************************/
21
#pragma once
22
#include <config.h>
23
24
25
// ===========================================================================
26
// class declarations
27
// ===========================================================================
28
class OptionsCont;
29
30
31
// ===========================================================================
32
// class definitions
33
// ===========================================================================
34
/**
35
* @class ROFrame
36
* @brief Sets and checks options for routing
37
*
38
* Normally, these methods are called from another frame (ROJTRFrame, RODUAFrame)...
39
*/
40
class ROFrame {
41
public:
42
/** @brief Inserts options used by routing applications into the OptionsCont-singleton
43
* @param[in] oc The options container to fill
44
*/
45
static void fillOptions(OptionsCont& oc, const bool isDUA = false, const bool isMA = false);
46
47
48
/** @brief Checks whether options are valid
49
*
50
* To be valid,
51
* @arg an output file must be given
52
* @arg max-alternatives must not be lower than 2
53
*
54
* @param[in] oc The options container to fill
55
* @return Whether all needed options are set
56
* @todo probably, more things should be checked...
57
*/
58
static bool checkOptions(OptionsCont& oc);
59
60
};
61
62