63 WRITE_ERROR(
"A traffic light group with an unknown traffic light occurred.\n Group-ID: " + toString<int>(
id)
64 +
"\n TrafficLight-ID: " + toString<int>(lsaid));
67 std::string type = tl->
getType();
68 if (type ==
"festzeit") {
71 if (type ==
"festzeit_fake") {
76 return parseVAS(
id, name, lsaid, from);
78 if (type ==
"vsplus") {
81 if (type ==
"trends") {
85 return parseVAP(
id, name, lsaid, from);
88 return parseTL(
id, name, lsaid, from);
91 return parsePOS(
id, name, lsaid, from);
100 int id,
const std::string& name,
int lsaid, std::istream& from) {
103 std::vector<SUMOTime> times;
104 std::string tag =
myRead(from);
105 if (tag ==
"dauergruen") {
108 }
else if (tag ==
"dauerrot") {
109 isGreenBegin =
false;
114 while (tag ==
"rotende" || tag ==
"gruenanfang") {
125 double tredyellow, tyellow;
141 int ,
const std::string& ,
int lsaid, std::istream& from) {
142 WRITE_WARNINGF(
TL(
"VAS traffic lights are not supported (lsa=%)"), toString<int>(lsaid));
144 while (tag !=
"detektoren") {
153 int ,
const std::string&,
int lsaid, std::istream&) {
154 WRITE_WARNINGF(
TL(
"VSPLUS traffic lights are not supported (lsa=%)"), toString<int>(lsaid));
161 int ,
const std::string&,
int lsaid, std::istream&) {
162 WRITE_WARNINGF(
TL(
"TRENDS traffic lights are not supported (lsa=%)"), toString<int>(lsaid));
169 int ,
const std::string&,
int lsaid, std::istream&) {
170 WRITE_WARNINGF(
TL(
"VAS traffic lights are not supported (lsa=%)"), toString<int>(lsaid));
177 int ,
const std::string&,
int lsaid, std::istream&) {
178 WRITE_WARNINGF(
TL(
"TL traffic lights are not supported (lsa=%)"), toString<int>(lsaid));
185 int ,
const std::string&,
int lsaid, std::istream&) {
186 WRITE_WARNINGF(
TL(
"POS traffic lights are not supported (lsa=%)"), toString<int>(lsaid));
193 int ,
const std::string&,
int lsaid, std::istream&) {
194 WRITE_WARNINGF(
TL(
"externally defined traffic lights are not supported (lsa=%)"), toString<int>(lsaid));
#define WRITE_WARNINGF(...)
std::string readName(std::istream &from)
Reads the structures name We cannot use the "<<" operator, as names may contain more than one word wh...
std::string myRead(std::istream &from)
reads from the stream and returns the lower case version of the read value
Importer for networks stored in Vissim format.
bool parse(std::istream &from)
Parses the data type from the given stream.
bool parseVAS(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a VAS traffic light.
bool parseVAP(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a VAStraffic light.
NIVissimSingleTypeParser_Signalgruppendefinition(NIImporter_Vissim &parent)
Constructor.
bool parseTL(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a TL traffic light.
bool parsePOS(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a POS traffic light.
~NIVissimSingleTypeParser_Signalgruppendefinition()
Destructor.
bool parseTRENDS(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a TRENDS traffic light.
bool parseExternFixedTime(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs fixed time traffic light with an extern definition.
bool parseVSPLUS(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a VSPLUS traffic light.
bool parseFixedTime(int id, const std::string &name, int lsaid, std::istream &from)
Parses a traffic light group which belongs to a fixed time traffic light.
static bool dictionary(int lsaid, int id, NIVissimTLSignalGroup *o)
static bool dictionary(int id, const std::string &type, const std::string &name, SUMOTime absdur, SUMOTime offset)
std::string getType() const