SUMO - Simulation of Urban MObility
MSJunction.cpp
Go to the documentation of this file.
00001 /****************************************************************************/
00009 // The base class for an intersection
00010 /****************************************************************************/
00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00013 /****************************************************************************/
00014 //
00015 //   This file is part of SUMO.
00016 //   SUMO is free software: you can redistribute it and/or modify
00017 //   it under the terms of the GNU General Public License as published by
00018 //   the Free Software Foundation, either version 3 of the License, or
00019 //   (at your option) any later version.
00020 //
00021 /****************************************************************************/
00022 
00023 
00024 // ===========================================================================
00025 // included modules
00026 // ===========================================================================
00027 #ifdef _MSC_VER
00028 #include <windows_config.h>
00029 #else
00030 #include <config.h>
00031 #endif
00032 
00033 #include "MSJunction.h"
00034 
00035 #ifdef CHECK_MEMORY_LEAKS
00036 #include <foreign/nvwa/debug_new.h>
00037 #endif // CHECK_MEMORY_LEAKS
00038 
00039 
00040 // ===========================================================================
00041 // class declarations
00042 // ===========================================================================
00043 class MSLink;
00044 
00045 
00046 // ===========================================================================
00047 // member method definition
00048 // ===========================================================================
00049 MSJunction::MSJunction(const std::string& id, const Position& position,
00050                        const PositionVector& shape)
00051     : myID(id), myPosition(position), myShape(shape) {}
00052 
00053 
00054 MSJunction::~MSJunction() {}
00055 
00056 
00057 const Position&
00058 MSJunction::getPosition() const {
00059     return myPosition;
00060 }
00061 
00062 
00063 void
00064 MSJunction::postloadInit() {}
00065 
00066 
00067 const std::string&
00068 MSJunction::getID() const {
00069     return myID;
00070 }
00071 
00072 
00073 /****************************************************************************/
00074 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines