|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTSTile
class 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 |
---|
protected static final java.lang.String IdStr
private static final int[] K_xZf
private static final int[] K_zZf
private static final int[][] K_lZf
private int Qx
private int Qz
private int nQx
private int nQz
private int Ql
private java.lang.String NmeA
private java.lang.String NmeN
private TSQuad QDef
private boolean loT
private int Cnt
private boolean Flg
Constructor Detail |
---|
protected TSTile()
===================================================================== Constructor: (1) Create default-entry =====================================================================
protected TSTile(int qx, int qz, int ql, boolean lo, java.lang.String tn, TSQuad qa)
===================================================================== Constructor: (2) Create standard-entry =====================================================================
Method Detail |
---|
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) =====================================================================
protected TSQuad chgQDf(TSQuad cq)
===================================================================== Methode "chgQDf" Quadratstruktur-Verkettung liefern oder veraendern ACHTUNG: Wert nicht veraendern wenn 'cq==null' ##chgQDf.TSTile (Eyecatcher) =====================================================================
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) =====================================================================
compareTo
in interface java.lang.Comparable<TSTile>
protected TSQuad crQuad()
===================================================================== Methode "crQuad" (eine) fehlende Quad-Definition erstellen Wenn KEINE Quad-Definition mehr fehlt wird 'null' geliefert ##crQuad.TSTile (Eyecatcher) =====================================================================
protected java.lang.String crTle(java.io.File dir, double flr)
===================================================================== Methode "crTle" Tile-Definition erstellen und in Tile-Verzeichnis schreiben ##crTle.TSTile (Eyecatcher) =====================================================================
protected TSTileC crTleC()
===================================================================== Methode "crTleC" primaeres Tile-Verbindungsobjekt generieren und liefern ##crTleC.TSTile (Eyecatcher) =====================================================================
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) =====================================================================
protected java.lang.String getId(boolean orig)
===================================================================== Methode "getId" Information-Hiding: Quadrantenkennung in String-Form liefern ##getId.TSTile (Eyecatcher) =====================================================================
protected int getK(boolean typ)
===================================================================== Methode "getK" aktuelle gespeicherte Koordinate liefern (modifizierte Version) ##getK.TSTile (Eyecatcher) =====================================================================
protected int getLen(int kl)
===================================================================== Methode "getLen" Kantenlaenge des Tiles vergleichen und liefern ##getLen.TSTile (Eyecatcher) =====================================================================
protected java.lang.String getNme(int t)
===================================================================== Methode "getNme" verschiedene Namen (Tile-Adresse) gemaess Typ erstellen Achtung: Name enthaelt KEINEN Pfadanteil ##getNme.TSTile (Eyecatcher) =====================================================================
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) =====================================================================
protected java.lang.String shft(int dx, int dz)
===================================================================== Methode "shft" aktuelle gespeicherte Koordinaten veraendern Methode liefert Fehlermeldung falls Fehler auftritt ##shft.TSTile (Eyecatcher) =====================================================================
protected final java.lang.String toStr()
===================================================================== Method "toStr" Build a string-representation of all values of this class ##toStr.TSTile (Eyecatcher) =====================================================================
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |