3 // FORESTER -- software libraries and applications
4 // for evolutionary biology research and applications.
6 // Copyright (C) 2008-2009 Christian M. Zmasek
7 // Copyright (C) 2008-2009 Burnham Institute for Medical Research
10 // This library is free software; you can redistribute it and/or
11 // modify it under the terms of the GNU Lesser General Public
12 // License as published by the Free Software Foundation; either
13 // version 2.1 of the License, or (at your option) any later version.
15 // This library is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // Lesser General Public License for more details.
20 // You should have received a copy of the GNU Lesser General Public
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 // Contact: phylosoft @ gmail . com
25 // WWW: www.phylosoft.org/forester
27 package org.forester.surfacing;
29 import org.forester.go.GoId;
30 import org.forester.protein.Domain;
31 import org.forester.protein.DomainId;
32 import org.forester.util.ForesterUtil;
35 * A limited implementation of Domain. Its intended use is for when only a
36 * domain identifier is needed. Note intended for general use.
38 public class SimpleDomain implements Domain {
40 final private DomainId _id;
42 public SimpleDomain( final String id_str ) {
43 if ( ForesterUtil.isEmpty( id_str ) ) {
44 throw new IllegalArgumentException( "attempt to create protein domain with null or empty id" );
46 _id = new DomainId( id_str );
50 public void addGoId( final GoId go_id ) {
51 throw new RuntimeException( "method not implemented" );
55 public int compareTo( final Domain domain ) {
56 if ( this == domain ) {
59 return getDomainId().compareTo( domain.getDomainId() );
63 public DomainId getDomainId() {
68 public int getFrom() {
69 throw new RuntimeException( "method not implemented" );
73 public GoId getGoId( final int i ) {
74 throw new RuntimeException( "method not implemented" );
78 public int getLength() {
79 throw new RuntimeException( "method not implemented" );
83 public short getNumber() {
84 throw new RuntimeException( "method not implemented" );
88 public int getNumberOfGoIds() {
89 throw new RuntimeException( "method not implemented" );
93 public double getPerDomainEvalue() {
94 throw new RuntimeException( "method not implemented" );
98 public double getPerDomainScore() {
99 throw new RuntimeException( "method not implemented" );
103 public double getPerSequenceEvalue() {
104 throw new RuntimeException( "method not implemented" );
108 public double getPerSequenceScore() {
109 throw new RuntimeException( "method not implemented" );
112 public String getSearchParameter() {
113 throw new RuntimeException( "method not implemented" );
118 throw new RuntimeException( "method not implemented" );
122 public short getTotalCount() {
123 throw new RuntimeException( "method not implemented" );
126 public boolean isCompleteQueryMatch() {
127 throw new RuntimeException( "method not implemented" );
130 public boolean isCompleteTargetMatch() {
131 throw new RuntimeException( "method not implemented" );