Class TSTemp

java.lang.Object
  extended by TSOpts
      extended by TSTemp
All Implemented Interfaces:
java.io.Serializable

 class TSTemp
extends TSOpts

.

======================================================================
 Class TSTemp -- definitions/methods for temporary objects
 This class contains all definitions which may be used from
  common methods as a temporay value. All such definitions are merged
  into this class. So NOT ALL definitions are used in every case.
 This class is also used to supply a common datastorage used with
  recursions. Therefore it replaces some static values and groups
  them into a single structure.
 The following assignments are valid:
 - Method 'TSUtil.Zusi' uses
   + (TSOpts)            TSTemp
   + (int)               Nr
   + (TSTrNde)   TrNde
 - Class 'TSFrame' uses
   + (TSOpts)            TSTemp
   + (String)            FNme
 - Method 'TSUtil.getTDF()'/'TSUtil.getTD()' uses
   + (TSRoute)           Rte
   + (BufferedInputStream)       bI
   + (int)                       Nr             type of tile (hi/lo)
   + (int)                       z1             counter
   + (int)                       z2             counter
   + (int)                       z3             counter
   + (int)                       z4             counter
   + (int)                       z5             counter

 All 'manipulating methods' are included in the above usage.

 ATTENTION: This class uses definitions from class 'TSOpts' to
                implement an optionmask. Therefore class 'TSTemp'
                extends class 'TSOpts'. Interface 'Serializable' is
                also derivated from this class.
 ##TSTemp (Eyecatcher)
======================================================================
 


Field Summary
private  java.io.BufferedInputStream bI
           
private  java.lang.String FName
           
protected static java.lang.String IdStr
           
private  int Nr
           
private  TSRoute Rte
           
private  TSTrNde TrNde
           
private  int z1
           
private  int z2
           
private  int z3
           
private  int z4
           
private  int z5
           
 
Constructor Summary
protected TSTemp()
          .
protected TSTemp(int msk, java.lang.String nme)
          .
protected TSTemp(TSRoute cR, int t)
          .
protected TSTemp(TSRoute cR, int t, int c)
          .
protected TSTemp(TSTrNde cN, int id)
          .
 
Method Summary
protected  void $init()
          .
protected  java.lang.String chgFNme(java.lang.String nS)
          .
protected  int chgNr(int nr)
          .
protected  TSRoute chgRte(TSRoute cR)
          .
protected  TSTrNde chgTrN(TSTrNde trn)
          .
protected  java.lang.String Close()
          .
protected  int incCnt1(int inc)
          .
protected  int incCnt2(int inc)
          .
protected  int incCnt3(int inc)
          .
protected  int incCnt4(int inc)
          .
protected  int incCnt5(int inc)
          .
protected  java.lang.String Open(java.io.File dat)
          .
protected  java.lang.Integer Read()
          .
protected  java.lang.String Read(byte[] dst, int len)
          .
protected  java.lang.String toStr()
          .
 
Methods inherited from class TSOpts
$init, chkMsk, chkMsk, clrMsk, clrMsk, cntMsk, cntMsk, fndMsk, getMsk, orMsk, orMsk, prtMsk, resMsk, setMsk, setMsk, tstMsk
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IdStr

protected static final java.lang.String IdStr
See Also:
Constant Field Values

Nr

private int Nr

z1

private int z1

z2

private int z2

z3

private int z3

z4

private int z4

z5

private int z5

TrNde

private TSTrNde TrNde

FName

private java.lang.String FName

Rte

private TSRoute Rte

bI

private java.io.BufferedInputStream bI
Constructor Detail

TSTemp

protected TSTemp()
.
 Used options (stored within mask of 'TSOpt'):
  0 to 31 - not used
=====================================================================
 Constructor: (1) create Default-Entry
=====================================================================
  


TSTemp

protected TSTemp(int msk,
                 java.lang.String nme)
.
=====================================================================
 Constructor: (2) create 'TSFrame'-Entry
=====================================================================
  


TSTemp

protected TSTemp(TSRoute cR,
                 int t)
.
=====================================================================
 Constructor: (3) create 'TD'-Entry
=====================================================================
  


