Fix products for Kiel, Lübeck & Schleswig-Holstein.

This commit is contained in:
Andreas Schildbach 2014-06-20 13:51:39 +02:00
parent c26134b201
commit e3108b8ea7

View file

@ -68,6 +68,33 @@ public class ShProvider extends AbstractHafasProvider
return false;
}
@Override
protected char intToProduct(final int value)
{
if (value == 1)
return 'I';
if (value == 2)
return 'I';
if (value == 4)
return 'I';
if (value == 8)
return 'R';
if (value == 16)
return 'S';
if (value == 32)
return 'B';
if (value == 64)
return 'F';
if (value == 128)
return 'U';
if (value == 256)
return 'T';
if (value == 512)
return 'P';
throw new IllegalArgumentException("cannot handle: " + value);
}
@Override
protected void setProductBits(final StringBuilder productBits, final Product product)
{