Class TSTile

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

 class TSTile
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<TSTile>

.

======================================================================
 Klasse TSTile -- Definition eines Tile-Elementes
 Ein Tile ist ein Strukturquadrat höherer Ordnung (Kantenlaenge>1)
   oder ein einfaches Strukturquadrat (Kantenlaenge=1)
 ##TSTile (Eyecatcher)
======================================================================
 


Field Summary
private  int Cnt
           
private  boolean Flg
           
protected static java.lang.String IdStr
           
private static int[][] K_lZf
           
private static int[] K_xZf
           
private static int[] K_zZf
           
private  boolean loT
           
private  java.lang.String NmeA
           
private  java.lang.String NmeN
           
private  int nQx
           
private  int nQz
           
private  TSQuad QDef
           
private  int Ql
           
private  int Qx
           
private  int Qz
           
 
Constructor Summary
protected TSTile()
          .
protected TSTile(int qx, int qz, int ql, boolean lo, java.lang.String tn, TSQuad qa)
          .
 
Method Summary
protected  boolean chgFlag(int nF)
          .
protected  TSQuad chgQDf(TSQuad cq)
          .
 int compareTo(TSTile vT)
          .
protected  TSQuad crQuad()
          .
protected  java.lang.String crTle(java.io.File dir, double flr)
          .
protected  TSTileC crTleC()
          .
protected  boolean equals(TSTile vT)
          .
protected  java.lang.String getId(boolean orig)
          .
protected  int getK(boolean typ)
          .
protected  int getLen(int kl)
          .
protected  java.lang.String getNme(int t)
          .
protected static java.lang.String getTNme(int qx, int qz, int ql)
          .
protected  java.lang.String shft(int dx, int dz)
          .
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

K_xZf

private static final int[] K_xZf

K_zZf

private static final int[] K_zZf

K_lZf

private static final int[][] K_lZf

Qx

private int Qx

Qz

private int Qz

nQx

private int nQx

nQz

private int nQz

Ql

private int Ql

NmeA

private java.lang.String NmeA

NmeN

private java.lang.String NmeN

QDef

private TSQuad QDef

loT

private boolean loT

Cnt

private int Cnt

Flg

private boolean Flg
Constructor Detail

TSTile

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


TSTile

protected TSTile(int qx,
                 int qz,
                 int ql,
                 boolean lo,
                 java.lang.String tn,
                 TSQuad qa)
.
=====================================================================
 Constructor: (2) Create standard-entry
=====================================================================
  

Method Detail

chgFlag

protected final boolean chgFlag(int nF)
.
=====================================================================
 Methode "chgFlag"
 Set new value for 'temporary flag'.
 Method returns previous value of flag.
 Three states are expressed by an integer-value:
   0 - do not change flag
  <0 - set flag to 'false' (e.g. -1)
  >0 - set flag to 'true' (e.g. 1)
 ##chgFlag.TSTile (Eyecatcher)
=====================================================================
  


chgQDf

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


compareTo

public int compareTo(TSTile vT)
.
=====================================================================
 Methode "compareTo"
 Methode zum sortieren der Elemente
 ACHTUNG: Elemente sind gleich auch wenn die Vorzeichen
            NICHT uebereinstimmen  (Sortierfolge)
 Attention: Name of this Methode 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.TSTile (Eyecatcher)
=====================================================================
  

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

crQuad

protected TSQuad crQuad()
.
=====================================================================
 Methode "crQuad"
 (eine) fehlende Quad-Definition erstellen
 Wenn KEINE Quad-Definition mehr fehlt wird 'null' geliefert
 ##crQuad.TSTile (Eyecatcher)
=====================================================================
  


crTle

protected java.lang.String crTle(java.io.File dir,
                                 double flr)
.
=====================================================================
 Methode "crTle"
 Tile-Definition erstellen und in Tile-Verzeichnis schreiben
 ##crTle.TSTile (Eyecatcher)
=====================================================================
  


crTleC

protected TSTileC crTleC()
.
=====================================================================
 Methode "crTleC"
 primaeres Tile-Verbindungsobjekt generieren und liefern
 ##crTleC.TSTile (Eyecatcher)
=====================================================================
  


equals

protected boolean equals(TSTile vT)
.
=====================================================================
 Methode "equals"
 pruefen ob Tile-Definition identisch (Typ, Position und Groesse)
 Attention: This function is also needed, so that method 'contains()'
            functions correctly. So, the name of this method is
            fixed.
 ##equals.TSTile (Eyecatcher)
=====================================================================
  


getId

protected java.lang.String getId(boolean orig)
.
=====================================================================
 Methode "getId"
 Information-Hiding: Quadrantenkennung in String-Form liefern
 ##getId.TSTile (Eyecatcher)
=====================================================================
  


getK

protected int getK(boolean typ)
.
=====================================================================
 Methode "getK"
 aktuelle gespeicherte Koordinate liefern (modifizierte Version)
 ##getK.TSTile (Eyecatcher)
=====================================================================
  


getLen

protected int getLen(int kl)
.
=====================================================================
 Methode "getLen"
 Kantenlaenge des Tiles vergleichen und liefern
 ##getLen.TSTile (Eyecatcher)
=====================================================================
  


getNme

protected java.lang.String getNme(int t)
.
=====================================================================
 Methode "getNme"
 verschiedene Namen (Tile-Adresse) gemaess Typ erstellen
 Achtung: Name enthaelt KEINEN Pfadanteil
 ##getNme.TSTile (Eyecatcher)
=====================================================================
  


getTNme

protected static final java.lang.String getTNme(int qx,
                                                int qz,
                                                int ql)
.
=====================================================================
 Methode "getTNme" (Statische Version)
 Tile-Adresse aus Koordinaten berechnen
 ##getTNme.TSTile (Eyecatcher)
=====================================================================
  


shft

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


toStr

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