001/*
002 * BioJava development code
003 *
004 * This code may be freely distributed and modified under the
005 * terms of the GNU Lesser General Public Licence.  This should
006 * be distributed with the code.  If you do not have a copy,
007 * see:
008 *
009 *      http://www.gnu.org/copyleft/lesser.html
010 *
011 * Copyright for this code is held jointly by the individual
012 * authors.  These should be listed in @author doc comments.
013 *
014 * For more information on the BioJava project and its aims,
015 * or to join the biojava-l mailing list, visit the home page
016 * at:
017 *
018 *      http://www.biojava.org/
019 *
020 * Author: Daniel Asarnow
021 * Date:   2012-6-23
022 */
023
024package org.biojava.nbio.structure.cath;
025
026import java.io.Serializable;
027
028/**
029 *
030 * @author Daniel Asarnow
031 */
032public class CathSegment implements Serializable{
033
034        public static final long serialVersionUID = 1L;
035
036        /**
037         * The number of this segment within the domain.
038         */
039        Integer segmentId;
040
041        /**
042         * The first residue in the segment.
043         * Refers to the complete residue specification (sequence number AND insertion code).
044         */
045        String start;
046
047         /**
048         * The last residue in the segment.
049         * Refers to the complete residue specification (sequence number AND insertion code).
050         */
051        String stop;
052
053        /**
054         * Number of residues in the segment. This value is parsed, not calculated.
055         */
056        Integer length;
057
058        /**
059         * FASTA header.
060         */
061        String sequenceHeader;
062
063        /**
064         * FASTA sequence.
065         */
066        String sequence;
067
068        public Integer getSegmentId() {
069                return segmentId;
070        }
071
072        public void setSegmentId(Integer segmentId) {
073                this.segmentId = segmentId;
074        }
075
076        public String getStart() {
077                return start;
078        }
079
080        public void setStart(String start) {
081                this.start = start;
082        }
083
084        public String  getStop() {
085                return stop;
086        }
087
088        public void setStop(String  stop) {
089                this.stop = stop;
090        }
091
092        public Integer getLength() {
093                return length;
094        }
095
096        public void setLength(Integer length) {
097                this.length = length;
098        }
099
100        public String getSequenceHeader() {
101                return sequenceHeader;
102        }
103
104        public void setSequenceHeader(String sequenceHeader) {
105                this.sequenceHeader = sequenceHeader;
106        }
107
108        public String getSequence() {
109                return sequence;
110        }
111
112        public void setSequence(String sequence) {
113                this.sequence = sequence;
114        }
115
116        @Override
117        public String toString() {
118                return "CathSegment [segmentId=" + segmentId + ", start=" + start
119                                + ", stop=" + stop + ", length=" + length + ", sequenceHeader="
120                                + sequenceHeader + ", sequence=" + sequence + "]";
121        }
122
123
124}