Hi Łukasz,
> As I understand now this parameters (banned routes, prefered, unprefered)
> should work for configuration:
> AGENCYID_ROUTESHORTNAME
> AGENCYID__ROUTEID
Yes indeed.
> and also
> AGENCYID_ROUTESHORTNAME_ROUTEID ?
As long as both name and ID matches, that's also possible. This was
not meant to be really supported and I don't think it's really useful
(since the client can provide incompatible short name and ID and have
to know both), but should work. In fact since route ID and short name
are usually unique within an agency that's probably redundant.
> Have you thought about changing this parameter so that it could work without
> specify AGENCYID (so for example _ROUTESHORTNAME banned all routes with this
> short name in given graph across all agencies) ?
To be honest no, but that could be implemented. Implementing that
would be a bit harder though: the way we use RouteSpec shoud be
modified a bit, as currently we rely on the equals/hashCode semantics
in order to use Java Sets. If you remove agency altogether this
semantics is no longer valid and you can't use simple Sets anymore. A
brute-force scan on a big list could have performance impact as you
need to check if a trip is banned for a boarding state change. There
are probably more clever approach (indexing on route name when you do
not provide agency for example), but that would need a bit of
refactoring, such as creating a "RouteSpecCollection" for example.
HTH,
--Laurent