Eclipse SUMO - Simulation of Urban MObility
ROMAEdgeBuilder.cpp
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
17
// Interface for building instances of duarouter-edges
18
/****************************************************************************/
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include "
ROMAEdgeBuilder.h
"
27
#include "
ROMAEdge.h
"
28
29
30
// ===========================================================================
31
// method definitions
32
// ===========================================================================
33
ROMAEdgeBuilder::ROMAEdgeBuilder
() {
34
}
35
36
37
ROMAEdgeBuilder::~ROMAEdgeBuilder
() {}
38
39
40
ROEdge
*
41
ROMAEdgeBuilder::buildEdge
(
const
std::string& name,
RONode
* from,
RONode
* to,
const
int
priority) {
42
return
new
ROMAEdge
(name, from, to,
getNextIndex
(), priority);
43
}
44
45
46
/****************************************************************************/
47
ROMAEdge.h
config.h
ROMAEdgeBuilder::~ROMAEdgeBuilder
~ROMAEdgeBuilder()
Destructor.
Definition:
ROMAEdgeBuilder.cpp:37
ROMAEdgeBuilder.h
ROMAEdgeBuilder::buildEdge
ROEdge * buildEdge(const std::string &name, RONode *from, RONode *to, const int priority)
Builds an edge with the given name.
Definition:
ROMAEdgeBuilder.cpp:41
ROAbstractEdgeBuilder::getNextIndex
int getNextIndex()
Returns the index of the edge to built.
Definition:
ROAbstractEdgeBuilder.h:83
ROMAEdgeBuilder::ROMAEdgeBuilder
ROMAEdgeBuilder()
Constructor.
Definition:
ROMAEdgeBuilder.cpp:33
ROEdge
A basic edge for routing applications.
Definition:
ROEdge.h:73
RONode
Base class for nodes used by the router.
Definition:
RONode.h:46
ROMAEdge
A basic edge for routing applications.
Definition:
ROMAEdge.h:58
src
marouter
ROMAEdgeBuilder.cpp
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.13