Class TSXtSrv

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

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

.

======================================================================
 Class TSXtSrv -- Definition of an 'extended' Service-Definition.
 This definition is used to store traffic-services which are used
   within traffic- and activity-definitions.
 Type of service: 'A' or 'T' or 'A/T'
 ##TSXtSrv (Eyecatcher)
======================================================================
 


Field Summary
protected static java.lang.String IdStr
           
private  java.lang.String Name
           
private  TSSrv Srv
           
private  java.util.ArrayList<TSStStp> Stop
           
private  int Time
           
private  int UiD
           
 
Constructor Summary
protected TSXtSrv()
          .
protected TSXtSrv(java.lang.String nme)
          .
 
Method Summary
protected  TSSrv chgSrv(TSSrv cs)
          .
protected  int chkID(int v)
          .
protected  int chkTime(int t)
          .
 int compareTo(TSXtSrv vS)
          .
protected  java.util.Iterator<java.lang.String> crDef(java.util.ArrayList<java.lang.String> LneT, boolean trf, java.lang.String prfx)
          .
protected  java.util.ArrayList<TSStStp> fndTrf(TSTrf cTrf)
          .
protected  java.lang.String getName()
          .
protected  java.util.ArrayList<TSStStp> getStp(int c)
          .
protected  boolean setID(int v)
          .
protected  boolean setTime(int z)
          .
protected  java.lang.String toStr()
          .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IdStr

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

Name

private java.lang.String Name

Time

private int Time

UiD

private int UiD

Srv

private TSSrv Srv

Stop

private java.util.ArrayList<TSStStp> Stop
Constructor Detail

TSXtSrv

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


TSXtSrv

protected TSXtSrv(java.lang.String nme)
.
=====================================================================
 Constructor: (2) Create Standard-Entry
=====================================================================
  

Method Detail

chgSrv

protected TSSrv chgSrv(TSSrv cs)
.
=====================================================================
 Methode "chgSrv"
 Manage reference to master-service-definition. Change or return it.
 ##chgSrv.TSXtSrv (Eyecatcher)
=====================================================================
  


chkID

protected final int chkID(int v)
.
=====================================================================
 Methode "chkID"
 Check 'Service-UID' of the current object. Return error-marker if
   the correct value was not encountered.
 Attention: Due to positive values for UID, you can get the current
            UID, if a negative argument is specified.
 ##chkID.TSXtSrv (Eyecatcher)
=====================================================================
  


chkTime

protected int chkTime(int t)
.
=====================================================================
 Methode "chkTime"
 Check current 'Start-Time' for ascending values
 Attention: Due to positive values for time, you can get the current
            time-value, if a negative argument is specified.
 ##chkTime.TSXtSrv (Eyecatcher)
=====================================================================
  


compareTo

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

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

crDef

protected final java.util.Iterator<java.lang.String> crDef(java.util.ArrayList<java.lang.String> LneT,
                                                           boolean trf,
                                                           java.lang.String prfx)
.
=====================================================================
 Method "crDef"
 Create an output-line-block for whole 'Service'-Definition (A/T)
 ##crDef.TSXtSrv (Eyecatcher)
=====================================================================
  


fndTrf

protected java.util.ArrayList<TSStStp> fndTrf(TSTrf cTrf)
.
=====================================================================
 Method "fndTrf"
 Correlate A-version of a 'Xt-Service' with it's T-version. If a
   'match is found the values are copied to the A-version.
 Returns the 'StationStop'-table of the connected service(T) if
   correlation was successful (else 'null')
 Attention: In order to select the correct traffic-entry Time-value
                must match, too.
 ##fndTrf.TSXtSrv (Eyecatcher)
=====================================================================
  


getName

protected java.lang.String getName()
.
=====================================================================
 Methode "getName"
 aktuellen Namen liefern
 ##getName.TSXtSrv (Eyecatcher)
=====================================================================
  


getStp

protected java.util.ArrayList<TSStStp> getStp(int c)
.
=====================================================================
 Method "getStp"
 Get current list of 'StationStop'-definitions. Create it, if
   neccessary.
 If the argumnent ('c') specifies a positive value (c>0) an new
   table is created and inserted. A potentially existing table is
   overwritten in this case.
 ##getStp.TSXtSrv (Eyecatcher)
=====================================================================
  


setTime

protected boolean setTime(int z)
.
=====================================================================
 Method "setTime"
 Store new 'Start-Time' of service.
 Current value is overwritten in any case and a marker is returned,
   if the new value overwrites a valid value.
 ##setTime.TSXtSrv (Eyecatcher)
=====================================================================
  


setID

protected final boolean setID(int v)
.
=====================================================================
 Methode "setID"
 Store new 'Service-ID' of object
 Current value is overwritten in any case and a marker is returned,
   if the new value overwrites a valid value.
 ##setID.TSXtSrv (Eyecatcher)
=====================================================================
  


toStr

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