X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fsurfacing%2FBasicDomain.java;h=1c9ba39ee48f6ebf855282e4bc192f196c20b6d6;hb=c6b74aa20ac0c91099597b9474e7da6c0ffdb9a6;hp=a5a2da5c79dd52efb5471b87acb1a903e75d9458;hpb=48f7a89be9d34f1930a1f863e608235cc27184c5;p=jalview.git diff --git a/forester/java/src/org/forester/surfacing/BasicDomain.java b/forester/java/src/org/forester/surfacing/BasicDomain.java index a5a2da5..1c9ba39 100644 --- a/forester/java/src/org/forester/surfacing/BasicDomain.java +++ b/forester/java/src/org/forester/surfacing/BasicDomain.java @@ -6,7 +6,7 @@ // Copyright (C) 2008-2009 Christian M. Zmasek // Copyright (C) 2008-2009 Burnham Institute for Medical Research // All rights reserved -// +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either @@ -16,7 +16,7 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA @@ -120,6 +120,7 @@ public class BasicDomain implements Domain { _per_domain_score = per_domain_score; } + @Override public void addGoId( final GoId go_id ) { getDomainId().getGoIds().add( go_id ); } @@ -129,6 +130,7 @@ public class BasicDomain implements Domain { * insensitive) and their numbers. * */ + @Override public int compareTo( final Domain domain ) { if ( domain.getClass() != this.getClass() ) { throw new IllegalArgumentException( "attempt to compare [" + domain.getClass() + "] to " + "[" @@ -162,22 +164,27 @@ public class BasicDomain implements Domain { } } + @Override public DomainId getDomainId() { return _id; } + @Override public int getFrom() { return _from; } + @Override public GoId getGoId( final int i ) { return getDomainId().getGoIds().get( i ); } + @Override public short getNumber() { return _number; } + @Override public int getNumberOfGoIds() { return getDomainId().getGoIds().size(); } @@ -192,18 +199,22 @@ public class BasicDomain implements Domain { return _per_domain_score; } + @Override public double getPerSequenceEvalue() { return _per_sequence_evalue; } + @Override public double getPerSequenceScore() { return _per_sequence_score; } + @Override public int getTo() { return _to; } + @Override public short getTotalCount() { return _total_count; }