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