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 * Created on Oct 10, 2011
021 * Created by Andreas Prlic
022 *
023 * @since 3.0.2
024 */
025package org.biojava.nbio.structure.align.xml;
026
027import org.biojava.nbio.structure.align.client.PdbPair;
028
029import java.io.StringWriter;
030import java.util.SortedSet;
031import java.util.TreeSet;
032
033public class PdbPairsMessage {
034
035        String method ;
036
037        SortedSet<PdbPair> pairs;
038
039        public PdbPairsMessage(){
040
041                method = PdbPairXMLConverter.DEFAULT_METHOD_NAME;
042
043                pairs = new TreeSet<PdbPair>();
044
045        }
046
047        public String getMethod() {
048                return method;
049        }
050        public void setMethod(String method) {
051                this.method = method;
052        }
053        public SortedSet<PdbPair> getPairs() {
054                return pairs;
055        }
056        public void setPairs(SortedSet<PdbPair> pairs) {
057                this.pairs = pairs;
058        }
059
060
061        @Override
062        public String toString(){
063
064                StringWriter w = new StringWriter();
065
066                w.append("PdbPairsMessage: ");
067                w.append("algorithm: ");
068                w.append(method);
069                w.append(" pairs: ");
070                w.append(pairs.toString());
071
072
073                return w.toString();
074
075        }
076
077
078
079}