TSTemp

protected TSTemp(TSRoute cR,
                 int t,
                 int c)
.
=====================================================================
 Constructor: (3) create 'TD'-Entry
=====================================================================
  


TSTemp

protected TSTemp(TSTrNde cN,
                 int id)
.
=====================================================================
 Constructor: (4) create 'Zusi'-Entry
=====================================================================
  

Method Detail

$init

protected final void $init()
.
=====================================================================
 Method "$init"
 Initialize all values of this structure (again)
 ##$init.TSTemp (Eyecatcher)
=====================================================================
  


chgFNme

protected final java.lang.String chgFNme(java.lang.String nS)
.
=====================================================================
 Method "chgFNme"
 Get/Update File-/Function-name
 ##chgFNme.TSTemp (Eyecatcher)
=====================================================================
  


chgNr

protected final int chgNr(int nr)
.
=====================================================================
 Method "chgNr"
 Get/Update Number-value (e.g. TrNde-Number)
 Attention: positive AND negative numbers are supported
 ##chgNr.TSTemp (Eyecatcher)
=====================================================================
  


chgRte

protected TSRoute chgRte(TSRoute cR)
.
=====================================================================
 Methode "chgRte"
 Get/Update ccurrent route-definition
 ATTENTION: Value is NOT changed if argument is 'null'
 ##chgRte.TSTemp (Eyecatcher)
=====================================================================
  


chgTrN

protected final TSTrNde chgTrN(TSTrNde trn)
.
=====================================================================
 Methode "chgTrN"
 Get/Update TrackNode-Reference
 Attention: Delete of reference is NOT possible
 ##chgTrN.TSTemp (Eyecatcher)
=====================================================================
  


Close

protected final java.lang.String Close()
.
=====================================================================
 Method "Close"
 Open inputstream and check for error
 ##Close.TSTemp (Eyecatcher)
=====================================================================
  


incCnt1

protected final int incCnt1(int inc)
.
=====================================================================
 Method "incCnt1"
 Increment temporary counter
 (using argument'0', reference-counter may be returned only)
 ##incCnt1.TSTemp (Eyecatcher)
=====================================================================
  


incCnt2

protected final int incCnt2(int inc)
.
=====================================================================
 Method "incCnt2"
 Increment temporary counter
 (using argument'0', reference-counter may be returned only)
 ##incCnt2.TSTemp (Eyecatcher)
=====================================================================
  


incCnt3

protected final int incCnt3(int inc)
.
=====================================================================
 Method "incCnt3"
 Increment temporary counter
 (using argument'0', reference-counter may be returned only)
 ##incCnt3.TSTemp (Eyecatcher)
=====================================================================
  


incCnt4

protected final int incCnt4(int inc)
.
=====================================================================
 Method "incCnt4"
 Increment temporary counter
 (using argument'0', reference-counter may be returned only)
 ##incCnt4.TSTemp (Eyecatcher)
=====================================================================
  


incCnt5

protected final int incCnt5(int inc)
.
=====================================================================
 Method "incCnt5"
 Increment temporary counter
 (using argument'0', reference-counter may be returned only)
 ##incCnt5.TSTemp (Eyecatcher)
=====================================================================
  


Open

protected final java.lang.String Open(java.io.File dat)
.
=====================================================================
 Method "Open"
 Open inputstream and check for error
 ##Open.TSTemp (Eyecatcher)
=====================================================================
  


Read

protected final java.lang.String Read(byte[] dst,
                                      int len)
.
=====================================================================
 Method "Read"
 Read input (String) from inputstream
 ##Read.TSTemp (Eyecatcher)
=====================================================================
  


Read

protected final java.lang.Integer Read()
                                throws java.io.IOException
.
=====================================================================
 Method "Read"
 Read input (Integer) from inputstream
 ##Read.TSTemp (Eyecatcher)
=====================================================================
  

Throws:
java.io.IOException

toStr

protected final java.lang.String toStr()
.
=====================================================================
 Method "toStr"
 Build a string-representation of all values of this class
 ##toStr.TSTemp (Eyecatcher)
=====================================================================
  

Overrides:
toStr in class TSOpts