averbraeck / opentrafficsim

Open Source Multi-Level Traffic Simulator
BSD 3-Clause "New" or "Revised" License
28 stars 8 forks source link

Query.getTrajectoryGroups() result always empty #74

Closed WJSchakel closed 1 year ago

WJSchakel commented 1 year ago

This 3-step method makes copies of trajectoryAcceptLists items in step 2, to store whether trajectories are accepted in it. But this result is never fed back to anything used in step 3.

WJSchakel commented 1 year ago

A copy was made of the original list to accept trajectories. Additional copies were made to filter for each filter data type. Using an and-operation, acceptance of all filter data types was accumulated in the original copy.

The fix was not copying the original, but taking it directly from a map per GTU type, that the 3rd step also uses.