averbraeck / opentrafficsim

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

Sampler cannot deal with Direction #104

Closed WJSchakel closed 5 months ago

WJSchakel commented 5 months ago

SamplerData.getUnit() aims to retrieve an "SI" field, which is not available for Direction.

WJSchakel commented 5 months ago

It appears not all unit classes have an SI field. In that case, the field DEFAULT is used instead.