The id of a SinkDetector is defined as "SINK@" + lane.getFullId() + "." + position.
This creates a full id as: Link 1.Lane 1.SINK@Link 1.Lane 1.50.0000000 m. This can be shorter by omitting the lane.getFullId().
Note that depending on the Locale this may also be Link 1.Lane 1.SINK@Link 1.Lane 1.50,0000000 m. We need consistency in the id, so it should not depend on the Locale.
@averbraeck should we solve the Locale consistency in DJUNITS, or only at the OTS side? I can image in DJUNITS we make a toString(Locale) method.
The id of a
SinkDetector
is defined as"SINK@" + lane.getFullId() + "." + position
. This creates a full id as:Link 1.Lane 1.SINK@Link 1.Lane 1.50.0000000 m
. This can be shorter by omitting thelane.getFullId()
.Note that depending on the
Locale
this may also beLink 1.Lane 1.SINK@Link 1.Lane 1.50,0000000 m
. We need consistency in the id, so it should not depend on theLocale
.@averbraeck should we solve the
Locale
consistency in DJUNITS, or only at the OTS side? I can image in DJUNITS we make atoString(Locale)
method.