44 routes <<
"<?xml version=\"1.0\"?>" << std::endl << std::endl;
45 routes <<
"<routes>" << std::endl;
51 routes <<
" <vType id=\"default\" accel=\"4.0\" decel=\"8.0\" sigma=\"0.0\" length=\"5\" minGap=\"2.5\" maxSpeed=\"90\"/>" << std::endl;
52 routes <<
" <vType id=\"random\" accel=\"4.0\" decel=\"8.0\" sigma=\"0.0\" length=\"5\" minGap=\"2.5\" maxSpeed=\"90\"/>" << std::endl;
53 routes <<
" <vType id=\"bus\" accel=\"2.0\" decel=\"4.0\" sigma=\"0.0\" length=\"10\" minGap=\"3\" maxSpeed=\"70\"/>" << std::endl << std::endl;
55 colors[
"default"] =
"1,0,0";
57 colors[
"random"] =
"0,0,1";
62 std::list<AGPosition>::iterator it;
68 <<
"\" type=\"" << trip.
getType()
69 <<
"\" depart=\"" << time
72 <<
"\" departSpeed=\"" << 0
73 <<
"\" arrivalSpeed=\"" << 0
75 <<
"\">" << std::endl;
80 routes <<
" " << it->getStreet().getName();
83 routes <<
"\"/>" << std::endl;
85 routes <<
" </vehicle>" << std::endl;
90 routes <<
"</routes>" << std::endl;
const AGStreet & getStreet() const
Provides the street this AGPosition is located on.
std::list< AGPosition > * getPassed()
std::map< std::string, std::string > colors
SUMOReal getPosition() const
Provides the relative position of this AGPosition on the street.
const std::string & getName() const
Provides the id of this edge.
void addTrip(AGTrip trip)
std::string getVehicleName()