|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTSUtil
public class TSUtil
.
====================================================================== Class TSUtil Option-values (max) of 'int': 2,3,5,7,11,13,17,19,23,29 (coded using primenumber-method) ##TSUtil (Eyecatcher) ======================================================================
Field Summary | |
---|---|
protected static int |
c0
|
protected static int |
c1
|
protected static int |
c2
|
protected static int |
c3
|
protected static int |
c4
|
protected static int |
c5
|
protected static java.util.Locale |
cLoc
|
protected static java.lang.String |
CRLF
|
private static java.lang.String |
DataName
|
private static java.lang.String |
DataPath
|
protected static double |
dDist
|
protected static java.text.DecimalFormat |
DF2
|
protected static java.text.DecimalFormat |
DF3
|
protected static java.text.DecimalFormat |
DF4
|
protected static boolean |
EnaH
|
protected static boolean |
EnaW
|
protected static java.lang.String |
fn
|
protected static TSData |
Fo
|
protected static TSOpts |
FoX
|
protected static TSByteArrIO |
gB
|
protected static TSFile |
gC
|
protected static java.io.File |
gD
|
protected static TSFile |
gF
|
protected static java.util.TreeSet<java.lang.String> |
gN
|
private static java.lang.Runtime |
gRE
|
protected static TSTemp |
gT
|
protected static java.lang.String |
JVer
|
protected static java.lang.String |
JVName
|
protected static java.lang.String |
Kdo
|
protected static TSLogg |
Lg
|
protected static int |
mxLvl
|
protected static long |
NoVS
|
protected static java.lang.String |
OSName
|
protected static java.lang.String |
OSVer
|
protected static java.io.File |
pFle
|
protected static TSOpts |
PrMsk
|
protected static java.lang.Object |
RetVal
|
protected static int |
sca
|
protected static int |
ScA
|
protected static int |
scd
|
protected static int |
sch
|
protected static int |
scl
|
protected static int |
scn
|
protected static int |
ScN
|
protected static TSSect[] |
ScTab
|
protected static int |
sha
|
protected static int |
ShA
|
protected static int |
shd
|
protected static int |
shh
|
protected static int |
shl
|
protected static int |
shn
|
protected static int |
ShN
|
protected static TSShape[] |
ShTab
|
protected static java.lang.String |
SpVers
|
protected static java.lang.String |
StDL
|
private static int[] |
TDdx
|
private static int[] |
TDr
|
private static java.lang.String[] |
TleP
|
private static java.lang.String[] |
TleS
|
protected static int |
TrN_T
|
protected static java.lang.String |
tx1
|
protected static java.lang.String |
tx2
|
protected static java.lang.String |
Version
|
protected static java.lang.String |
vn2
|
protected static java.lang.String |
vn3
|
protected static java.lang.String |
Zif
|
protected static int |
ZL
|
Constructor Summary | |
---|---|
TSUtil()
. |
Method Summary | |
---|---|
protected static boolean |
actOFle(TSBuf cB,
java.lang.String msg,
boolean mde)
. |
protected static java.lang.String |
addStr(java.lang.String src)
. |
protected static int |
adjH(boolean Lgapp)
. |
private static void |
askTerm()
. |
protected static int |
chgSig(boolean Lgapp)
. |
protected static int |
chgTDB()
. |
protected static int |
chgTrk(TSRoute cRte,
TSData cCtl,
int ofs)
. |
protected static int |
chkAct(TSRoute cRte,
boolean chg)
. |
protected static int |
chkCon(TSRoute cRte)
. |
protected static int |
chkDBTab(TSRoute cRte,
int typ)
. |
protected static java.lang.String |
chkFile(java.io.File dat,
int typ,
java.lang.String kwd,
TSNameSet Lst)
. |
protected static int |
chkInteg(boolean Lgapp)
. |
protected static int |
chkItm(TSWrld cObj,
TSRoute cRte,
int db,
java.lang.String txt)
. |
protected static TSLogg |
chkLog(java.lang.String dn)
. |
protected static int |
chkNum(java.lang.String s,
int b,
int e)
. |
protected static java.lang.String |
chkOFle(java.lang.String cC,
java.lang.String msg)
. |
protected static int |
chkPat(TSRoute cRte)
. |
protected static int |
chkPath(TSArrList pl,
java.lang.String cFn,
java.lang.String[] prm)
. |
protected static java.lang.String |
chkPos(TSBuf cB,
TSSnd cF,
java.util.ArrayList<java.lang.String> EL)
. |
protected static boolean |
chkRef(TSTrNde cTrN)
. |
protected static java.lang.String |
chkShape(java.io.File dat,
TSNameSet Lst)
. |
protected static int |
chkSnd(TSRoute cRte,
TSNameSet Nme,
int mde)
. |
protected static java.lang.String |
chkSrt(TSWrld cObj,
java.lang.String txt)
. |
protected static int |
chkSrv(TSRoute cRte,
boolean chg)
. |
protected static int |
chkTrf(TSRoute cRte,
boolean chg,
boolean hMsg)
. |
protected static int |
chkTSL(TSRoute cRte,
int ic,
int ih)
. |
protected static int |
chkUpg(boolean Lgapp)
. |
protected static void |
chkWrld(TSRoute cRte,
TSNameSet Nme,
int mde)
. |
protected static int |
clearDB(boolean Lgapp)
. |
protected static void |
clrRef(TSTrNde cTrN,
TSRoute cRte)
. |
protected static java.lang.String[] |
cnvInt(int... v)
. |
protected static int |
CompW(boolean Lgapp)
. |
protected static int |
cpyDat(java.io.File dir1,
java.io.File dir2,
java.io.File dir3,
int c)
. |
protected static int |
cpyFile(TSNameSet Lst,
java.io.File dirS,
java.io.File dirT,
java.io.File dirC)
. |
protected static int |
cpyRef(int ix,
java.util.ArrayList<TSTrNde> TrN,
TSTrNde cTrN)
. |
protected static int |
cpyShape(TSNameSet Lst,
java.io.File dirS,
java.io.File dirT,
java.io.File dirC)
. |
protected static int |
cpySMS(TSRoute cRte,
java.io.File dats,
java.lang.String nme,
int nr)
. |
protected static java.lang.String |
cpyTile(TSRoute cRte,
boolean TleT,
boolean cpyB)
. |
protected static int |
cpyTree(TSNameSet Lst,
java.io.File dirS,
java.io.File dirT,
java.io.File dirC)
. |
protected static int |
creTDCtl(TSRoute cRte,
boolean lo)
. |
protected static int |
cvrtTS()
. |
protected static int |
dcopy(boolean Lgapp)
. |
protected static java.lang.String |
delTDF(TSTile cT,
java.io.File cD)
. |
private static int |
exec(boolean sh,
java.lang.String cmd,
java.io.File vz,
TSLogg Lg)
. |
protected static int |
Expand(boolean Lgapp)
. |
protected static int |
Filter(boolean Lgapp)
. |
protected static int |
FleCpy(boolean Lgapp)
. |
protected static int |
FleMgr(boolean Lgapp)
. |
protected static int |
getActDef(TSBuf cB,
TSXtSrv cSrv,
int ec,
java.lang.String prL,
java.lang.String prK)
. |
protected static int |
getActEv(TSBuf cB,
java.util.TreeSet<TSActEv> EvT,
int msk,
int ec,
java.lang.String prL,
java.lang.String prK)
. |
protected static int |
getActF(TSRoute cRte,
boolean nocr)
. |
protected static java.lang.String |
getDate(long ct,
boolean ext)
. |
protected static int |
getDBF(TSRoute cRte,
int typ)
. |
protected static java.lang.String |
getDBPins(TSBuf cB,
TSTrNde cTrN)
. |
protected static java.lang.String |
getDBUid(TSBuf cB,
TSVector cNde,
boolean v)
. |
protected static java.lang.String |
getEnv(java.lang.String key,
boolean mde)
. |
protected static int |
getItem(TSBuf cB,
TSTrItm cIt,
java.util.ArrayList<TSTrNde> TrN,
java.lang.String txt)
. |
protected static int |
getITF(TSRoute cRte,
int typ)
. |
protected static int |
getItNr(TSBuf cB,
java.lang.String txt)
. |
protected static TSOpts |
getLvlMsk(java.lang.String s)
. |
protected static int |
getMF(TSRoute cRte)
. |
protected static int |
getPatF(TSRoute cRte,
boolean nocr)
. |
protected static java.lang.String |
getPos(TSBuf cB,
boolean hgt,
boolean chk)
. |
protected static java.lang.String |
getPrnt(java.lang.String src,
java.lang.String ext)
. |
protected static java.lang.String |
getQDir(TSBuf cB)
. |
protected static int |
getRF(TSRoute cRte,
TSNameSet Nme)
. |
protected static TSRoute |
getRte(java.lang.String Nme,
int typ)
. |
protected static int |
getSCfg(TSRoute cRte,
java.io.File dat,
TSNameSet Nme,
boolean wMsg)
. |
protected static int |
getSF(TSRoute cRte,
boolean KM)
. |
protected static int |
getSnd(java.io.File dat,
TSQDef cQDf,
TSRoute cRte,
boolean KM)
. |
protected static int |
getSpp(TSRoute cRte,
TSNameSet Lst)
. |
protected static int |
getSrvF(TSRoute cRte,
boolean nocr)
. |
protected static int |
getSScr(TSRoute cRte,
TSRoute sRte)
. |
protected static int |
getTD(int Qx,
int Qz,
int Ql)
. |
protected static int |
getTDF(TSRoute cRte,
int t)
. |
protected static int |
getTrain(TSBuf cB,
TSTrain cTrn,
int ec,
java.lang.String prL,
java.lang.String prK)
. |
protected static int |
getTrfDef(TSBuf cB,
java.util.ArrayList<TSStStp> StpT,
int ec,
java.lang.String pref)
. |
protected static int |
getTrfF(TSRoute cRte,
boolean nocr)
. |
protected static int |
getTrWgn(TSBuf cB,
java.util.ArrayList<TSRefC> TOT,
int ec,
java.lang.String pr,
java.lang.String prE)
. |
protected static int |
getTS(java.io.File dat,
java.io.File ShD)
. |
protected static int |
getTSL(TSRoute cRte,
int ScB,
int ShB)
. |
protected static int |
getType(TSRoute cRte)
. |
protected static TSView |
getVS(TSBuf cB)
. |
protected static int |
getWF(TSRoute cRte,
boolean KM)
. |
protected static int |
getWrld(java.io.File dat,
TSQDef cQDf,
TSRoute cRte,
boolean KM)
. |
protected static int |
horace(boolean Lgapp)
. |
protected static int |
Insert(boolean Lgapp)
. |
protected static int |
insShE(TSTrkObj cU,
java.lang.String cFn)
. |
static void |
main(java.lang.String[] args)
. |
protected static int |
marker()
. |
protected static int |
Merge(boolean Lgapp)
. |
protected static java.lang.String |
modStr(java.lang.String src)
. |
protected static int |
modWrld(TSRoute cRte,
TSData ctl,
boolean optZ)
. |
protected static int |
move(boolean Lgapp)
. |
protected static int |
mveObj(boolean Lgapp)
. |
protected static int |
mveTile(TSTile cTle,
java.io.File sDir,
java.io.File zDir,
double dy,
TSNameSet Lst,
boolean red,
boolean cpy)
. |
protected static boolean |
prExtD(TSRoute cRte)
. |
protected static java.lang.String |
prFN(int w1,
int w2,
int fl)
. |
private static void |
prStart(java.lang.String key,
java.lang.String... prm)
. |
protected static int |
putActF(TSRoute cRte,
java.io.File tdat,
int opt)
. |
protected static int |
putDBF(TSRoute cRte,
java.io.File datz,
int t)
. |
protected static java.lang.String |
putFV(double v,
int c)
. |
protected static int |
putITF(TSRoute cRte,
java.io.File datz,
int t,
boolean clr)
. |
protected static int |
putObj(TSRoute cRte)
. |
protected static int |
putPatF(TSRoute cRte,
java.io.File tdat,
int opt)
. |
protected static int |
putRF(TSRoute cRte,
java.io.File datz)
. |
protected static int |
putRte(TSRoute cRte,
java.io.File tdat)
. |
protected static int |
putSCfg(TSRoute cRte,
java.io.File datz)
. |
protected static int |
putSF(TSRoute cRte,
java.io.File tdat,
boolean chg)
. |
protected static int |
putSnd(java.io.File dat,
TSQDef cQDf,
int chg)
. |
protected static int |
putSrvF(TSRoute cRte,
java.io.File tdat,
int opt)
. |
protected static boolean |
putTD(TSTileC cTle)
. |
protected static int |
putTDF(TSRoute cRte,
java.io.File dat,
int t)
. |
protected static int |
putTrfF(TSRoute cRte,
java.io.File tdat,
int opt)
. |
protected static int |
putTSL(TSRoute cRte,
TSRoute rRte,
boolean OV)
. |
protected static int |
putType(TSRoute cRte)
. |
protected static java.lang.String |
putVS(TSFile cF,
TSView cVS,
int lvl)
. |
protected static int |
putWF(TSRoute cRte,
java.io.File tdat,
boolean chg,
boolean clr)
. |
protected static int |
putWrld(java.io.File dat,
TSQDef cQDf,
boolean chg,
boolean clr)
. |
protected static int |
rcvWrld(TSRoute cRte,
TSData ctl)
. |
protected static int |
Reduce(boolean Lgapp)
. |
protected static int |
renDB(boolean Lgapp)
. |
protected static double |
round(double w,
int c)
. |
protected static java.lang.String |
setPrfx(int l)
. |
protected static int |
shftDyn(boolean Lgapp)
. |
protected static int |
shift(boolean Lgapp)
. |
protected static int |
shVer(boolean Lgapp)
. |
protected static int |
srchSig(boolean Lgapp)
. |
protected static java.lang.String |
toHex(long w,
int l)
. |
protected static int |
toZuSi(boolean Lgapp)
. |
protected static int |
tstMod(boolean Lgapp)
. |
protected static int |
tstSig(boolean Lgapp)
. |
protected static int |
wFile(boolean Lgapp)
. |
protected static int |
world(boolean comp,
boolean UTo,
boolean Lgapp)
. |
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 Version
protected static final java.lang.String SpVers
private static final int[] TDdx
private static final int[] TDr
private static final java.lang.String[] TleP
private static final java.lang.String[] TleS
private static final java.lang.Runtime gRE
private static final java.lang.String DataPath
private static final java.lang.String DataName
protected static final java.util.Locale cLoc
protected static final java.text.DecimalFormat DF2
protected static final java.text.DecimalFormat DF3
protected static final java.text.DecimalFormat DF4
protected static final java.lang.String tx1
protected static final java.lang.String tx2
protected static final java.lang.String Zif
protected static final java.lang.String StDL
protected static final long NoVS
protected static int sca
protected static int scn
protected static int sha
protected static int shn
protected static TSOpts PrMsk
protected static double dDist
protected static final int mxLvl
protected static final int TrN_T
protected static final int ZL
protected static TSLogg Lg
protected static java.lang.String CRLF
protected static java.lang.String OSName
protected static java.lang.String OSVer
protected static java.lang.String JVName
protected static java.lang.String JVer
protected static java.lang.String Kdo
protected static java.lang.String fn
protected static java.lang.String vn2
protected static java.lang.String vn3
protected static boolean EnaW
protected static boolean EnaH
protected static int c0
protected static int c1
protected static int c2
protected static int c3
protected static int c4
protected static int c5
protected static int shl
protected static int shh
protected static int shd
protected static int scl
protected static int sch
protected static int scd
protected static int ShA
protected static int ScA
protected static int ShN
protected static int ScN
protected static java.lang.Object RetVal
protected static java.io.File pFle
protected static TSData Fo
protected static TSOpts FoX
protected static TSTemp gT
protected static java.io.File gD
protected static TSFile gC
protected static TSFile gF
protected static TSByteArrIO gB
protected static java.util.TreeSet<java.lang.String> gN
protected static TSSect[] ScTab
protected static TSShape[] ShTab
Constructor Detail |
---|
public TSUtil()
===================================================================== Constructor: (1) Create default-entry =====================================================================
Method Detail |
---|
public static void main(java.lang.String[] args)
===================================================================== Hauptprogramm TSUtil wird nur der Programmparameter '?' angegeben, wird eine kurze Bedienungsanleitung ausgegeben AlLgemeine Festlegungen fuer Funktionsoptionen(Var='Fo'): 0..15 - benutzt von aktueller Funktion 16..19 - gemeinsame lokale Optionen 16 : Erweiterte Ausgaben in Datei ('-d') 17 : Ausgangsdateien Ueberschreiben ('-inplace') 18 : Strukturdatendatei reparieren ('-tdrepair') 19 : 20..31 - globale Optionen 20 : Batch-Modus aktiv ('-$B') 21 : 22 : type-marker 1 for local options 23 : type-marker 2 for local options 24 : Sicherungsdatei schreiben ('-s') 25 : Meldungs-Schluessel einschalten ('-k') 26 : Log-Ausgabe an vorhandene Datei anhaengen ('-L') 27 : 28 : Funktion NICHT ausfuehern ('-$Z') 29 : tdb-Datei formatieren ('-$S') 30 : Zeitmessung durchfuehren ('-$T') 31 : Print Debug-Messages ('-$X') (together with 'PrMsk') ##main (Eyecatcher) =====================================================================
protected static int tstMod(boolean Lgapp)
===================================================================== Methode "tstMod" (-ohne-) [-1] Sonderfunktionen und Testen -- NUR FUER DEBUG (test) ##tstMod (Eyecatcher) ##test (Eyecatcher) =====================================================================
protected static int world(boolean comp, boolean UTo, boolean Lgapp)
===================================================================== Methode "world" (-1-)(-2-)(-3-) World - Dateien umwandeln und ggf. komprimieren ##world (Eyecatcher) =====================================================================
protected static int marker()
===================================================================== Methode "marker" (-4-) Marker-Datei aus Koordinatendatei erstellen Optionen: 1 - Ausgabe-Format Version 4 konvertieren (-4) ##marker (Eyecatcher) (##cmkr) =====================================================================
protected static int horace(boolean Lgapp)
===================================================================== Methode "horace" (-5-) ('cvrt') World - Dateien bearbeiten und Dynamische Schienen austauschen Options (Fo): 1 - UiD-Nummern reorganisieren (-r) 2 - Shape-Namen auf Existenz testen (-s) 3 - World-Dateien auf JEDEN Fall komprimieren (-c) 4 - World-Dateien NICHT komprimieren (-u) 5 - Korrektur-Modus fuer World-Dateien benutzen (-k) 6 - Dummy-World-Dateien erzeugen falls notwendig (-w) 7 - 8 - Pfad-Definitionen veraendert ausgeben (-p,Hidden) 9 - Hide-Modus inaktiv (Objekte zuruecksetzen) (-n) 10 - Hide-Modus aktiv (-h/-f) 11 - Modifikation der Dateinamen zuruecknehmen (-m)(-n) 12 - Modifikation der Dateinamen gefordert (-m) 13 - Generierung von Schienenbegleitobjekten (-a) 14 - Modify object-definitions (-o) 15 - Modify 'StaticDetailLevel' of object-definitions (-l) 16 - Extended output to LOG (-d,Hidden) 17 - Overwrite original files while writing (-inplace,Hidden) 18 - Strukturdatendatei reparieren falls notwendig (-tdrepair,Hidden) 22 : type-marker 1 for local options (-Y) Extended Options (FoX): 1 - Extended analysis for 'Hidewire'-objects within Static-Def's (-z) 2 - Extended analysis for 'Modifications' within Tracks (-z) ##cvrt (Eyecatcher) ##horace (Eyecatcher) =====================================================================
protected static int chgTDB()
===================================================================== Methode "chgTDB" (-6-) Change Shape- and Section-Numbers of Track-/Road-Database ##chgTDB (Eyecatcher) =====================================================================
protected static int dcopy(boolean Lgapp)
===================================================================== Methode "dcopy" (-7-) Differenz-Dateistruktur erstellen Optionen: 1 - Auch '.bk'-Dateien kopieren 2 - Nur vorhandene Dateien beachten (nur neuere Dateien) 3 - Time-displacement of checked route active ##dcopy (Eyecatcher) =====================================================================
protected static int shift(boolean Lgapp)
===================================================================== Methode "shift" (-8-) Shape-Bereich in globaler 'tsection.dat' verschieben Optionen: 1 - Erweiterung der Grenzen erlaubt ##shift (Eyecatcher) =====================================================================
protected static int Filter(boolean Lgapp)
===================================================================== Methode "Filter" (-9-) Streckendefinition auf ungenutzte Definitionen filtern (filter) Optionen: 1 - World-Dateien als Kriterium benutzen (-w) 2 - '.t'-Datei loeschen falls World-Datei fehlt (-c) 16 - Extended output to LOG (-d,Hidden) 17 - Dateien direkt ueberschreiben (-inplace,Hidden) ##Filter (Eyecatcher) =====================================================================
protected static java.lang.String delTDF(TSTile cT, java.io.File cD)
===================================================================== Methode "defTDF" Delete TDF-files if still present. This method iscalled from 'Filter()' ##delTDF (Eyecatcher) =====================================================================
protected static int CompW(boolean Lgapp)
===================================================================== Methode "CompW" (-10-) World - Dateien komprimieren (extended Version) ##CompW (Eyecatcher) =====================================================================
protected static int cvrtTS()
===================================================================== Methode "cvrtTS" (-11-) Alle Strecken der TS-Instanz konvertieren Optionen: (belegt wie bei 'cvrt') 2 - Shape-Namen auf Existenz testen 4 - World-Dateien NICHT komprimieren ##cvrtTS (Eyecatcher) =====================================================================
protected static int chkInteg(boolean Lgapp)
===================================================================== Methode "chkInteg" (-12-) Integritaet einer Streckendefinition pruefen (ichk) Optionen: 2 - Shape-Namen auf Existenz testen (-s) 3 - ALLE benutzten Shape-Namen auf Existenz testen (-S) 5 - Korrektur-Modus fuer World-Dateien benutzen (-k) 6 - Extended analysis for 'Hidewire'-objects within Static-Def's (-z) 7 - Extended analysis for 'Modifications' within Tracks (-z) 16 - Extended output to LOG (-d,Hidden) 18 - Strukturdatendatei reparieren falls notwendig (-tdrepair,Hidden) ##chkInteg (Eyecatcher) ##ichk (Eyecatcher) =====================================================================
protected static java.lang.String chkShape(java.io.File dat, TSNameSet Lst)
===================================================================== Method "chkShape" Extract image-names of shape-definitions and store them Attention: directories are NOT supported Method is referenced from 'Merge', 'clearDB' and 'chkInteg'. ##chkShape (Eyecatcher) =====================================================================
protected static java.lang.String chkFile(java.io.File dat, int typ, java.lang.String kwd, TSNameSet Lst)
===================================================================== Methode "chkFile" Open file with 'TSFileX' and extract value due to keyword Method is referenced from 'Merge' exclusively ##chkFile (Eyecatcher) =====================================================================
protected static int renDB(boolean Lgapp)
===================================================================== Methode "renDB" (-13-) Datenbank neu nummerieren nach loeschen von Elementen Individuelle Optionskennungen (wenn aktiv): 1 - Datenbank auch bei Fehler neu erstellen (w) 2 - nicht referenzierte TrItems loeschen (a) 3 - World-Dateien auf JEDEN Fall komprimieren (c) 4 - World-Dateien NICHT komprimieren (u) 5 - NUR TrackDB reorganisieren (o) 6 - Kopieren der Originaldaten erzwingen (bei Fehler) 7 - Loeschen von einzelnen TrItem-DB-Referenzen (r) 16 - Extended output to LOG (-d,Hidden) 17 - Dateien direkt ueberschreiben (-inplace,Hidden) ##renDB (Eyecatcher) =====================================================================
protected static int move(boolean Lgapp)
===================================================================== Methode "move" (-14-) Streckendefinition verschieben Optionen: 3 - Komprimieren der Tile-Dateien 4 - Kopieren der Puffer gefordert 16 - Extended output to LOG (-d,Hidden) ##move (Eyecatcher) =====================================================================
protected static int chkUpg(boolean Lgapp)
===================================================================== Methode "chkUpg" (-15-) 'tsection.dat' (alt/neu) laden und Upgrade pruefen ##chkUpg (Eyecatcher) =====================================================================
protected static int adjH(boolean Lgapp)
===================================================================== Methode "adjH" (-16-) Hoehenwerte einer Strecke anpassen Individuelle Optionskennungen (wenn aktiv): 1 - Komprimieren der Tile-Dateien (c) ##adjH (Eyecatcher) =====================================================================
protected static int Reduce(boolean Lgapp)
===================================================================== Methode "Reduce" (-17-) Shape-, Tile- oder World-Datei reduzieren und ggf. komprimieren Optionen: 1 - Compress ist gefordert 2 - Vollstaendiges Kopieren gefordert 3 - LO-Tiles sollen genutzt werden (-,Hidden) 16 - Extended output to LOG (-d,Hidden) 17 - Dateien direkt ueberschreiben (-inplace,Hidden) ##Reduce/##cmp (Eyecatcher) =====================================================================
protected static int Expand(boolean Lgapp)
===================================================================== Methode "Expand" (-18-) Shape-, Tile- oder World-Datei expandieren und ggf. dekomprimieren Optionen: 2 - Vollstaendiges Kopieren gefordert 3 - LO-Tiles sollen genutzt werden (-,Hidden) 16 - Extended output to LOG (-d,Hidden) 17 - Dateien direkt ueberschreiben (-inplace,Hidden) ##Expand/##unc (Eyecatcher) =====================================================================
protected static int Merge(boolean Lgapp)
===================================================================== Method "Merge" (-19-) Merge two route-definitions and build one common route. Options: 4 - Copy Bufferfiles, too (-p) 7 - Modify 'StaticDetailLevel' to hide overheadwire (-h) 8 - DO NOT merge signaldefinitions (-s) 9 - Overlay world-files (-o) 16 - Extended output to LOG (-d,Hidden) ##Merge (Eyecatcher) =====================================================================
protected static int cpySMS(TSRoute cRte, java.io.File dats, java.lang.String nme, int nr)
===================================================================== Methode "cpySMS" SMS-Datei fuer 'Soundregion' kopieren und modifizieren Method is referenced from 'Merge' exclusively ##cpySMS (Eyecatcher) =====================================================================
protected static int cpyShape(TSNameSet Lst, java.io.File dirS, java.io.File dirT, java.io.File dirC)
===================================================================== Methode "cpyShape" Check and copy shape-definitions within a directory-tree Checkmode: The compare-directory is checked if the same file is already present within this folder. Also the time/date of 'lastmodified' is compared. If this file is newer a message is reported. The source-file is NOT copied to the target-directory in this case. Attention: If no compare-folder is specified, no check takes place. Method returns number of copied files Method is used within 'Merge' exclusively Attention: 'vn2' must contain 'message-prefix' ##cpyShape (Eyecatcher) =====================================================================
protected static int cpyFile(TSNameSet Lst, java.io.File dirS, java.io.File dirT, java.io.File dirC)
===================================================================== Methode "cpyFile" Check and copy file-definitions within a directory-tree Checkmode: The compare-directory is checked if the same file is already present within this folder. Also the time/date of 'lastmodified' is compared. If this file is newer a message is reported. The source-file is NOT copied to the target-directory in this case. Attention: If no compare-folder is specified, no check takes place. Method returns number of copied files Method is used within 'Merge' exclusively Attention: 'vn2' must contain 'message-prefix' ##cpyFile (Eyecatcher) =====================================================================
protected static int cpyTree(TSNameSet Lst, java.io.File dirS, java.io.File dirT, java.io.File dirC)
===================================================================== Methode "cpyTree" Check and copy definitions within a directory-tree Method is used recursively to copy whole tree Checkmode: The compare-directory is checked if the same file is already present within this folder. Also the time/date of 'lastmodified' is compared. If this file is newer a message is reported. The source-file is NOT copied to the target-directory in this case. Attention: If no compare-folder is specified, no check takes place. Method returns number of copied files Method is used within 'Merge' and 'clrDB' Attention: 'vn2' must contain 'message-prefix' ##cpyTree (Eyecatcher) =====================================================================
protected static int clearDB(boolean Lgapp)
===================================================================== Methode "clearDB" (-20-) Korrektur der Datenbanken einer beschaedigten Strecke versuchen Optionen: 1 - benutzte Tile-Dateien kopieren/bereinigen (-t) 2 - Puffer-Dateien fuer Tile kopieren/bereinigen (-p) 3 - Dummy-World-Dateien erzeugen falls notwendig (-w) 8 - ungenutzte World-/Sound-Dateien loeschen (-c,Hidden) 9 - Delete unused Shapes and Textures (-s) 16 - Extended output to LOG (-d,Hidden) 17 - Dateien direkt ueberschreiben (-inplace,Hidden) ##clearDB (Eyecatcher) ##clrDB (Eyecatcher) =====================================================================
protected static boolean chkRef(TSTrNde cTrN)
===================================================================== Methode "chkRef" Referenzkette rekursiv auf fehlende Definitionen analysieren Antwort: min. ein Objekt definiert - 'true' - ja, 'false' - nein Methode wird ausschliesslich in 'clearDB' benutzt ##chkRef (Eyecatcher) =====================================================================
protected static int cpyRef(int ix, java.util.ArrayList<TSTrNde> TrN, TSTrNde cTrN)
===================================================================== Methode "cpyRef" Referenzkette rekursiv in neue DB-Definition kopieren Methode liefert den letzten benutzten Index der neuen Tabelle Methode wird ausschliesslich in 'clearDB' benutzt ##cpyRef (Eyecatcher) =====================================================================
protected static void clrRef(TSTrNde cTrN, TSRoute cRte)
===================================================================== Methode "clrRef" Werte in Referenzkette rekursiv loeschen (cTrN-Kette soll entfernt werden) Methode wird ausschliesslich in 'clearDB' benutzt ##clrRef (Eyecatcher) =====================================================================
protected static int toZuSi(boolean Lgapp)
===================================================================== Methode "toZuSi" (-21-) Streckendaten in das ZuSi-Format konvertieren Optionen: ##toZuSi (Eyecatcher) ##ZuSi (Eyecatcher) =====================================================================
protected static int shftDyn(boolean Lgapp)
===================================================================== Methode "shftDyn" (-22-) Dynamische Shapes/Sections verschieben Optionen: 1 - Simuliere World-Referenzen fuer dyn-Eintraege 3 - World-Dateien auf JEDEN Fall komprimieren 4 - World-Dateien NICHT komprimieren 16 - Extended output to LOG (-d,Hidden) 17 - Dateien direkt ueberschreiben (-inplace,Hidden) ##shftDyn (Eyecatcher) =====================================================================
protected static int shVer(boolean Lgapp)
===================================================================== Methode "shVer" (-23-) (##version) Versionsdefinitionen analysieren Optionen: 1 - ##shVer (Eyecatcher) =====================================================================
protected static int FleMgr(boolean Lgapp)
===================================================================== Methode "FleMgr" (-24-) Datendateien flexibel bearbeiten (compress,expand,reduce,uncomp) Die Kombination der Optionen ist bereits geprueft. Optionen: 1 - geforderte Aktion ist 'Expand' (e) 2 - geforderte Aktion ist 'Reduce' (r) 3 - geforderte Aktion ist 'Compress' (c) 5 - Zielverzeichnis ggf. erstellen (o) 6 - Datei-Maske im Windows-Style spezifiziert (n) 13 - Dateityp ist 'Shape' (s) 14 - Dateityp ist 'World' (w) 15 - Dateityp ist 'Tile' (t) 16 - Extended output to LOG (-d,Hidden) ##FleMgr (Eyecatcher) (##fmgr) =====================================================================
protected static int chgSig(boolean Lgapp)
===================================================================== Method "chgSig" (-25-) Replace signal-definitions or signal-objects Options: 1 - Install shape-files(signal/static) (-c) 2 - Remove old shape-files(signal/static) (-r) 16 - Extended output to LOG (-d,Hidden) 17 - Overwrite original files while writing (-inplace,Hidden) Attention: refer to definition of class 'TSSigCDef' for the decription of the available actions. ##chgSig (Eyecatcher) =====================================================================
protected static int srchSig(boolean Lgapp)
===================================================================== Methode "srchSig" (-26-) Vorkommen von Signaldefinitionen in den World-Dateien suchen und protokollieren Optionen: 16 - Extended output to LOG (-d,Hidden) 18 - Strukturdatendatei reparieren falls notwendig (-tdrepair,Hidden) ##srchSig (Eyecatcher) =====================================================================
protected static int mveObj(boolean Lgapp)
===================================================================== Methode "mveObj" (-27-) Objekte einer Streckendefinition verschieben (3 Dimensionen) Individuelle Optionskennungen (wenn aktiv): 1 - Tile/Quadranten generieren (-g) 2 - NUR Track-/Road-Objekte verschieben (-t/-T) 3 - Strassenobjekte ignorieren (-r) 4 - Fortsetzen auch wenn Fehler erkannt wurden (-w) 5 - Position von Sound-Objekten NICHT veraendern (no 'clip') (-v) 16 - Extended output to LOG (-d,Hidden) ##mveObj (Eyecatcher) =====================================================================
protected static int wFile(boolean Lgapp)
===================================================================== Method "wFile" [28] Manage world-files of a route - 'split' world-files so that 'route-editor' can handle them - 'merge' world-files from various sources Options: 1 - 'split' world-files (-s) 2 - 'merge' world-files (-m) 3 - compress output-files in any case (-c) 4 - DO NOT compress output-files (-u) 16 - extended output to log-file (-d,Hidden) 17 - overwrite target-files directly (-inplace,Hidden) Attention: option 3 and 4 do not apply to the INTERMEDIATE world-files. ##wFile (Eyecatcher) =====================================================================
protected static int FleCpy(boolean Lgapp)
===================================================================== Methode "FleCpy" (-29-) Datendateien flexibel bearbeiten (compress,expand,reduce,uncomp) Die Kombination der Optionen ist bereits geprueft. Optionen: 1 - requested action is 'Expand' (e) 2 - requested action is 'Reduce' (r) 3 - requested action is 'Compress' (c) 4 - requested action is 'Inflate' (i) 5 - create target-directory if needed (o) 6 - Datei-Maske im Windows-Style spezifiziert (n) 7 - Datenvergleich beachtet Gross-/Kleinschreibung (p) 8 - Modification-value for filename is present (z) 9 - processing-mode is 'block-mode' (b) 10 - modify filetype from 'Ascii' to 'Unicode' or vice versa 16 - Extended output to LOG (-d,Hidden) Extended Options (FoX): 0 - Filetype is 'Ascii' (a) (Text-file) 1 - Filetype is 'Unicode' (u) (Text-file) 2 - Filetype is 'Shape' (s) 3 - Filetype is 'World' (w) 4 - Filetype is 'Tile' (t) 5 - Filetype is 'Route' ($File:Route) 6 - Filetype is 'GTS' ($File:GTS) 7 - Filetype is 'LTS' ($File:LTS) 8 - Filetype is 'Idx' ($File:Idx) 9 - Filetype is 'ws' ($File:WorldSound) 10 - Filetype is 'TDB' ($File:DataBase) 11 - Filetype is 'TIT' ($File:XIT) 12 - Filetype is 'sig' ($File:Signal) 13 - Filetype is 'act' ($File:Activity) 14 - Filetype is 'pat' ($File:Pat) 15 - Filetype is 'srv' ($File:Srv) 16 - Filetype is 'trf' ($File:Trf) 17 - Filetype is 'sms' ($File:Sound) 18 - Filetype is 'env' ($File:Environment) 19 - Filetype is 'ssc' ($File:SoundSource) 20 - Filetype is 'ttp'! ($File:TType) 21 - Filetype is 'car'! ($File:CarS) 22 - Filetype is 'for'! ($File:Forests) 23 - Filetype is 'gty' ($File:Gantry) 24 - Filetype is 'spp' ($File:Speedpost) 25 - Filetype is 'tpl' ($File:Telepole) 26 - Filetype is 'haz' ($File:Hazard) 27 - Filetype is 'mkr' ($File:Marker) 28 - Filetype is 'ref' ($File:Ref) 29 - Filetype is 'con' ($File:Consist) Remark: Files signed with '!' cannot be tokenized ##FleCpy/##fcpy (Eyecatcher) =====================================================================
protected static int tstSig(boolean Lgapp)
===================================================================== Method "tstSig" (-30-) Check configuration of signals-objects Options: ##tstSig (Eyecatcher) =====================================================================
protected static int Insert(boolean Lgapp)
===================================================================== Methode "Insert" (-??-) Streckenobjekte zusammenmischen Optionen: 4 - Kopieren der Puffer gefordert 7 - 'StaticDetailLevel' modifizieren 16 - Extended output to LOG (-d,Hidden) ##Insert (Eyecatcher) ===> ACHTUNG: Diese Methode befindet sich noch in Entwicklung <=== =====================================================================
protected static TSRoute getRte(java.lang.String Nme, int typ)
===================================================================== Method "getRte" Analyse and check route-/system-definition Typ: 0 - 'Nme' specifies Systempath 1 - 'Nme' specifies Routepath, kein Zielverzeichnis >1 - 'Nme' specifies Routepath, Zielverzeichnis gefordert 2 - 'Nme' specifies Routepath, create 'newRoute' ONLY the following values may be multiplied to create multiple folders: 3 - 'Nme' specifies Routepath, add. create 'newRoute/world' 5 - 'Nme' specifies Routepath, add. create 'newRoute/tiles' 7 - 'Nme' specifies Routepath, add. create 'newRoute/lo_tiles' 11 - 'Nme' specifies Routepath, add. create 'newRoute/TD' 13 - 'Nme' specifies Routepath, add. create 'newRoute/Sound' ##getRte (Eyecatcher) =====================================================================
protected static int putRte(TSRoute cRte, java.io.File tdat)
===================================================================== Method "putRte" Create and write route-definition-basis-file (.trk) ##putRte (Eyecatcher) =====================================================================
protected static java.lang.String getPos(TSBuf cB, boolean hgt, boolean chk)
===================================================================== Method "getPos" Check position-definition and create positionobject if successful. Format of (extended) position is: 'qx qz x z' or 'qx qz x y z' Attention: 'RetVal' will obtain the result-object Attention: Method shares message-IDs with 'chkPos()'-method Methode is referenced within: 'getRte()', 'getWrld()', 'getDBF()', 'getActF()' 'getActEv()', 'getPatF()' ##getPos (Eyecatcher) =====================================================================
protected static int getTS(java.io.File dat, java.io.File ShD)
===================================================================== Methode "getTS" Laden der Datei 'tsection.dat' (globale Form) in den Speicher 'ShTab' erhaelt Shape-Definitionen 'ScTab' erhaelt Section-Definitionen 'ScN' erhaelt max. Anzahl der Section-Definitionen 'ShN' erhaelt max. Anzahl der Shape-Definitionen 'c3' erhaelt Anzahl der Saetze in der Datei 'c2' erhaelt akuelle Anzahl der Section-Definitionen 'c4' erhaelt aktuelle Anzahl der Shape-Definitionen Beziehungen : ScN = ScTab.length, ShN = ShTab.length Shape-Optionen: 2 - RoadShape() 3 - TunnelShape() 5 - ManualJunctionShape() 7 - CrossoverShape() ##getTS (Eyecatcher) =====================================================================
protected static int getTSL(TSRoute cRte, int ScB, int ShB)
===================================================================== Methode "getTSL" Laden der Datei 'tsection.dat' (lokale Form) in die Routendefinition >Datei oeffnen, Tabele laden und Ergebnis pruefen 'mc'(c1) erhaelt maximale Anzahl der Section-Definitionen (Sc?) 'ac'(c2) erhaelt aktuelle Anzahl der Section-Definitionen 'mp'(c3) erhaelt maximale Anzahl der Pfad-Definitionen (Sh?) 'ap'(c4) erhaelt aktuelle Anzahl der Pfad-Definitionen ##getTSL (Eyecatcher) =====================================================================
protected static int chkTSL(TSRoute cRte, int ic, int ih)
===================================================================== Methode "chkTSL" Pruefen der LOKALEN 'tsection.dat' - Definitionen Neben der Pruefung wird auch die neue Nummerierung vergeben. Routine liefert die neue Anzahl der Section-Definitionen oder '0' Die naechsten freien Indices fuer Sections und Shapes werden in die Route eingetragen (obere Grenzen) ACHTUNG: Tabellen beginnen fest bei Index 'ScA' bzw. 'ShA' Attention: This method MUST NOT be invoked unless worldfiles AND database (track/road) is stored again (or neither). ##chkTSL (Eyecatcher) =====================================================================
protected static int putTSL(TSRoute cRte, TSRoute rRte, boolean OV)
===================================================================== Methode "putTSL" Lokale 'tsection-dat'-Datei neu erstellen/schreiben Wenn kein 'Merge' vorliegt sollten 'cRte' und 'rRte' identisch sein! Achtung: Werte fuer 'ScN' und 'ShN' muessen gesetzt sein ##putTSL (Eyecatcher) =====================================================================
protected static int getWF(TSRoute cRte, boolean KM)
===================================================================== Methode "getWF" Load ALL 'World'-files from world-directory and check syntax of entries. ATTENTION: This method needs 'OLD'-version of 'tsection.dat'-file. The shape- and the section-table must be loaded. Also, the number of entries of these tables must be correct. Variables: ScA,ShA,ShTab ATTENTION: if an error is discovered (syntactical or content) the object is NOT inserted into the list of world-objects. So, there is no index-gap within defined world-objects. ATTENTION: Method uses (and modifies) global varaibles: c4, c5 ATTENTION: global TreeSet 'gS' is used if defined (NOT 'null'): File-names of all world-files, which are no longer used, are added to the list. So they may be deleted. ##getWF (Eyecatcher) =====================================================================
protected static int getWrld(java.io.File dat, TSQDef cQDf, TSRoute cRte, boolean KM)
===================================================================== Method "getWrld" Load ONE world-file and check syntax of definition ATTENTION: This method needs 'OLD'-version of 'tsection.dat'-file. The shape- and the section-table must be loaded. Also, the number of entries of these tables must be correct. Variables: ScA,ShA,ShTab ATTENTION: if an error is discovered (syntactical or content) the object is NOT inserted into the list of world-objects. So, there is no index-gap within defined world-objects. ATTENTION: Method uses (and modifies) global varaibles: c4, c5 ##getWrld (Eyecatcher) =====================================================================
protected static TSView getVS(TSBuf cB)
===================================================================== Method "getVS" Read complete viewSphere-definition(-chain) (recursive) Method is used within: 'getWrld()' Method returns address of the topmost element of the new (sub)chain of viewsheres. Bracket-level (entry): next character inside vs-block Pos = after keyword 'viewdbsphere(' Bracket-level (exit): next char AFTER closing bracket of vs-block Global Counter: c4 - maximum allowed value for viewsphere-ID (x-1) c5 - current recursion-level within viewsphere-chain ##getVS (Eyecatcher) =====================================================================
protected static java.lang.String chkPos(TSBuf cB, TSSnd cF, java.util.ArrayList<java.lang.String> EL)
===================================================================== Method "chkPos" Check position-definition and create positionobject if successful. Format of position is: 'x y z' Method can generate MORE than one error-message Attention: 'RetVal' will obtain the result-object Attention: Method shares message-IDs with 'getPos()'-method Methode is referenced within: 'getWrld()', 'getSnd()', getITF(), getItem() ##chkPos (Eyecatcher) =====================================================================
protected static java.lang.String getQDir(TSBuf cB)
===================================================================== Method "getQDir" Load direction-values from Sub-Entry 'QDirection' and check them Attention: 'RetVal' will obtain the result-object Methode is referenced within: 'getWrld()', 'getSnd()' Background: 'Quaternions' uses Ax = X-Component of rotationvector (0..1) Ay = Y-Component of rotationvector (0..1) Az = Z-Component of rotationvector (0..1) w is rotation-angle of vector(0..2pi) relative to 'North' Relation1: Ax*Ax + Ay*Ay + Az*Az == 1 Relation2: fa*fa + fb*fb + fc*fc + fd*fd == 1 ##getQDir (Eyecatcher) =====================================================================
protected static void chkWrld(TSRoute cRte, TSNameSet Nme, int mde)
===================================================================== Methode "chkWrld" gespeicherte World-Dateien bearbeiten und Fehler melden Neuer Ausgabe-Modus einstellen, falls gefordert ACHTUNG: Der Modus kann mit Optionen ueberlagert werden (+128,+64,..), die vor der Auswertung abgetrennt werden muessen ##chkWrld (Eyecatcher) =====================================================================
protected static int insShE(TSTrkObj cU, java.lang.String cFn)
===================================================================== Methode "insShE" Search name of shape within table of shapes and insert appropriate element into TSTrkObj-object if found. Function returns IDX-number of inserted shape or '-1'. ##insShE (Eyecatcher) =====================================================================
protected static int chkItm(TSWrld cObj, TSRoute cRte, int db, java.lang.String txt)
===================================================================== Methode "chkItm" IT-Referenz eines World-Eintrags pruefen und vervollstaendigen Methode wird in 'chkWorld()' und 'chkSnd()' benutzt! ##chkItm (Eyecatcher) =====================================================================
protected static int chkPath(TSArrList pl, java.lang.String cFn, java.lang.String[] prm)
===================================================================== Methode "chkPath" Check filename if it contains a valid path-prefix due to list within pl. Function returns length of path-prefix within the filename (or '0'). Attention: 'RetVal' will get the (whole)path-prefix used. ##chkPath (Eyecatcher) =====================================================================
protected static java.lang.String chkSrt(TSWrld cObj, java.lang.String txt)
===================================================================== Methode "chkSrt" Check sequence of TSTrItem-elements and correct it if neccessary Attention: It is already verified that this entry contains exactly two valid TrItem-references(TrackDB)! ##chkSrt (Eyecatcher) =====================================================================
protected static int chgTrk(TSRoute cRte, TSData cCtl, int ofs)
===================================================================== Methode "chgTrk" Schienendefinitionen ('TrkObj','Dyntrack') modifizieren Statische Schiene aktivieren/deaktivieren, falls gefordert Methode wird von BEIDEN Versionen (h,f) genutzt. ##chgTrk (Eyecatcher) =====================================================================
protected static int rcvWrld(TSRoute cRte, TSData ctl)
===================================================================== Methode "rcvWrld" Hidewire-Objekte in World-Dateien restaurieren Achtung: Alle definierten Pfad-Definitionen (global Option 'p') werden benutzt. ##rcvWrld (Eyecatcher) =====================================================================
protected static int modWrld(TSRoute cRte, TSData ctl, boolean optZ)
===================================================================== Methode "modWrld" Restore Filenames of Track-objects. Remove path if needed. Attention: All specified path-definitions (global Option 'p') are used to identify path. ##modWrld (Eyecatcher) =====================================================================
protected static int putWF(TSRoute cRte, java.io.File tdat, boolean chg, boolean clr)
===================================================================== Method "putWF" Write ALL world-files again ##putWF (Eyecatcher) =====================================================================
protected static final int putWrld(java.io.File dat, TSQDef cQDf, boolean chg, boolean clr)
===================================================================== Method "putWrld" Write ONE world-file modified to output-file Attention: 'RetVal' will additionally return the number of errors ##putWrld (Eyecatcher) =====================================================================
protected static java.lang.String putVS(TSFile cF, TSView cVS, int lvl)
===================================================================== Method "putVS" write ViewSphere-Entries (recursive) Usage from: putWrld() ##putVS (Eyecatcher) =====================================================================
protected static int getSF(TSRoute cRte, boolean KM)
===================================================================== Methode "getSF" Load ALL 'Sound'-files from world-directory and check syntax of entries. ATTENTION: if an error is discovered (syntactical or content) the object is NOT inserted into the list of sound-objects. So, there is no index-gap within defined sound-objects. ##getSF (Eyecatcher) =====================================================================
protected static int getSnd(java.io.File dat, TSQDef cQDf, TSRoute cRte, boolean KM)
===================================================================== Method "getSnd" Load ONE sound-file and check syntax of definition ATTENTION: if an error is discovered (syntactical or content) the object is NOT inserted into the list of sound-objects. So, there is no index-gap within defined sound-objects. ##getSnd (Eyecatcher) =====================================================================
protected static int chkSnd(TSRoute cRte, TSNameSet Nme, int mde)
===================================================================== Methode "chkSnd" gespeicherte Sound-Dateien bearbeiten und Fehler melden ##chkSnd (Eyecatcher) =====================================================================
protected static int putSF(TSRoute cRte, java.io.File tdat, boolean chg)
===================================================================== Method "putSF" Write ALL sound-files (world-version) again ##putSF (Eyecatcher) =====================================================================
protected static final int putSnd(java.io.File dat, TSQDef cQDf, int chg)
===================================================================== Method "putSnd" Write ONE sound-file (world-version) modified to output-file Attention: 'RetVal' will additionally return the number of errors ##putSnd (Eyecatcher) =====================================================================
protected static int getDBF(TSRoute cRte, int typ)
===================================================================== Method "getDBF" Laden der Schienen- oder Strassendatenbank und Syntax pruefen TDB/RDB Datenbank in Zwischenverzeichnis laden Es wird fuer JEDEN Eintrag in der TrNode-DB ein Eintrag angelegt. Im Fehlerfall ist dies ein Fehler-(leerer) Eintrag. Damit entsteht eine 1:1-Zuordnung zwischen Eintraegen und Datei Fehlende Eintraege in der TrNode-DB erzeugen KEINEN Dummy-Eintrag Achtung: UNBEKANNTE Typen in der TrItem-Tabelle werden als 'null'-Eintrag gespeichert. Wenn der Typ gueltig ist und der TrItemId-Wert nicht bekannt ist, wird der INDEX als ID benutzt. ##getDBF (Eyecatcher) =====================================================================
protected static int getITF(TSRoute cRte, int typ)
===================================================================== Methode "getITF" Laden der Schienen- oder Strassendatenbank (IT) und Syntax pruefen ##getITF (Eyecatcher) =====================================================================
protected static java.lang.String getDBUid(TSBuf cB, TSVector cNde, boolean v)
===================================================================== Method "getDBUid" Reading of an UiD-Definition from Track-/Road-database Method is called from within: 'getDBF()' ##getDBUid (Eyecatcher) =====================================================================
protected static java.lang.String getDBPins(TSBuf cB, TSTrNde cTrN)
===================================================================== Method "getDBPins" Lesen von Node-Verkettungen aus der Schienen-/Strassen-Datenbank Wird ausschliesslich in 'getDBF()' benutzt! ##getDBPins (Eyecatcher) =====================================================================
protected static int getItNr(TSBuf cB, java.lang.String txt)
===================================================================== Method "getItNr" Check TrItemID of a TrItem-table-entry and return ID Method returns a value <0 if an error is found Method used within: 'getDBF()', 'getITF()' ##getItNr (Eyecatcher) =====================================================================
protected static int getItem(TSBuf cB, TSTrItm cIt, java.util.ArrayList<TSTrNde> TrN, java.lang.String txt)
===================================================================== Method "getItem" Check Arguments of a TrItem-Entry and fill TrItem-object Result: <0 if EOF found, ==0 if OK, >0 else Method is called from: 'getDBF()' ##getItem (Eyecatcher) =====================================================================
protected static int chkDBTab(TSRoute cRte, int typ)
===================================================================== Methode "chkDBTab" Tabelle der Schienen-/Strassendatenbank auf Integritaet pruefen Arbeitsmodus ungerade --> Strassendatenbank Modus: 0,1 - alle Nodes/TrItems muessen vorhanden sein 2,3 - Nodes zusammenschieben, alle TrItems muessen existieren 4,5 - alle Luecken in Nodes/TrItems entfernen 6,7 - alle Luecken in Nodes/TrItems entfernen, nicht referenzierte TrItems uebergehen/loeschen Achtung: Fuer Typ=0,1 gelten auch fehlende Nodes/Items als benutzt! Hinweis: Die Belegung der DB-Slots ist LUECKENLOS ACHTUNG: Der Modus kann mit Optionen ueberlagert werden (+16,+32,..), die vor der Auswertung abgetrennt werden muessen ##chkDBTab (Eyecatcher) =====================================================================
protected static int putDBF(TSRoute cRte, java.io.File datz, int t)
===================================================================== Methode "putDBF" Schienen-/Strassendatenbank neu und modifiziert ausgeben ROAD-database is marked with a odd type-value (t) 'Overwrite' is signalled with 'datz!=null'. Then the original file is overwritten. In the other case a copy is created within destination-path. ATTENTION: Type-value (t) may be overlayed with options (+16,+32,..), which must be separated first. ##putDBF (Eyecatcher) =====================================================================
protected static int putITF(TSRoute cRte, java.io.File datz, int t, boolean clr)
===================================================================== Methode "putITF" Schienen-/Strassendatenbank (.?it) neu und modifiziert ausgeben ROAD-database is marked with a odd type-value (t) 'Overwrite' is signalled with 'datz!=null'. Then the original file is overwritten. In the other case a copy is created within destination-path. ATTENTION: Type-value (t) may be overlayed with options (+16,+32,..), which must be separated first. ##putITF (Eyecatcher) =====================================================================
protected static int creTDCtl(TSRoute cRte, boolean lo)
===================================================================== Methode "creTDCtl" TD-Steuerungsdatei erstellen (falls nicht vorhanden) ##creTDCtl (Eyecatcher) =====================================================================
protected static int getTDF(TSRoute cRte, int t)
===================================================================== Method "getTDF" Read TD-Definitons Method uses global class 'TSTemp' (stored in 'gT') to transfer variables/values from 'getTDF()' to 'getTD()' ##getTDF (Eyecatcher) =====================================================================
protected static int getTD(int Qx, int Qz, int Ql)
===================================================================== Method "getTD" Read TD-Quad's (tile-definitions) and process them Method is used recursively and is ONLY called from within 'getTDF()'! ##getTD (Eyecatcher) =====================================================================
protected static int putTDF(TSRoute cRte, java.io.File dat, int t)
===================================================================== Method "putTDF" Write TD-Definitonen again Method uses global variables 'vn2', 'gB', 'gC', 'gD' and 'gF' to transfer variables/values from 'putTDF()' to 'putTD()' Attention: Global array 'gP' must contain file-prefix of controlfile. ##putTDF (Eyecatcher) =====================================================================
protected static boolean putTD(TSTileC cTle)
===================================================================== Methode "putTD" rekursive Aufbereitung der Tile-Definitionen aus Baumstruktur Methode wird ausschliesslich in 'putTDF()' benutzt! ##putTD (Eyecatcher) =====================================================================
protected static int mveTile(TSTile cTle, java.io.File sDir, java.io.File zDir, double dy, TSNameSet Lst, boolean red, boolean cpy)
===================================================================== Method "mveTile" Copy tile-definiton and connected data-files from source- to target-directory. Modify tile (names) due to tile-definition and requested actions. Copy buffer-files if requested. Method returns number of modified lines within*.t-file or '-1' if an error occurred. Method uses (preinitialized) counter 'c4' which is incremented by the number of files, which are copied. ##mveTile (Eyecatcher) =====================================================================
protected static java.lang.String cpyTile(TSRoute cRte, boolean TleT, boolean cpyB)
===================================================================== Method "cpyTile" Copy ALL valid Tile-definitions from source-directory to target-directory. Include buffer-files if requested. ACHTUNG: - 'mveTile' nutzt den Zaehler 'c4'. 'c4' wird um Anzahl der bearbeiteten Tile-Dateien erhoeht! Attention: If a tile is flagged, it is NOT copied. ##cpyTile (Eyecatcher) =====================================================================
protected static int getActF(TSRoute cRte, boolean nocr)
===================================================================== Method "getActF" Load ALL Activity-Definitions of a route into memory ##getActF (Eyecatcher) =====================================================================
protected static int getActDef(TSBuf cB, TSXtSrv cSrv, int ec, java.lang.String prL, java.lang.String prK)
===================================================================== Method "getActDef" Load Service-Definition (Activity) and store into class Method is referenced from 'getAct()'! Method uses 2 modes (player/traffic). If argument 'prK' contains a '#' as first charcter traffic-mode is used. (else 'Player') Both modes read the A-version of a service. All stops within this service are read and stored into the service. If 'Player'-mode is used a T-version of the service is also read and all stops of the A-version are correlated to the T-version. Then all additional data from the T-version are moved to the A-version and the T-version is deleted again. Attention: Length of String 'prK' must be '>0' Attention: Method stores current/updated error-counter to 'RetVal'. Return-CC used are: 0 and 1..18 ##getActDef (Eyecatcher) =====================================================================
protected static int getActEv(TSBuf cB, java.util.TreeSet<TSActEv> EvT, int msk, int ec, java.lang.String prL, java.lang.String prK)
===================================================================== Methode "getActEv" Read Event-definition within Activity Method is used within: 'getAct()' Return-CC used are: 0 and 1..37 Within 'validation-mask' the following keyword-mapping is used: 0 'EventTypeTime' 1 'EventTypeLocation' 2 'EventTypeAllStops' 3 'EventTypePickUpPassengers' 4 Aufnahme machen 5 'EventTypeReachSpeed' 6 'EventTypePickUpWagons' 7 'EventTypeDropOffWagonsAtLocation' 8 'EventTypeAssembleTrain' 9 'EventTypeAssembleTrainAtLocation' 10 'ID' 11 'Activation_Level' 12 'Outcomes' 13 'TextToDisplayOnCompletionIfTriggered' 14 'TextToDisplayOnCompletionIfNotTriggered' 15 'TextToDisplayDescriptionOfTask' 16 'Reversable_Event' 17 'Name' 18 'Time' 19 'Location' 20 'TriggerOnStop' 21 'StationStop' 22 'Speed' 23 'Wagon_List' 24 'SidingItem' Within 'Outcomes' the following 'Action-ID' is used: 0 'IncActLevel' () 1 'DecActLevel' ( ) 2 'ActivateEvent' ( ) 3 'RestoreActLevel' ( ) 4 'DisplayMessage' ( ) 5 'ActivitySuccess' 6 'ActivityFail' ( ) 7 'StartIgnoringSpeedLimits' 8 'StopIgnoringSpeedLimits' ##getActEv (Eyecatcher) =====================================================================
protected static int getTrfDef(TSBuf cB, java.util.ArrayList<TSStStp> StpT, int ec, java.lang.String pref)
===================================================================== Method "getTrfDef" Load Traffic-Definition and store into 'StationStop'-list Method is referenced from 'getActDef()' and 'getTrfF()'! Attention: Method stores current/updated error-counter to 'RetVal'. Return-CC used are: 0 and 1..9 Prime-number-ID of (accepted) keywords are: 2 - ArrivalTime 3 - DepartTime 5 - SkipCount 7 - DistanceDownPath 11 - PlatformStartID ##getTrFDef (Eyecatcher) =====================================================================
protected static int getTrain(TSBuf cB, TSTrain cTrn, int ec, java.lang.String prL, java.lang.String prK)
===================================================================== Methode "getTrain" Read Train-definiton (Act/Consist) into memory, starting within 'TrainCfg'-definition after name has been read. Method is used within: 'getAct()', 'getSrv()' Return-CC used are: 0 and 1..37 ##getTrain (Eyecatcher) =====================================================================
protected static int getTrWgn(TSBuf cB, java.util.ArrayList<TSRefC> TOT, int ec, java.lang.String pr, java.lang.String prE)
===================================================================== Methode "getTrWgn" Read Train-definiton (Act/Consist) into memory Method is used within: 'getTrain()' Return-CC used are: 0 and 1..13 ##getTrWgn (Eyecatcher) =====================================================================
protected static int chkAct(TSRoute cRte, boolean chg)
===================================================================== Methode "chkAct" Check and complete all activity-definitions of the route. Attention: Traffic-definitions must be checked first ##chkAct (Eyecatcher) =====================================================================
protected static int putActF(TSRoute cRte, java.io.File tdat, int opt)
===================================================================== Method "putActF" Write all activity-definitions (modified) of a route Prime-number-options used with 'opt': 2 - create files without errors ONLY 3 - 'noreplace' - Service must not already exist ##putActF (Eyecatcher) =====================================================================
protected static int getPatF(TSRoute cRte, boolean nocr)
===================================================================== Method "getPatF" load ALL path-definions of all activities ##getPatF (Eyecatcher) =====================================================================
protected static int chkPat(TSRoute cRte)
===================================================================== Methode "chkPat" Path-Definitionen einer Route pruefen und Referenzen erzeugen ##chkPat (Eyecatcher) =====================================================================
protected static int putPatF(TSRoute cRte, java.io.File tdat, int opt)
===================================================================== Method "putPatF" Write (modified) ALL path-definitions of a route ATTENTION: If modifications are included in the target-files, the files cannot be used as pathdefinitions any longer. Prime-number-options used with 'opt': 2 - create files without errors ONLY 3 - 'noreplace' - Path must not exist 5 - include extensions (modifications)? 7 - ONLY write files which height-values have been corrected ##putPatF (Eyecatcher) =====================================================================
protected static int getSrvF(TSRoute cRte, boolean nocr)
===================================================================== Methode "getSrvF" alle Service-Definitionen einer Route laden ##getSrvF (Eyecatcher) =====================================================================
protected static int chkSrv(TSRoute cRte, boolean chg)
===================================================================== Methode "chkSrv" Service-Definitionen einer Route pruefen und Referenzen erzeugen ##chkSrv (Eyecatcher) =====================================================================
protected static int putSrvF(TSRoute cRte, java.io.File tdat, int opt)
===================================================================== Method "putSrvF" Write all service-definitions of a route Prime-number-options used with 'opt': 2 - create files without errors ONLY 3 - 'noreplace' - Service must not already exist ##putSrvF (Eyecatcher) =====================================================================
protected static int chkCon(TSRoute cRte)
===================================================================== Methode "chkCon" Check consist-definitions ##chkCon (Eyecatcher) =====================================================================
protected static int getTrfF(TSRoute cRte, boolean nocr)
===================================================================== Methode "getTrfF" alle Traffic-Definitionen einer Route laden ##getTrfF (Eyecatcher) =====================================================================
protected static int chkTrf(TSRoute cRte, boolean chg, boolean hMsg)
===================================================================== Methode "chkTrf" Traffic-Definitionen einer Route pruefen und Referenzen erzeugen ##chkTrf (Eyecatcher) =====================================================================
protected static int putTrfF(TSRoute cRte, java.io.File tdat, int opt)
===================================================================== Method "putTrfF" Write all traffic-definitions of a route Prime-number-options used with 'opt': 2 - create files without errors ONLY 3 - 'noreplace' - Service must not already exist ##putTrfF (Eyecatcher) =====================================================================
protected static int getSCfg(TSRoute cRte, java.io.File dat, TSNameSet Nme, boolean wMsg)
===================================================================== Methode "getSCfg" Read complete Signal-Configuration-File and store it. ##getSCfg (Eyecatcher) =====================================================================
protected static int getSScr(TSRoute cRte, TSRoute sRte)
===================================================================== Methode "getSScr" Signalscript-Definitionen einlesen, Existenz markieren ##getSScr (Eyecatcher) =====================================================================
protected static int putSCfg(TSRoute cRte, java.io.File datz)
===================================================================== Methode "putSCfg" Signal-Konfigurationsdatei modifiziert neu erstellen ##putSCfg (Eyecatcher) =====================================================================
protected static int getType(TSRoute cRte)
===================================================================== Method "getType" Read Sound-file 'ttype.dat' and check syntax ##getType (Eyecatcher) =====================================================================
protected static int putType(TSRoute cRte)
===================================================================== Methode "putType" Sound-Datei 'ttype.dat' schreiben ##putType (Eyecatcher) =====================================================================
protected static int getSpp(TSRoute cRte, TSNameSet Lst)
===================================================================== Method "getSpp" Read file 'Speedpost.dat', check Syntax If namelist is NOT specified, no registration of mentioned shape- names takes place. ##getSpp (Eyecatcher) =====================================================================
protected static int getMF(TSRoute cRte)
===================================================================== Methode "getMF" Marker-Datei der Strecke einlesen und pruefen ##getMF (Eyecatcher) =====================================================================
protected static int getRF(TSRoute cRte, TSNameSet Nme)
===================================================================== Methode "getRF" Read Ref-File of route and check it Keywords are using the following ID-numbers: 0 : Class 1 : Description 2 : FileName 3 : Shadow 4 : Align 5 : 6 : 7 : PickupType 8 : StoreMatrix 9 : NoDirLight 10 : TunnelEntrance 11 : AnimShape 12 : ##getRF (Eyecatcher) =====================================================================
protected static int putRF(TSRoute cRte, java.io.File datz)
===================================================================== Methode "putRF" Write Ref-File of route again ##putRF (Eyecatcher) =====================================================================
protected static int putObj(TSRoute cRte)
===================================================================== Methode "putObj" Objektdefinitionen fuer weitere, spaetere Bearbeitung speichern Routine schreibt Objekte: Version, ScTab, ShTab, P.Route ##putObj (Eyecatcher) ===> ACHTUNG: Diese Methode befindet sich noch in Entwicklung <=== =====================================================================
protected static final boolean actOFle(TSBuf cB, java.lang.String msg, boolean mde)
===================================================================== Methode "actOFle" Activate read-mode to use an optionfile for option-input. Attention: method uses and modifies global values: gF Method returns 'true' if an error occurs. ##actOFle (Eyecatcher) =====================================================================
protected static final java.lang.String addStr(java.lang.String src)
===================================================================== Methode "addStr" Creates a valid 'String' from argument This function surrounds the result with '"' in any case (also compare to 'modStr()' which uses this method to modify the string) ##addStr (Eyecatcher) =====================================================================
private static final void askTerm()
===================================================================== Methode "askTerm" Aufforderung ausgeben, das Programm abzubrechen falls ein Ueberschreiben der Daten nicht gewollt. ##askTerm (Eyecatcher) =====================================================================
protected static final TSLogg chkLog(java.lang.String dn)
===================================================================== Methode "chkLog" Ueberpruefen, ob Dateiname zum Log benutzt werden kann und erzeugen Logging-Objekt falls erfolgreich Methode liefert 'null' wenn Dateiname fehlerhaft! ##chkLog (Eyecatcher) =====================================================================
protected static final int chkNum(java.lang.String s, int b, int e)
===================================================================== Methode "chkNum" Prueft das Vorhandensein einer (Integer-) Nummer und konvertiert diese. Die Nummer MUSS mit Vorzeichen versehen sein und eine genau festgelegte Position und Laenge haben. Falls ein Fehler auftritt wird 'MIN_VALUE' geliefert. ##chkNum (Eyecatcher) =====================================================================
protected static final java.lang.String chkOFle(java.lang.String cC, java.lang.String msg)
===================================================================== Methode "chkOFle" check optionfile and disable if EOF, return next option-command Attention: method uses and modifies global values: gF ##chkOFle (Eyecatcher) =====================================================================
protected static final java.lang.String[] cnvInt(int... v)
===================================================================== Method "cnvInt" Converts an array of integer-values into an array of Strings. Method returns a Stringarray of equal size. ##cnvInt (Eyecatcher) =====================================================================
protected static int cpyDat(java.io.File dir1, java.io.File dir2, java.io.File dir3, int c)
===================================================================== Method "cpyDat" Copy files recursively (whole tree) Method returns number of already copied files. Method is called from : 'dcopy()' ##cpyDat (Eyecatcher) =====================================================================
private static final int exec(boolean sh, java.lang.String cmd, java.io.File vz, TSLogg Lg)
===================================================================== Methode "exec" ##exec (Eyecatcher) =====================================================================
protected static java.lang.String getDate(long ct, boolean ext)
===================================================================== Methode "getDate" Get and format a date-value to a string (German version). This may be the current date. ##getDate (Eyecatcher) =====================================================================
protected static final java.lang.String getEnv(java.lang.String key, boolean mde)
===================================================================== Method "getEnv" This methods requests the registry an resolves an environment- variable. If 'mde==true' a value of 'null' is returned in case of error. If 'mde==false' and an error occurs, an appropriate error-message is returned. Attention: If the requested variable is NOT found 'null' is returned in both cases. Call: result = getEnv(name,true); get requested result if(result==null) { error-marker was returned result = getEnv(name,false); get appropriate message if(result==null) ... variable was not found else print error-message from 'result' } error occurred ##getEnv (Eyecatcher) =====================================================================
protected static TSOpts getLvlMsk(java.lang.String s)
===================================================================== Methode "getLvlMsk" Convert a StaticDetailLevel-expression into a mask. supports ranges (e.g. 0-3) and listings (e.g. 0,1,2) or both ##getLvlMsk (Eyecatcher) =====================================================================
protected static final java.lang.String getPrnt(java.lang.String src, java.lang.String ext)
===================================================================== Method "getPrnt" Return a modified string used for printing the basic command. ##getPrnt (Eyecatcher) =====================================================================
protected static final java.lang.String modStr(java.lang.String src)
===================================================================== Methode "modStr" Creates a valid 'String' from argument if it contains characters, which requires surrounding quotes ##modStr (Eyecatcher) =====================================================================
protected static boolean prExtD(TSRoute cRte)
===================================================================== Methode "prExtD" erweiterte Druckausgaben erstellen ##prExtD (Eyecatcher) =====================================================================
private static final void prStart(java.lang.String key, java.lang.String... prm)
===================================================================== Methode "prStart" Aufbereiten Vorlauf und Ausgeben Methode nutzt globale Variablen 'Lg','Kdo','SpVers' und 'Fo' ##prStart (Eyecatcher) =====================================================================
protected static java.lang.String putFV(double v, int c)
===================================================================== Methode "putFV" (Version mit Runden) Double-Zahl aufbereiten fuer Ausgabe Wenn c>0 ist wird der Wert vor dem Aufbereiten auf c Nachkommastellen gerundet ACHTUNG: Es wird immer ein fuehrendes Blank geliefert ##putFV (Eyecatcher) =====================================================================
protected static java.lang.String prFN(int w1, int w2, int fl)
===================================================================== Methode "prFN" Zahlenaufbereitung fuer Dateinamen (World, Sound,... ) ##prFN (Eyecatcher) =====================================================================
protected static double round(double w, int c)
===================================================================== Methode "round" 'double-Wert' auf n-Nachkomma-Stellen runden ##round (Eyecatcher) =====================================================================
protected static final java.lang.String setPrfx(int l)
===================================================================== Methode "setPrfx" Create a prefix-definition of an output-line and return it as String ##setPrfx (Eyecatcher) =====================================================================
protected static java.lang.String toHex(long w, int l)
===================================================================== Methode "toHex" Long/Integer-Zahl hexadezimal aufbereiten Die Ziel-Laenge ist angebbar und kann zwischen 1 und 16 liegen Wenn Laenge<0 werden grosse Buchstaben benutzt ##toHex (Eyecatcher) =====================================================================
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |