tuwien.auto.eibxlator

Class EICLMap


public class EICLMap
extends java.lang.Object

EICLMAP is a utility class for the eibxlator package. It is used as container for the according major minor types in the respective pduxlator classes.
See Also:
PDUXlatorList, PointPDUXlator_2ByteFloat, PointPDUXlator_3BitControlled, PointPDUXlator_8BitUnsigned, PointPDUXlator_Boolean, PointPDUXlator

Constructor Summary

EICLMap()
Initializes a empty EICLMAP object.

Method Summary

String[]
get(String key)
Returns the whole type array.
String[]
getAllTypeDescription()
Returns an array containing the description of all types known to this map object.
String
getTypeDescription(String _TypeKey)
Get the description of the specified type.
String
getTypeKey(String _TypeDescription)
Returns the according key to the passed type description.
String[]
getTypeValues(String _TypeKey)
Returns the according values to the given type key.
void
put(String _Key, String[] _Type)
Adds a new type to the map.

Constructor Details

EICLMap

public EICLMap()
Initializes a empty EICLMAP object.

Method Details

get

public String[] get(String key)
Returns the whole type array.
Parameters:
key - The type key.
Returns:
Returns an array describing this type.

getAllTypeDescription

public String[] getAllTypeDescription()
Returns an array containing the description of all types known to this map object.
Returns:
The array with all type descriptions.

getTypeDescription

public final String getTypeDescription(String _TypeKey)
            throws EICLException
Get the description of the specified type.
Parameters:
_TypeKey - The type key.
Returns:
The type description of the specified type.
Throws:
EICLException - If type with the specified key can be found.

getTypeKey

public final String getTypeKey(String _TypeDescription)
            throws EICLException
Returns the according key to the passed type description.
Parameters:
_TypeDescription - The search type description
Returns:
The according type key.
Throws:
EICLException - If no type is associated with this description

getTypeValues

public String[] getTypeValues(String _TypeKey)
            throws EICLException
Returns the according values to the given type key.
Parameters:
_TypeKey - The type key
Returns:
The type values.
Throws:
EICLException - if the key doesn't exist

put

public void put(String _Key,
                String[] _Type)
Adds a new type to the map.
Parameters:
_Key - The type key
_Type - An array describing the type.