Eclipse 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-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 /****************************************************************************/
15 // A single router's node
16 /****************************************************************************/
17 
18 
19 // ===========================================================================
20 // included modules
21 // ===========================================================================
22 #include <config.h>
23 
24 #include <string>
25 #include "RONode.h"
26 
27 
28 // ===========================================================================
29 // method definitions
30 // ===========================================================================
31 RONode::RONode(const std::string& id)
32  : Named(id) {}
33 
34 
36 
37 
38 void
40  myPosition = p;
41 }
42 
43 
44 
45 /****************************************************************************/
46 
Named
Base class for objects which have an id.
Definition: Named.h:56
RONode.h
RONode::~RONode
~RONode()
Destructor.
Definition: RONode.cpp:35
Position
A point in 2D or 3D with translation and scaling methods.
Definition: Position.h:38
RONode::myPosition
Position myPosition
This node's position.
Definition: RONode.h:89
RONode::setPosition
void setPosition(const Position &p)
Sets the position of the node.
Definition: RONode.cpp:39
config.h
RONode::RONode
RONode(const std::string &id)
Constructor.
Definition: RONode.cpp:31