40 const std::vector<int>& districts,
const std::vector<double>& percentages,
41 int edgeid,
double position,
42 const std::vector<std::pair<int, int> >& assignedVehicles);
65 static bool dictionary(
int id,
const std::string& name,
66 const std::vector<int>& districts,
const std::vector<double>& percentages,
67 int edgeid,
double position,
68 const std::vector<std::pair<int, int> >& assignedVehicles);
127 typedef std::map<int, NIVissimDistrictConnection*>
DictType;
A container for districts.
Storage for edges, including some functionality operating on multiple edges.
Container for nodes during the netbuilding process.
double getMeanSpeed() const
static void dict_BuildDistricts(NBDistrictCont &dc, NBEdgeCont &ec, NBNodeCont &nc)
Builds the districts.
DistrictPercentages myPercentages
A map how many vehicles (key, amount) should leave to a district (key)
std::vector< int > myDistricts
The connected districts.
static void dict_BuildDistrictConnections()
~NIVissimDistrictConnection()
static NIVissimDistrictConnection * dict_findForEdge(int edgeid)
Returns the connection to a district placed at the given node Yep, there onyl should be one,...
static std::map< int, std::vector< int > > myDistrictsConnections
Map from ditricts to connections.
Position geomPosition() const
Returns the position The position yields from the edge geometry and the place the connection is plaed...
static void dict_CheckEdgeEnds()
std::vector< std::pair< int, int > > myAssignedVehicles
The vehicles using this connection.
double myPosition
The position on the edge.
std::map< int, double > DistrictPercentages
Definition of a map of how many vehicles should leave to a certain district.
static void dict_BuildDistrictNodes(NBDistrictCont &dc, NBNodeCont &nc)
Builds the nodes that belong to a district.
std::string myName
The name of the connections.
int myID
The id of the connections.
double getRealSpeed(int distNo) const
static void clearDict()
Clears the dictionary.
double getPosition() const
Returns the position of the connection at the edge.
int getID() const
Returns the id of the connection.
static DictType myDict
District connection dictionary.
static bool dictionary(int id, const std::string &name, const std::vector< int > &districts, const std::vector< double > &percentages, int edgeid, double position, const std::vector< std::pair< int, int > > &assignedVehicles)
Inserts the connection into the dictionary after building it.
std::map< int, NIVissimDistrictConnection * > DictType
Definition of a dictionary of district connections.
int myEdgeID
The id of the connected edge.
A point in 2D or 3D with translation and scaling methods.