averbraeck / opentrafficsim

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

Provide GTUs with a flexible String attribute #58

Closed WJSchakel closed 1 year ago

WJSchakel commented 1 year ago

There are several use-cases to identify GTU's in more specific ways than GTU type, but not on individual ID:

The field should be String such that it can contain a rich range of information.

WJSchakel commented 1 year ago

Use Gtu.setTag(name, value) and value = Gtu.getTag(name) to use tags on GTUs.