fixed line colors

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@821 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-10-11 09:53:01 +00:00
parent 7b4fb6d7e2
commit f4b92d18df

View file

@ -59,6 +59,35 @@ public class OebbProvider 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 'R';
if (value == 32)
return 'S';
if (value == 64)
return 'B';
if (value == 128)
return 'F';
if (value == 256)
return 'U';
if (value == 512)
return 'T';
if (value == 2048)
return 'P';
throw new IllegalArgumentException("cannot handle: " + value);
}
@Override
protected void setProductBits(final StringBuilder productBits, final char product)
{