 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
18 #ifndef NIVissimEdge_h
19 #define NIVissimEdge_h
58 const std::string& type,
59 std::vector<double> laneWidths,
61 double zuschlag2,
double length,
97 void setSpeed(
int lane,
int speedDist);
120 static bool dictionary(
int id,
const std::string& name,
121 const std::string& type,
int noLanes,
double zuschlag1,
122 double zuschlag2,
double length,
179 std::pair<NIVissimConnectionCluster*, NBNode*>
183 std::pair<NIVissimConnectionCluster*, NBNode*>
206 const std::string& possibleName);
208 std::pair<NBNode*, NBNode*>
std::vector< double > myLaneWidths
Position getBegin2D() const
static void buildConnectionClusters()
Clusters connections of each edge.
std::vector< NIVissimClosedLaneDef * > NIVissimClosedLanesVector
NIVissimClosedLanesVector myClosedLanes
List of lanes closed on this edge.
Storage for edges, including some functionality operating on multiple edges.
A temporary storage for edges imported from Vissim.
void propagateSpeed(double speed, std::vector< int > forLanes)
NIVissimEdge(int id, const std::string &name, const std::string &type, std::vector< double > laneWidths, double zuschlag1, double zuschlag2, double length, const PositionVector &geom, const NIVissimClosedLanesVector &clv)
Constructor.
void addIncomingConnection(int id)
Adds a connection where this edge is the destination.
bool wasWithinAJunction() const
Returns whether this edge was found to be within a junction.
static DictType myDict
The dictionary.
double getRealSpeed(int distNo)
std::string myType
The type of the edge.
void setSpeed(int lane, int speedDist)
bool myAmWithinJunction
Information whether this edge was not build due to being within a junction.
std::pair< NIVissimConnectionCluster *, NBNode * > getFromNode(NBNodeCont &nc, ConnectionClusters &clusters)
Returns the origin node.
int myEdgeID
The id of the edge.
void addOutgoingConnection(int id)
Adds a connection where this edge is the source.
void buildNBEdge(NBDistrictCont &dc, NBNodeCont &nc, NBEdgeCont &ec, double sameNodesOffset)
Builds the NBEdge from this VissimEdge.
void mergedInto(NIVissimConnectionCluster *old, NIVissimConnectionCluster *act)
std::vector< int > myOutgoingConnections
List of connections outgoing from this edge.
void checkDistrictConnectionExistanceAt(double pos)
A container for districts.
int operator()(NIVissimConnectionCluster *cc1, NIVissimConnectionCluster *cc2) const
comparing operation
void checkUnconnectedLaneSpeeds()
Container for nodes during the netbuilding process.
std::vector< double > myDistrictConnections
NBNode * getNodeAt(const Position &p, NBNode *other=0)
Returns the node at the given position As this may be ambigous, a second node not to return may be su...
static bool dictionary(int id, const std::string &name, const std::string &type, int noLanes, double zuschlag1, double zuschlag2, double length, const PositionVector &geom, const NIVissimClosedLanesVector &clv)
Adds the described item to the dictionary Builds the edge first.
bool addToTreatAsSame(NIVissimEdge *e)
std::string myName
The name of the edge.
connection_position_sorter(int edgeid)
constructor
std::vector< NIVissimEdge * > myToTreatAsSame
std::vector< NIVissimConnectionCluster * > ConnectionClusters
The definition for a container for connection clusters.
static void reportUnsetSpeeds()
Writes edges with unset speeds to the warnings message log instance.
void setNodeCluster(int nodeid)
A point in 2D or 3D with translation and scaling methods.
std::pair< NBNode *, NBNode * > resolveSameNode(NBNodeCont &nc, double offset, NBNode *prevFrom, NBNode *prevTo)
Tries to resolve the problem that the same node has been returned as origin and destination node.
static std::vector< std::string > myLanesWithMissingSpeeds
NIVissimEdge * getBestIncoming() const
static void dict_buildNBEdges(NBDistrictCont &dc, NBNodeCont &nc, NBEdgeCont &ec, double offset)
Builds NBEdges from the VissimEdges within the dictionary.
void removeFromConnectionCluster(NIVissimConnectionCluster *c)
const std::vector< NIVissimEdge * > & getToTreatAsSame() const
NIVissimEdge * getBestOutgoing() const
int operator()(int c1id, int c2id) const
comparing operation
double myZuschlag1
Additional load values for this edge.
std::vector< NIVissimConnection * > getOutgoingConnected(int lane) const
connection_cluster_position_sorter(int edgeid)
constructor
static NBNode * getNodeSecure(int nodeid, const Position &pos, const std::string &possibleName)
static void dict_propagateSpeeds()
int myNoLanes
The number of lanes the edge has.
static void dict_checkEdges2Join()
std::map< int, NIVissimEdge * > DictType
Definition of the dictionary type.
static int myMaxID
The current maximum id; needed for further id assignment.
double getLength() const
Returns the length of the node.
std::vector< int > myPatchedSpeeds
std::pair< NBNode *, NBNode * > remapOneOfNodes(NBNodeCont &nc, NIVissimDistrictConnection *d, NBNode *fromNode, NBNode *toNode)
ConnectionClusters myConnectionClusters
List of connection clusters along this edge.
~NIVissimEdge()
Destructor.
Represents a single node (junction) during network building.
std::vector< int > myIncomingConnections
List of connections incoming to this edge.
void addToConnectionCluster(NIVissimConnectionCluster *c)
std::pair< NIVissimConnectionCluster *, NBNode * > getToNode(NBNodeCont &nc, ConnectionClusters &clusters)
Returns the destination node.
int myEdgeID
The id of the edge.
std::vector< double > myLaneSpeeds
Position getEnd2D() const
Returns the end position of the edge.
NIVissimConnection * getConnectionTo(NIVissimEdge *e)