Class TSStStp

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

 class TSStStp
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<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

IdStr

protected static final java.lang.String IdStr
See Also:
Constant Field Values

ATime

private int ATime

DTime

private int DTime

Trf

private boolean Trf

Eff

private double Eff

Stp

private TSStop Stp

PfID

private int PfID

SkCnt

private int SkCnt

Dist

private double Dist
Constructor Detail

TSStStp

protected TSStStp()
.
=====================================================================
 Constructor: (1) Create Default-Entry
=====================================================================
  


TSStStp

protected TSStStp(int at,
                  int dt,
                  int id,
                  int sc,
                  double dst)
.
=====================================================================
 Constructor: (2) Create Standard-Entry (Version T)
=====================================================================
  


TSStStp

protected TSStStp(double eff,
                  int id,
                  int sc,
                  double dst)
.
=====================================================================
 Constructor: (3) Create Standard-Entry (Version A)
=====================================================================
  


TSStStp

protected TSStStp(TSStop cSt)
.
=====================================================================
 Constructor: (4) Create Entry (Version T) from Service-version (S)
=====================================================================
  


TSStStp

protected TSStStp(TSStStp cStp)
.
=====================================================================
 Constructor: (5) Create correlated Entry (Version A) from Version (T)
=====================================================================
  

Method Detail

chkSkip

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)
=====================================================================
  


compareTo

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)
=====================================================================
  

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

corrS

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)
=====================================================================
  


corrT

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)
=====================================================================
  


crDef

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)
=====================================================================
  


crSrv

protected final TSStop crSrv()
.
=====================================================================
 Method "crSrv"
 Return the service-version of the StationStop-entry
 ##crSrv.TSStStp (Eyecatcher)
=====================================================================
  


XXXgetVal

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)
=====================================================================
  


mark

protected final boolean mark(boolean chk)
.
=====================================================================
 Method "mark"
 Mark a definition as 'invalid' (false) or check status (true)
 ##mark.TSStStp (Eyecatcher)
=====================================================================
  


toStr

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