55 const std::string& type,
56 std::vector<double> laneWidths,
58 double zuschlag2,
double length,
90 void setSpeed(
int lane,
int speedDist);
113 static bool dictionary(
int id,
const std::string& name,
114 const std::string& type,
int noLanes,
double zuschlag1,
115 double zuschlag2,
double length,
172 std::pair<NIVissimConnectionCluster*, NBNode*>
176 std::pair<NIVissimConnectionCluster*, NBNode*>
199 const std::string& possibleName);
201 std::pair<NBNode*, NBNode*>
std::vector< NIVissimClosedLaneDef * > NIVissimClosedLanesVector
A container for districts.
Storage for edges, including some functionality operating on multiple edges.
Container for nodes during the netbuilding process.
Represents a single node (junction) during network building.
int operator()(NIVissimConnectionCluster *cc1, NIVissimConnectionCluster *cc2) const
comparing operation
int myEdgeID
The id of the edge.
int operator()(int c1id, int c2id) const
comparing operation
int myEdgeID
The id of the edge.
A temporary storage for edges imported from Vissim.
void checkDistrictConnectionExistanceAt(double pos)
static NBNode * getNodeSecure(int nodeid, const Position &pos, const std::string &possibleName)
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.
void mergedInto(NIVissimConnectionCluster *old, NIVissimConnectionCluster *act)
void propagateSpeed(double speed, std::vector< int > forLanes)
const std::vector< NIVissimEdge * > & getToTreatAsSame() const
static int myMaxID
The current maximum id; needed for further id assignment.
NIVissimClosedLanesVector myClosedLanes
List of lanes closed on this edge.
static std::vector< std::string > myLanesWithMissingSpeeds
std::string myName
The name of the edge.
NIVissimEdge * getBestOutgoing() const
void addIncomingConnection(int id)
Adds a connection where this edge is the destination.
bool myAmWithinJunction
Information whether this edge was not build due to being within a junction.
static DictType myDict
The dictionary.
static void reportUnsetSpeeds()
Writes edges with unset speeds to the warnings message log instance.
std::map< int, NIVissimEdge * > DictType
Definition of the dictionary type.
double getRealSpeed(int distNo)
std::vector< double > myDistrictConnections
NIVissimEdge * getBestIncoming() const
~NIVissimEdge()
Destructor.
void addOutgoingConnection(int id)
Adds a connection where this edge is the source.
std::vector< double > myLaneSpeeds
std::vector< NIVissimConnectionCluster * > ConnectionClusters
The definition for a container for connection clusters.
double getLength() const
Returns the length of the node.
void addToConnectionCluster(NIVissimConnectionCluster *c)
void setSpeed(int lane, int speedDist)
bool wasWithinAJunction() const
Returns whether this edge was found to be within a junction.
std::pair< NIVissimConnectionCluster *, NBNode * > getFromNode(NBNodeCont &nc, ConnectionClusters &clusters)
Returns the origin node.
std::vector< NIVissimEdge * > myToTreatAsSame
void removeFromConnectionCluster(NIVissimConnectionCluster *c)
static void dict_checkEdges2Join()
static void buildConnectionClusters()
Clusters connections of each edge.
Position getBegin2D() const
std::vector< NIVissimConnection * > getOutgoingConnected(int lane) const
static void dict_buildNBEdges(NBDistrictCont &dc, NBNodeCont &nc, NBEdgeCont &ec, double offset)
Builds NBEdges from the VissimEdges within the dictionary.
void checkUnconnectedLaneSpeeds()
double myZuschlag1
Additional load values for this edge.
static void dict_propagateSpeeds()
std::pair< NIVissimConnectionCluster *, NBNode * > getToNode(NBNodeCont &nc, ConnectionClusters &clusters)
Returns the destination node.
std::vector< double > myLaneWidths
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.
std::string myType
The type of the edge.
void buildNBEdge(NBDistrictCont &dc, NBNodeCont &nc, NBEdgeCont &ec, double sameNodesOffset)
Builds the NBEdge from this VissimEdge.
std::vector< int > myOutgoingConnections
List of connections outgoing from this edge.
Position getEnd2D() const
Returns the end position of the edge.
bool addToTreatAsSame(NIVissimEdge *e)
int myNoLanes
The number of lanes the edge has.
void setNodeCluster(int nodeid)
NIVissimConnection * getConnectionTo(NIVissimEdge *e)
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.
std::vector< int > myIncomingConnections
List of connections incoming to this edge.
A point in 2D or 3D with translation and scaling methods.