Class RollingStockGroup<T extends RollingStock>

    • Method Detail

      • getName

        public java.lang.String getName()
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • add

        public void add​(T rs)
      • delete

        public void delete​(T rs)
      • getGroup

        public java.util.List<TgetGroup()
      • getAdjustedWeightTons

        public int getAdjustedWeightTons()
        Get a group's adjusted weight
        group's weight
      • isLead

        public boolean isLead​(T rs)
      • getSize

        public int getSize()
        Gets the number of rolling stock in this group
        number of elements in this group
      • setLead

        public void setLead​(T rs)
        Sets the lead for this group. RollingStock must be part of the group. The rolling stock that make up this group will have the attributes of the lead. However, the length attribute is the sum of all unit lengths plus the coupler lengths.
        rs - lead for this group.