de.bsvrz.kex.bwsin.konfig.lcl
Class LCL

java.lang.Object
  extended by de.bsvrz.kex.bwsin.konfig.lcl.LCL
All Implemented Interfaces:
SINLCLInterface

public final class LCL
extends Object
implements SINLCLInterface

Diese Klasse implementiert das Modul LCL. Es werden Zugriffsfunktionen auf die Daten der Location-Code-Liste bereitgestellt.

Version:
$Id: LCL.java 7802 2008-03-28 18:23:55Z gieseler $
Author:
BitCtrl Systems GmbH, Gieseler

Field Summary
private static de.bsvrz.sys.funclib.debug.Debug DEBUG
          DebugLogger für Debug-Ausgaben.
static String FIRST_NAME
          Erster Name.
private static LCL instance
          Instanz.
static String INTERSECTIONCODE
          Intersection-Code.
private  char lclDelimiter
          Der in der LCL-Datei benutzte Element-Trenner.
private  List<?> lclHeader
          Der Header der LCL.
private  Map<Object,String[]> lclMap
          Die LCL als Map.
static String LINEAR_REFERENZ
          Linienreferenz.
static String LOCATION_SUBTYP
          Location-Subtyp.
static String LOCATION_TYP
          Location-Typ.
static String NETZKNOTEN_NR
          Netzknoten-Nr.
static String PRESENT_NEGATIVE
          Zeigt an, ob die Location in negativer Richtung definiert ist.
static String PRESENT_POSITIVE
          Zeigt an, ob die Location in positiver Richtung definiert ist.
static String ROADNAME
          Straßenname.
static String ROADNUMBER
          Straßennummer.
static String SECOND_NAME
          Zweiter Name.
static String SPALTE_NACHFOLGER
          Nachfolger-Location.
static String SPALTE_VORGAENGER
          Vorgänger-Location.
 
Constructor Summary
private LCL()
          Privater Konstruktor.
 
Method Summary
static LCL getInstance()
          Liefert die Instanz der LCL zurück.
 List<String> getLocationCodes(String spaltenname, String spaltenwert)
          Liefert eine Liste von Location-Codes, bei denen der Wert der Spalte spaltenname gleich dem Wert spaltenwert ist.
 String getLocationCodeWert(String locationcode, String spaltenname)
          Liefert den Wert einer Spalte der LCL zu einem Location-Code.
 int getsize()
          Gibt die Anzahl der Location-Codes der LCL zurück.
private  void init(String dateiName)
          Initialisiert die Klasse aus einer LCL-Datei.
static void initialisiere(String dateiName)
          Initialisiert die interne Liste aus einer LCL-Datei.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPALTE_VORGAENGER

public static final String SPALTE_VORGAENGER
Vorgänger-Location.

See Also:
Constant Field Values

SPALTE_NACHFOLGER

public static final String SPALTE_NACHFOLGER
Nachfolger-Location.

See Also:
Constant Field Values

LINEAR_REFERENZ

public static final String LINEAR_REFERENZ
Linienreferenz.

See Also:
Constant Field Values

ROADNUMBER

public static final String ROADNUMBER
Straßennummer.

See Also:
Constant Field Values

FIRST_NAME

public static final String FIRST_NAME
Erster Name.

See Also:
Constant Field Values

SECOND_NAME

public static final String SECOND_NAME
Zweiter Name.

See Also:
Constant Field Values

ROADNAME

public static final String ROADNAME
Straßenname.

See Also:
Constant Field Values

INTERSECTIONCODE

public static final String INTERSECTIONCODE
Intersection-Code.

See Also:
Constant Field Values

NETZKNOTEN_NR

public static final String NETZKNOTEN_NR
Netzknoten-Nr.

See Also:
Constant Field Values

LOCATION_TYP

public static final String LOCATION_TYP
Location-Typ.

See Also:
Constant Field Values

LOCATION_SUBTYP

public static final String LOCATION_SUBTYP
Location-Subtyp.

See Also:
Constant Field Values

PRESENT_POSITIVE

public static final String PRESENT_POSITIVE
Zeigt an, ob die Location in positiver Richtung definiert ist.

See Also:
Constant Field Values

PRESENT_NEGATIVE

public static final String PRESENT_NEGATIVE
Zeigt an, ob die Location in negativer Richtung definiert ist.

See Also:
Constant Field Values

DEBUG

private static final de.bsvrz.sys.funclib.debug.Debug DEBUG
DebugLogger für Debug-Ausgaben.


instance

private static LCL instance
Instanz.


lclMap

private final Map<Object,String[]> lclMap
Die LCL als Map.


lclHeader

private List<?> lclHeader
Der Header der LCL.


lclDelimiter

private final char lclDelimiter
Der in der LCL-Datei benutzte Element-Trenner.

See Also:
Constant Field Values
Constructor Detail

LCL

private LCL()
Privater Konstruktor.

Method Detail

getInstance

public static LCL getInstance()
Liefert die Instanz der LCL zurück.

Returns:
LCL

initialisiere

public static void initialisiere(String dateiName)
                          throws FileNotFoundException
Initialisiert die interne Liste aus einer LCL-Datei.

Parameters:
dateiName - der Name der LCL-Datei (CSV)
Throws:
IllegalArgumentException - bei ungültigem Dateinamen
FileNotFoundException - wenn die Datei nicht geöffnet werden konnte

getLocationCodes

public List<String> getLocationCodes(String spaltenname,
                                     String spaltenwert)
Liefert eine Liste von Location-Codes, bei denen der Wert der Spalte spaltenname gleich dem Wert spaltenwert ist.

Specified by:
getLocationCodes in interface SINLCLInterface
Parameters:
spaltenname - Spaltenname
spaltenwert - Wert der Spalte
Returns:
Liste von Location-Codes
See Also:
SINLCLInterface.getLocationCodes(java.lang.String, java.lang.String)

getLocationCodeWert

public String getLocationCodeWert(String locationcode,
                                  String spaltenname)
Liefert den Wert einer Spalte der LCL zu einem Location-Code.

Specified by:
getLocationCodeWert in interface SINLCLInterface
Parameters:
locationcode - Locationcode
spaltenname - Spaltenname
Returns:
Inhalt der Spalte spaltenname zum Location-Code
See Also:
SINLCLInterface.getLocationCodeWert(java.lang.String, java.lang.String)

getsize

public int getsize()
Gibt die Anzahl der Location-Codes der LCL zurück.

Returns:
Anzahl Location-Codes

init

private void init(String dateiName)
           throws FileNotFoundException
Initialisiert die Klasse aus einer LCL-Datei.

Parameters:
dateiName - Name der LCL-Datei.
Throws:
FileNotFoundException - wenn die Datei nicht geöffnet werden konnte