|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTSStStp
class TSStStp
.
====================================================================== Class TSStStp -- Definition of traffic-'StationStop' Attention: Normally, this class stores stops referenced from 'Traffic'-Definitions. Aditionally this class may be used to store stops referenced from 'Activity'-Definitions. Then, additional fields may contain valid contends. This object may be filled using 'getTrfDef()'-method ##TSStStp (Eyecatcher) ======================================================================
Field Summary | |
---|---|
private int |
ATime
|
private double |
Dist
|
private int |
DTime
|
private double |
Eff
|
protected static java.lang.String |
IdStr
|
private int |
PfID
|
private int |
SkCnt
|
private TSStop |
Stp
|
private boolean |
Trf
|
Constructor Summary | |
---|---|
protected |
TSStStp()
. |
protected |
TSStStp(double eff,
int id,
int sc,
double dst)
. |
protected |
TSStStp(int at,
int dt,
int id,
int sc,
double dst)
. |
protected |
TSStStp(TSStop cSt)
. |
protected |
TSStStp(TSStStp cStp)
. |
Method Summary | |
---|---|
protected int |
chkSkip(int w)
. |
int |
compareTo(TSStStp vH)
. |
protected int |
corrS(TSStop cSt)
. |
protected int |
corrT(TSStStp cStp)
. |
protected int |
crDef(java.util.ArrayList<java.lang.String> LneT,
boolean trf,
int nr,
java.lang.String prfx)
. |
protected TSStop |
crSrv()
. |
protected boolean |
mark(boolean chk)
. |
protected java.lang.String |
toStr()
. |
protected java.lang.String |
XXXgetVal(boolean srv)
. |
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 int ATime
private int DTime
private boolean Trf
private double Eff
private TSStop Stp
private int PfID
private int SkCnt
private double Dist
Constructor Detail |
---|
protected TSStStp()
===================================================================== Constructor: (1) Create Default-Entry =====================================================================
protected TSStStp(int at, int dt, int id, int sc, double dst)
===================================================================== Constructor: (2) Create Standard-Entry (Version T) =====================================================================
protected TSStStp(double eff, int id, int sc, double dst)
===================================================================== Constructor: (3) Create Standard-Entry (Version A) =====================================================================
protected TSStStp(TSStop cSt)
===================================================================== Constructor: (4) Create Entry (Version T) from Service-version (S) =====================================================================
protected TSStStp(TSStStp cStp)
===================================================================== Constructor: (5) Create correlated Entry (Version A) from Version (T) =====================================================================
Method Detail |
---|
protected final int chkSkip(int w)
===================================================================== Method "chkSkip" Check 'Skip-Value' if it is ascending. Return marker (negative value) if this not valid. Attention: if this method is called using '0' as the argument, the current 'Skip-Value' is returned (because the current value is always positive). ##chkSkip.TSStop (Eyecatcher) =====================================================================
public final int compareTo(TSStStp vH)
===================================================================== Method "compareTo" Method is used to sort Elements 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.TSStStp (Eyecatcher) =====================================================================
compareTo
in interface java.lang.Comparable<TSStStp>
protected final int corrS(TSStop cSt)
===================================================================== Method "corrS" Correlate A/T-version of a 'StationStop' with it's S-version. If a 'match is found both entries are connected together. If the current entry is already correlated, it cannot be correlated again. Attention: Method uses and modifies 'RetVal' Returns '0' if correlation was successful. However an errormessage may be created. Returns >0 if this (traffic-)record is an additional entry. Returns <0 if a traffic-definiton is missing. ##corrS.TSStStp (Eyecatcher) =====================================================================
protected final int corrT(TSStStp cStp)
===================================================================== Method "corrT" Correlate A-version of a 'StationStop' with it's T-version. If a 'match is found the time-values are copied to the A-version. Attention: Method uses and modifies 'RetVal' Returns '0' if correlation was successful. However an errormessage may be created. Returns >0 if this record is an additional entry. Returns <0 if a traffic-definiton is missing. ##corrT.TSStStp (Eyecatcher) =====================================================================
protected final int crDef(java.util.ArrayList<java.lang.String> LneT, boolean trf, int nr, java.lang.String prfx)
===================================================================== Method "crDef" (Version A/T) Create an output-line-block due to requested type ##crDef.TSStStp (Eyecatcher) =====================================================================
protected final TSStop crSrv()
===================================================================== Method "crSrv" Return the service-version of the StationStop-entry ##crSrv.TSStStp (Eyecatcher) =====================================================================
protected final java.lang.String XXXgetVal(boolean srv)
===================================================================== Method "getVal" (Version S/T) Convert a StationStop-Definition to a String (Errormessage). --- Method is NOT referenced until now. (marked by 'XXX...') --- ##getVal.TSStStp (Eyecatcher) =====================================================================
protected final boolean mark(boolean chk)
===================================================================== Method "mark" Mark a definition as 'invalid' (false) or check status (true) ##mark.TSStStp (Eyecatcher) =====================================================================
protected final java.lang.String toStr()
===================================================================== Method "toStr" Build a string-representation of all values of this class ##toStr.TSStStp (Eyecatcher) =====================================================================
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |