001    package ps6.tigerdb;
002    
003    
004    /**
005     * TigerRT6.java
006     *
007     * @author Felix S. Klock II
008     */
009    public class TigerRT6 extends TigerRwTLID {
010    
011        public static final long serialVersionUID = 90423;
012        @SuppressWarnings("unused")
013        private int rtsq;
014        private DirectedStreetNumberRange lftRange;
015        private DirectedStreetNumberRange rgtRange;
016    
017        public TigerRT6(String s) throws BadRecordException {
018            super(s, 76);
019            try { rtsq = toInt(s.substring(15,18));
020            } catch (NoInt e) { die(""); }
021    
022            lftRange = parseAddrRange(s.substring(18,29), s.substring(29,40));
023            rgtRange = parseAddrRange(s.substring(40,51), s.substring(51,62));
024        }
025    
026        /**
027         * @return the left street number range associated with this RT6
028         */
029        public DirectedStreetNumberRange getLeftRange() {
030            return lftRange;
031        }
032    
033    
034        /**
035         * @return the right street number range associated with this RT6
036         */
037        public DirectedStreetNumberRange getRightRange() {
038            return rgtRange;
039        }
040    
041    } // TigerRT6