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 */
021package org.biojava.nbio.structure.secstruc;
022
023import java.io.Serializable;
024
025/**
026 * A Ladder is a set of one or more consecutive bridges of identical type. A
027 * Bridge is a Ladder of length one.
028 *
029 * @author Andreas Prlic
030 * @author Aleix Lafita
031 *
032 */
033public class Ladder implements Serializable  {
034
035        private static final long serialVersionUID = -1658305503250364409L;
036
037        int from; // start of the first strand
038        int to; // end of the first strand
039        int lfrom; // start of the second strand
040        int lto; // end of the second strand
041
042        BridgeType btype;
043
044        int connectedTo; // another ladder with higher index connected to this
045        int connectedFrom; // another ladder with lower index connected to this
046
047        public int getFrom() {
048                return from;
049        }
050
051        public int getTo() {
052                return to;
053        }
054
055        public int getLfrom() {
056                return lfrom;
057        }
058
059        public int getLto() {
060                return lto;
061        }
062
063        public BridgeType getBtype() {
064                return btype;
065        }
066
067        public int getConnectedTo() {
068                return connectedTo;
069        }
070
071        public int getConnectedFrom() {
072                return connectedFrom;
073        }
074
075}