de.bsvrz.kex.tls.osi2osi3.longtelegram
Class LongTelegramType

java.lang.Object
  extended by de.bsvrz.kex.tls.osi2osi3.longtelegram.LongTelegramType

public class LongTelegramType
extends Object

Diese Klasse stellt Objekte zur Verfügung, die die verschiedenen Zustände eines Langtelegramms darstellen.

Author:
Kappich Systemberatung

Field Summary
private  String _typeName
          Name des Types (ShortBlock, StartBigBlock, ....)
private  int _typeNumber
          Zahl, die den Typ darstellt (ShortBlock = 1, ....)
static LongTelegramType BIG
           
static LongTelegramType BIGGER
           
static LongTelegramType END_BIG_BLOCK
           
static LongTelegramType END_BIGGER_BLOCK
           
static LongTelegramType NEXT_BIG_PIECE
           
static LongTelegramType NEXT_BIGGER_PIECE
           
static LongTelegramType RESERVERD
           
static LongTelegramType SHORT_BLOCK
           
static LongTelegramType START_BIG_BLOCK
           
static LongTelegramType START_BIGGER_BLOCK
           
 
Constructor Summary
private LongTelegramType(String typeName, int typeNumber)
           
 
Method Summary
static LongTelegramType getInstance(int typeNumber)
           
 String getTypeName()
           
 int getTypeNumber()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESERVERD

public static final LongTelegramType RESERVERD

SHORT_BLOCK

public static final LongTelegramType SHORT_BLOCK

START_BIG_BLOCK

public static final LongTelegramType START_BIG_BLOCK

NEXT_BIG_PIECE

public static final LongTelegramType NEXT_BIG_PIECE

END_BIG_BLOCK

public static final LongTelegramType END_BIG_BLOCK

START_BIGGER_BLOCK

public static final LongTelegramType START_BIGGER_BLOCK

NEXT_BIGGER_PIECE

public static final LongTelegramType NEXT_BIGGER_PIECE

END_BIGGER_BLOCK

public static final LongTelegramType END_BIGGER_BLOCK

BIG

public static final LongTelegramType BIG

BIGGER

public static final LongTelegramType BIGGER

_typeName

private final String _typeName
Name des Types (ShortBlock, StartBigBlock, ....)


_typeNumber

private final int _typeNumber
Zahl, die den Typ darstellt (ShortBlock = 1, ....)

Constructor Detail

LongTelegramType

private LongTelegramType(String typeName,
                         int typeNumber)
Method Detail

getInstance

public static LongTelegramType getInstance(int typeNumber)
                                    throws IllegalArgumentException
Throws:
IllegalArgumentException

getTypeNumber

public int getTypeNumber()

getTypeName

public String getTypeName()

toString

public String toString()
Overrides:
toString in class Object