SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSJunction.cpp
Go to the documentation of this file.
1 /****************************************************************************/
9 // The base class for an intersection
10 /****************************************************************************/
11 // SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
12 // Copyright (C) 2001-2014 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 "MSJunction.h"
34 
35 #ifdef CHECK_MEMORY_LEAKS
36 #include <foreign/nvwa/debug_new.h>
37 #endif // CHECK_MEMORY_LEAKS
38 
39 
40 // ===========================================================================
41 // class declarations
42 // ===========================================================================
43 class MSLink;
44 
45 // ===========================================================================
46 // static member definitions
47 // ===========================================================================
48 
49 // ===========================================================================
50 // member method definition
51 // ===========================================================================
52 MSJunction::MSJunction(const std::string& id, const Position& position,
53  const PositionVector& shape)
54  : Named(id), myPosition(position), myShape(shape) {}
55 
56 
58 
59 
60 const Position&
62  return myPosition;
63 }
64 
65 
66 void
68 
69 
70 /****************************************************************************/
71 
virtual ~MSJunction()
Destructor.
Definition: MSJunction.cpp:57
Position myPosition
The position of the junction.
Definition: MSJunction.h:115
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:46
A list of positions.
MSJunction(const std::string &id, const Position &position, const PositionVector &shape)
Constructor.
Definition: MSJunction.cpp:52
Base class for objects which have an id.
Definition: Named.h:45
virtual void postloadInit()
Definition: MSJunction.cpp:67
const Position & getPosition() const
Definition: MSJunction.cpp:61