Class TSStop

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

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

.

======================================================================
 Class TSStop -- Definition of stops within stations
 Attention: This class is used for 'services' ONLY
 ##TSStop (Eyecatcher)
======================================================================
 


Field Summary
private  boolean DErr
           
private  double Dist
           
protected static java.lang.String IdStr
           
private  TSRefC PfID
           
private  int SkCnt
           
 
Constructor Summary
protected TSStop()
          .
protected TSStop(int id, int sc, double dst)
          .
 
Method Summary
protected  double chkDist(double d)
          .
protected  int chkID(int cNr)
          .
protected  int chkSkip(int w)
          .
 int compareTo(TSStop vH)
          .
protected  int crDef(java.util.ArrayList<java.lang.String> LneT, int nr, java.lang.String prfx)
          .
protected  int crDef(java.util.ArrayList<java.lang.String> LneT, int nr, java.lang.String msg, java.lang.String prfx)
          .
protected  TSTrItm fndTrI(TSRoute cR)
          .
protected  java.lang.String toStr()
          .
protected  TSRefC XXXchgID(TSTrItm cIt)
          .
 
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

SkCnt

private int SkCnt

Dist

private double Dist

PfID

private TSRefC PfID

DErr

private boolean DErr
Constructor Detail

TSStop

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


TSStop

protected TSStop(int id,
                 int sc,
                 double dst)
.
=====================================================================
 Constructor: (2) Create Standard-Entry
=====================================================================
  

Method Detail

XXXchgID

protected final TSRefC XXXchgID(TSTrItm cIt)
.
=====================================================================
 Method "chgID"
 Replace TrItem-Database for TrItem-reference within 'PfID'.
 Method returns the old platform-reference
 Method also stores new TrItem-NUMBER to 'RetVal' for error-
   processing.
 --- Method is NOT referenced until now. (marked by 'XXX...') ---
 ##chgID.TSStop (Eyecatcher)
=====================================================================
  


chkDist

protected final double chkDist(double d)
.
=====================================================================
 Method "chkDist"
 Check distance if it is ascending.
 Return marker (negative value) if this not valid.
 Attention: If this method is called using 'Double.NaN' as the
             argument, the current distance is returned.
 ##chkDist.TSStop (Eyecatcher)
=====================================================================
  


chkID

protected final int chkID(int cNr)
.
=====================================================================
 Method "chkID"
 Compare Numbers of Platform-ID
 Method returns '0' if ID-number is equal (else difference)
 (Also compare to methode 'Comparable.compareTo()')
 Attention: if this method is called using '0' as the argument,
            the current 'PlatformID' is returned.
 ##chkID.TSStop (Eyecatcher)
=====================================================================
  


chkSkip

protected final int chkSkip(int w)
.
=====================================================================
 Methode "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 >=0).
 ##chkSkip.TSStop (Eyecatcher)
=====================================================================
  


compareTo

public final int compareTo(TSStop 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.TSStop (Eyecatcher)
=====================================================================
  

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

crDef

protected final int crDef(java.util.ArrayList<java.lang.String> LneT,
                          int nr,
                          java.lang.String msg,
                          java.lang.String prfx)
.
=====================================================================
 Method "crDef" (Version S)
 Create an output-line-block as a 'Service-version'
 Method returns number of created error-messages
 ##crDef.TSStop (Eyecatcher)
=====================================================================
  


crDef

protected final int crDef(java.util.ArrayList<java.lang.String> LneT,
                          int nr,
                          java.lang.String prfx)
.
=====================================================================
 Method "crDef" (Version A/T)
 Create an output-line-block due to requested type
 ##crDef.TSStop (Eyecatcher)
=====================================================================
  


fndTrI

protected final TSTrItm fndTrI(TSRoute cR)
.
=====================================================================
 Method "fndTrI"
 Search TrItem-Database for TrItem-reference within 'PfID'.
   Register result within 'cRef'-entry if found.
 Method returns the connected TrItem-element to enable further
   checking.
 Method also stores current TrItem-NUMBER to 'RetVal' for error-
   processing if requested element is not found.
 ##fndTrI.TSStop (Eyecatcher)
=====================================================================
  


toStr

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