Eclipse SUMO - Simulation of Urban MObility
RODUAEdgeBuilder.cpp
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2004-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
/****************************************************************************/
18
// Interface for building instances of duarouter-edges
19
/****************************************************************************/
20
21
22
// ===========================================================================
23
// included modules
24
// ===========================================================================
25
#include <
config.h
>
26
27
#include "
RODUAEdgeBuilder.h
"
28
#include <
router/ROEdge.h
>
29
30
31
// ===========================================================================
32
// method definitions
33
// ===========================================================================
34
RODUAEdgeBuilder::RODUAEdgeBuilder
() {
35
}
36
37
38
RODUAEdgeBuilder::~RODUAEdgeBuilder
() {}
39
40
41
ROEdge
*
42
RODUAEdgeBuilder::buildEdge
(
const
std::string& name,
RONode
* from,
RONode
* to,
const
int
priority) {
43
return
new
ROEdge
(name, from, to,
getNextIndex
(), priority);
44
}
45
46
47
/****************************************************************************/
48
RODUAEdgeBuilder::~RODUAEdgeBuilder
~RODUAEdgeBuilder()
Destructor.
Definition:
RODUAEdgeBuilder.cpp:38
ROEdge.h
config.h
RODUAEdgeBuilder::buildEdge
ROEdge * buildEdge(const std::string &name, RONode *from, RONode *to, const int priority)
Builds an edge with the given name.
Definition:
RODUAEdgeBuilder.cpp:42
ROAbstractEdgeBuilder::getNextIndex
int getNextIndex()
Returns the index of the edge to built.
Definition:
ROAbstractEdgeBuilder.h:83
ROEdge
A basic edge for routing applications.
Definition:
ROEdge.h:73
RODUAEdgeBuilder.h
RONode
Base class for nodes used by the router.
Definition:
RONode.h:46
RODUAEdgeBuilder::RODUAEdgeBuilder
RODUAEdgeBuilder()
Constructor.
Definition:
RODUAEdgeBuilder.cpp:34
src
duarouter
RODUAEdgeBuilder.cpp
Generated on Wed Oct 2 2019 20:56:52 for Eclipse SUMO - Simulation of Urban MObility by
1.8.13