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 * @return the left street number range associated with this RT6 027 */ 028 public DirectedStreetNumberRange getLeftRange(){ 029 return lftRange; 030 } 031 032 033 /** 034 * @return the right street number range associated with this RT6 035 */ 036 public DirectedStreetNumberRange getRightRange(){ 037 return rgtRange; 038 } 039 040 } // TigerRT6