SUMO - Simulation of Urban MObility
RONode.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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // A single router's node
19 /****************************************************************************/
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #ifdef _MSC_VER
26 #include <windows_config.h>
27 #else
28 #include <config.h>
29 #endif
30 
31 #include <string>
32 #include "RONode.h"
33 
34 
35 // ===========================================================================
36 // method definitions
37 // ===========================================================================
38 RONode::RONode(const std::string& id)
39  : Named(id) {}
40 
41 
43 
44 
45 void
47  myPosition = p;
48 }
49 
50 
51 
52 /****************************************************************************/
53 
RONode(const std::string &id)
Constructor.
Definition: RONode.cpp:38
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:45
void setPosition(const Position &p)
Sets the position of the node.
Definition: RONode.cpp:46
Base class for objects which have an id.
Definition: Named.h:45
~RONode()
Destructor.
Definition: RONode.cpp:42
Position myPosition
This node&#39;s position.
Definition: RONode.h:96