Don't restrict number of entites for spawning in TrafficSwarmAction and TrafficAreaAction
Describe the feature
When using the TrafficSwarmAction and TrafficAreaAction there is the use case in OpenPASS to spawn as many entities as possible within the specified area. The restriction to a certain number of entities is then not given by the attribute "numberOfEntities/Vehicles" but by a minimum distance/time gap between the entities to avoid collisions.
Describe the solution you would like
Allow value "infinity" for the attributes "numberOfEntities/Vehicles" in TrafficSwarmAction and TrafficAreaAction. Since with xml the string "inf" is not allowed for "unsignedInt", we can make the attribute "numberOfEntities/Vehicles" optional and if it is omitted, then "+inf" is assumed as default. So we change the cardinalit form 1...1 to 0...1 and extend the annotation by the sentence: "If omitted then infinity is assumed." (see also here for an example where we already applied this concept).
Describe alternatives you have considered
- Setting the attribute "numberOfEntities/Vehicles" to a very large number. But this is only a workaround.
- Alternatively to the "numberOfEntities/Vehicles" attribute allow specification of a "timeGap" attribute. This could be implemented as XOR to avoid invalid scenarios.
Describe the backwards compatibility
Backward compatible, since the value range is not restricted but extended to one more value. The other solution to add an alternative attribute "timeGap" would also be backward compatible.