50 const std::vector<int>& connectors,
51 const std::vector<int>& disturbances,
53 : myID(id), myNodeID(nodeid), myTLID(tlid),
54 myConnectors(connectors), myDisturbances(disturbances),
55 myNBNode(nullptr), myAmEdgeSplit(amEdgeSplitOnly) {}
65 DictType::iterator i =
myDict.find(
id);
77 const std::vector<int>& connectors,
78 const std::vector<int>& disturbances,
79 bool amEdgeSplitOnly) {
85 nodeid, tlid, connectors, disturbances, amEdgeSplitOnly);
93 DictType::iterator i =
myDict.find(
id);
104 return (
int)
myDict.size();
112 return toString<int>(
myID);
114 return toString<int>(
myID) +
"LSA " + toString<int>(
myTLID);
127 std::vector<int>::iterator i, j;
149 if (crossings.size() == 0) {
181 for (DictType::iterator i =
myDict.begin(); i !=
myDict.end(); i++) {
182 (*i).second->buildNBNode(nc);
197 for (DictType::iterator i =
myDict.begin(); i !=
myDict.end(); i++) {
201 if (conn !=
nullptr && conn->
getToEdgeID() == edgeid) {
203 if (ret != -1 && (*i).first != ret) {
219 for (DictType::iterator i =
myDict.begin(); i !=
myDict.end(); i++) {
225 if (ret != -1 && ret != (*i).first) {
241 for (DictType::iterator i =
myDict.begin(); i !=
myDict.end(); i++) {
243 into << std::endl << c->
myID <<
":";
251 into <<
"=======================" << std::endl;
271 for (DictType::iterator i =
myDict.begin(); i !=
myDict.end(); i++) {
272 const std::vector<int>& disturbances = (*i).second->myDisturbances;
274 for (std::vector<int>::const_iterator j = disturbances.begin(); j != disturbances.end(); j++) {
276 disturbance->
addToNode(node, dc, nc, ec);
285 for (DictType::iterator i =
myDict.begin(); i !=
myDict.end(); i++) {
A container for districts.
Storage for edges, including some functionality operating on multiple edges.
Container for nodes during the netbuilding process.
bool insert(const std::string &id, const Position &position, NBDistrict *district=0)
Inserts a node into the map.
NBNode * retrieve(const std::string &id) const
Returns the node with the given name.
Represents a single node (junction) during network building.
static bool dictionary(int id, NIVissimAbstractEdge *e)
Position crossesEdgeAtPoint(NIVissimAbstractEdge *c) const
virtual void buildGeom()=0
bool crossesEdge(NIVissimAbstractEdge *c) const
int getFromEdgeID() const
static bool dictionary(int id, NIVissimConnection *o)
Position getToGeomPosition() const
Position getFromGeomPosition() const
static void reportRefused()
static bool dictionary(const std::string &name, const NIVissimExtendedEdgePoint &edge, const NIVissimExtendedEdgePoint &by)
bool addToNode(NBNode *node, NBDistrictCont &dc, NBNodeCont &nc, NBEdgeCont &ec)
static void setCurrentVirtID(int id)
std::map< int, NIVissimNodeCluster * > DictType
static int getToNode(int edgeid)
NIVissimNodeCluster(int id, int nodeid, int tlid, const std::vector< int > &connectors, const std::vector< int > &disturbances, bool amEdgeSplitOnly)
static int getFromNode(int edgeid)
static bool dictionary(int id, NIVissimNodeCluster *o)
void buildNBNode(NBNodeCont &nc)
std::string getNodeName() const
static void dict_addDisturbances(NBDistrictCont &dc, NBNodeCont &nc, NBEdgeCont &ec)
static void dict_recheckEdgeChanges()
NBNode * getNBNode() const
std::vector< int > myConnectors
static void buildNBNodes(NBNodeCont &nc)
static void _debugOut(std::ostream &into)
A point in 2D or 3D with translation and scaling methods.
Position getPolygonCenter() const
Returns the arithmetic of all corner points.
void push_back_noDoublePos(const Position &p)
insert in back a non double position