SUMO - Simulation of Urban MObility
ROJTREdgeBuilder.cpp
Go to the documentation of this file.
1
/****************************************************************************/
9
// The builder for jtrrouter-edges
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12
// Copyright (C) 2004-2017 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#ifdef _MSC_VER
28
#include <
windows_config.h
>
29
#else
30
#include <
config.h
>
31
#endif
32
33
#include "
ROJTREdgeBuilder.h
"
34
#include "
ROJTREdge.h
"
35
36
37
// ===========================================================================
38
// method definitions
39
// ===========================================================================
40
ROJTREdgeBuilder::ROJTREdgeBuilder
() {}
41
42
43
ROJTREdgeBuilder::~ROJTREdgeBuilder
() {}
44
45
46
ROEdge
*
47
ROJTREdgeBuilder::buildEdge
(
const
std::string& name,
RONode
* from,
RONode
* to,
const
int
priority) {
48
return
new
ROJTREdge
(name, from, to,
getNextIndex
(), priority);
49
}
50
51
52
/****************************************************************************/
53
windows_config.h
ROJTREdge.h
config.h
ROAbstractEdgeBuilder::getNextIndex
int getNextIndex()
Returns the index of the edge to built.
Definition:
ROAbstractEdgeBuilder.h:90
ROJTREdgeBuilder.h
ROJTREdge
An edge the jtr-router may route through.
Definition:
ROJTREdge.h:58
ROJTREdgeBuilder::ROJTREdgeBuilder
ROJTREdgeBuilder()
Constructor.
Definition:
ROJTREdgeBuilder.cpp:40
ROEdge
A basic edge for routing applications.
Definition:
ROEdge.h:77
ROJTREdgeBuilder::buildEdge
ROEdge * buildEdge(const std::string &name, RONode *from, RONode *to, const int priority)
Builds an edge with the given name.
Definition:
ROJTREdgeBuilder.cpp:47
ROJTREdgeBuilder::~ROJTREdgeBuilder
~ROJTREdgeBuilder()
Destructor.
Definition:
ROJTREdgeBuilder.cpp:43
RONode
Base class for nodes used by the router.
Definition:
RONode.h:53
src
jtrrouter
ROJTREdgeBuilder.cpp
Generated on Sun Jul 23 2017 14:19:12 for SUMO - Simulation of Urban MObility by
1.8.13