Class TSSigDrSt

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

 class TSSigDrSt
extends java.lang.Object
implements java.io.Serializable

.

======================================================================
 Class TSSigDrSt -- Definition of a SignalDrawState-entry.
  This entry is references from 'SignalType'-definition(s).
 ##TSSigDrSt (Eyecatcher)
======================================================================
 


Field Summary
private  int Cnt
           
protected static java.lang.String IdStr
           
private  boolean[] LOpt
           
private  java.lang.String Name
           
private  int Nr
           
private  TSSigSgL[] SLi
           
private  double SPos
           
 
Constructor Summary
protected TSSigDrSt()
          .
protected TSSigDrSt(int nr, java.lang.String nme)
          .
 
Method Summary
protected  TSSigSgL chgLight(int ix, TSSigSgL nR)
          .
protected  java.lang.String chgNme(java.lang.String nN)
          .
protected  double chgSPos(double w)
          .
protected  boolean chkNme(java.lang.String nme)
          .
protected  int incCnt(int inc)
          .
protected  boolean isLOpt(int nr)
          .
protected  boolean isSDef()
          .
protected  int set$SgLi(int c)
          .
protected  boolean setLOpt(int nr)
          .
protected  java.lang.String toStr()
          .
 
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

Cnt

private int Cnt

Name

private java.lang.String Name

SPos

private double SPos

LOpt

private boolean[] LOpt

SLi

private TSSigSgL[] SLi
Constructor Detail

TSSigDrSt

protected TSSigDrSt()
.
=====================================================================
 Constructor: (1) Create default-entry
=====================================================================
  


TSSigDrSt

protected TSSigDrSt(int nr,
                    java.lang.String nme)
.
=====================================================================
 Constructor: (2) Create standard-entry
=====================================================================
  

Method Detail

chgLight

protected TSSigSgL chgLight(int ix,
                            TSSigSgL nR)
.
=====================================================================
 Method "chgLight"
 Modify SignalLight-Reference and return ols one.
 ATTENTION: Reference is only changed if new value is provided.
 ##chgLight.TSSigDrSt (Eyecatcher)
=====================================================================
  


chgNme

protected java.lang.String chgNme(java.lang.String nN)
.
=====================================================================
 Method "chgNme"
 Modify name of 'Drawstate'-definition. Return current/old name.
 ##chgNme.TSSigDrSt (Eyecatcher)
=====================================================================
  


chgSPos

protected double chgSPos(double w)
.
=====================================================================
 Method "chgSPos"
 Definition der SemaphorePos modifizieren und liefern
 ##chgSPos.TSSigDrSt (Eyecatcher)
=====================================================================
  


chkNme

protected boolean chkNme(java.lang.String nme)
.
=====================================================================
 Method "chkNme"
 Check if name of item matches.
 ##chkNme.TSSigDrSt (Eyecatcher)
=====================================================================
  


incCnt

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


isLOpt

protected boolean isLOpt(int nr)
.
=====================================================================
 Method "isLOpt"
 Check option due to number signallight
 ##isLOpt.TSSigDrSt (Eyecatcher)
=====================================================================
  


isSDef

protected boolean isSDef()
.
=====================================================================
 Methode "isSDef"
 Definitionstyp (einfach) pruefen und liefern
    Einfache Objektdefinition: SLi.lng==0 und SPos==NaN
 ##isSDef.TSSigDrSt (Eyecatcher)
=====================================================================
  


set$SgLi

protected int set$SgLi(int c)
.
=====================================================================
 Method "set$SgLi"
 Create SignalLight-Reference-table and return length of it.
 Create signallight-option-table with same length.
 ATTENTION: Tables are only created if the length-value 'c' is
            positive. Otherwise both tables must already exist and
            only the current length is returned.
 ##set$SgLi.TSSigDrSt (Eyecatcher)
=====================================================================
  


setLOpt

protected boolean setLOpt(int nr)
.
=====================================================================
 Method "setLOpt"
 Set signallight-option (flashing) due to signallightnumber.
 Method returns 'true' if error is encountered.
 ##setLOpt.TSSigDrSt (Eyecatcher)
=====================================================================
  


toStr

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