Class TSQuad

java.lang.Object
  extended by TSQDef
      extended by TSQuad
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TSQuad>

 class TSQuad
extends TSQDef
implements java.lang.Comparable<TSQuad>

.

======================================================================
 Klasse TSQuad -- Definition eines Strukturquadrates
 Edge-length of a structe-quad equals 1 in every case.
 This part extends the independand part of a Quad-structure with the
 psition-dependand part (like quad-number X and Z) of a
 structure-definition.
 ##TSQuad (Eyecatcher)
======================================================================
 


Field Summary
protected static java.lang.String IdStr
           
private  int nQx
           
private  int nQz
           
private  TSQuad QDef
           
private  int Qx
           
private  int Qz
           
private  java.lang.String sNme
           
private  TSTile Tle
           
private  java.lang.String wNme
           
 
Constructor Summary
protected TSQuad()
          .
protected TSQuad(int qx, int qz, java.lang.String wn, java.lang.String sn, TSQuad ch)
          .
protected TSQuad(TSQuad cQ, int qx, int qz)
          .
 
Method Summary
protected  TSQuad chgQDf(TSQuad cq)
          .
protected  TSTile chgTle(TSTile ct)
          .
 int compareTo(TSQuad vQ)
          .
protected  TSCoo crCoo(TSPos cP)
          .
protected  int dX(int cX)
          .
protected  int dZ(int cZ)
          .
protected  TSQuad fndQuad(TSRoute cR, int dx, int dz)
          .
protected  java.lang.String getInf(int nr)
          .
protected  java.lang.String getMsg(int nr, java.lang.String s, int x, int z)
          .
protected  boolean isWrld(int qx, int qz)
          .
protected  boolean setNme(boolean wrld)
          .
protected  java.lang.String shft(int dx, int dz)
          .
protected  java.lang.String toStr()
          .
 
Methods inherited from class TSQDef
chg$View, chgMde, chgSTab, chgView, chgWTab, fndView, getOId, getSId, getSnd, getUid, getWId, reSortW
 
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

Qx

private int Qx

Qz

private int Qz

nQx

private int nQx

nQz

private int nQz

wNme

private java.lang.String wNme

sNme

private java.lang.String sNme

QDef

private TSQuad QDef

Tle

private TSTile Tle
Constructor Detail

TSQuad

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


TSQuad

protected TSQuad(int qx,
                 int qz,
                 java.lang.String wn,
                 java.lang.String sn,
                 TSQuad ch)
.
=====================================================================
 Constructor: (2) Create standard-entry
=====================================================================
  


TSQuad

protected TSQuad(TSQuad cQ,
                 int qx,
                 int qz)
.
=====================================================================
 Constructor: (3) Create extension-entry
=====================================================================
  

Method Detail

chgQDf

protected TSQuad chgQDf(TSQuad cq)
.
=====================================================================
 Methode "chgQDf"
 Quadratstruktur-Verkettung innerhalb Tiles liefern oder veraendern
 ACHTUNG: Wert nicht veraendern wenn 'cq==null'
 ##chgQDf.TSQuad (Eyecatcher)
=====================================================================
  


chgTle

protected TSTile chgTle(TSTile ct)
.
=====================================================================
 Methode "chgTle"
 Rueckverkettung zu Tile bearbeiten
 ACHTUNG: Wert nicht veraendern wenn 'ct==null'
 ##chgTle.TSQuad (Eyecatcher)
=====================================================================
  


compareTo

public int compareTo(TSQuad vQ)
.
=====================================================================
 Methode "compareTo"
 Methode zum sortieren der Elemente
 ACHTUNG: Elemente sind gleich auch wenn die Vorzeichen
            NICHT uebereinstimmen (Sortierfolge)
 Attention: Name of this Method is requested by Interface
           'Comparable'. Results need not be 0,1,-1
 Note: This class has a natural ordering that is
       inconsistent with equals.
 ##compareTo.TSQuad (Eyecatcher)
=====================================================================
  

Specified by:
compareTo in interface java.lang.Comparable<TSQuad>

crCoo

protected TSCoo crCoo(TSPos cP)
.
=====================================================================
 Methode "crCoo"
 Positions-Definition als Koordinaten-Objekt liefern
 ##crCoo.TSQuad (Eyecatcher)
=====================================================================
  


dX

protected final int dX(int cX)
.
=====================================================================
 Methode "dX"
 Returns number of Quads to target using X-direction
 ##dX.TSQuad (Eyecatcher)
=====================================================================
  


dZ

protected final int dZ(int cZ)
.
=====================================================================
 Methode "dZ"
 Returns number of Quads to target using Z-direction
 ##dZ.TSQuad (Eyecatcher)
=====================================================================
  


fndQuad

protected TSQuad fndQuad(TSRoute cR,
                         int dx,
                         int dz)
.
=====================================================================
 Methode "fndQuad"
 benachbarte Quad-Definition gemaess Differenzwerten suchen
 wenn nicht gefunden (oder Fehler) wird 'null' geliefert
 ##fndQuad.TSQuad (Eyecatcher)
=====================================================================
  


getInf

protected java.lang.String getInf(int nr)
.
=====================================================================
 Methode "getInf"
 Diese Methode liefert aufbereitete Basisinformationen
 ##getInf.TSQuad (Eyecatcher)
=====================================================================
  


getMsg

protected java.lang.String getMsg(int nr,
                                  java.lang.String s,
                                  int x,
                                  int z)
.
=====================================================================
 Methode "getMsg"
 Diese Methode liefert aufbereitete Informationen/Message/Datenwert
   Je nach Kennung koennen auch 'private'-Werte in den
     Rueckgabe-String eingebaut werden
 ##getMsg.TSQuad (Eyecatcher)
=====================================================================
  


isWrld

protected boolean isWrld(int qx,
                         int qz)
.
=====================================================================
 Methode "isWrld"
 pruefen ob geforderte Quadrat-Definition vorliegt
 ##isWrld.TSQuad (Eyecatcher)
=====================================================================
  


setNme

protected boolean setNme(boolean wrld)
.
=====================================================================
 Methode "setNme"
 Namensdefinition (world/sound) setzen (aktivieren) falls noch nicht
   vorhanden
 Methode liefert 'true', wenn der Name neu erstellt wurde
 ##setNme.TSQuad (Eyecatcher)
=====================================================================
  


shft

protected java.lang.String shft(int dx,
                                int dz)
.
=====================================================================
 Methode "shft"
 aktuelle gespeicherte 'NEUE' Koordinaten veraendern
 Methode liefert Fehlermeldung falls Fehler auftritt
 ##shft.TSQuad (Eyecatcher)
=====================================================================
  


toStr

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

Overrides:
toStr in class TSQDef