mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-16 17:39:49 +00:00
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:
parent
7b4fb6d7e2
commit
f4b92d18df
1 changed files with 29 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue