The following document contains the results of PMD's CPD 6.4.0.
| File | Line |
|---|---|
| org\opentrafficsim\road\network\factory\osm\output\Convert.java | 327 |
| org\opentrafficsim\road\network\factory\osm\output\Convert.java | 429 |
if (osmLink.getLanes() == 1 && !osmLink.isOneway())
{
laneAttributes = new LaneAttributes(laneType, Color.GREEN, LongitudinalDirectionality.DIR_BOTH);
structure.put(0, laneAttributes);
}
else
{
for (int i = 0 - backwards; i < forwards; i++)
{
if (i < 0)
{
laneAttributes =
new LaneAttributes(laneType, Color.GREEN, LongitudinalDirectionality.DIR_MINUS);
structure.put(i, laneAttributes);
}
if (i >= 0)
{
laneAttributes = new LaneAttributes(laneType, Color.GREEN, LongitudinalDirectionality.DIR_PLUS);
structure.put(i, laneAttributes);
}
}
}
} | |