X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fsurfacing%2FSimpleDomain.java;h=782ce20691ae0ff63e4aad6f33fa1f00cfb7d1fb;hb=665e671efec73fcb36a9aac45f119330f290fa81;hp=2d1826e30e0099d721788faf48e10262b4904273;hpb=87d34f343d0262cd0c009c6f1da058a5a217bc64;p=jalview.git diff --git a/forester/java/src/org/forester/surfacing/SimpleDomain.java b/forester/java/src/org/forester/surfacing/SimpleDomain.java index 2d1826e..782ce20 100644 --- a/forester/java/src/org/forester/surfacing/SimpleDomain.java +++ b/forester/java/src/org/forester/surfacing/SimpleDomain.java @@ -26,6 +26,7 @@ package org.forester.surfacing; +import org.forester.protein.BasicDomain; import org.forester.protein.Domain; import org.forester.util.ForesterUtil; @@ -35,19 +36,15 @@ import org.forester.util.ForesterUtil; */ public class SimpleDomain implements Domain { - final private String _id; + final private short _id; public SimpleDomain( final String id ) { if ( ForesterUtil.isEmpty( id ) ) { throw new IllegalArgumentException( "attempt to create protein domain with null or empty id" ); } - _id = id; + _id = BasicDomain.obtainIdAsShort( id ); } - // ^^ @Override - // ^^ public void addGoId( final GoId go_id ) { - // ^^ throw new RuntimeException( "method not implemented" ); - // ^^ } @Override public int compareTo( final Domain domain ) { if ( this == domain ) { @@ -58,7 +55,7 @@ public class SimpleDomain implements Domain { @Override public String getDomainId() { - return _id; + return BasicDomain.obtainIdFromShort( _id ); } @Override @@ -66,10 +63,6 @@ public class SimpleDomain implements Domain { throw new RuntimeException( "method not implemented" ); } - // ^^ @Override - // ^^ public GoId getGoId( final int i ) { - // ^^ throw new RuntimeException( "method not implemented" ); - // ^^ } @Override public int getLength() { throw new RuntimeException( "method not implemented" ); @@ -80,10 +73,6 @@ public class SimpleDomain implements Domain { throw new RuntimeException( "method not implemented" ); } - // ^^ @Override - // ^^ public int getNumberOfGoIds() { - // ^^ throw new RuntimeException( "method not implemented" ); - // ^^ } @Override public double getPerDomainEvalue() { throw new RuntimeException( "method not implemented" ); @@ -95,20 +84,6 @@ public class SimpleDomain implements Domain { } @Override - public double getPerSequenceEvalue() { - throw new RuntimeException( "method not implemented" ); - } - - @Override - public double getPerSequenceScore() { - throw new RuntimeException( "method not implemented" ); - } - - public String getSearchParameter() { - throw new RuntimeException( "method not implemented" ); - } - - @Override public int getTo() { throw new RuntimeException( "method not implemented" ); } @@ -117,12 +92,4 @@ public class SimpleDomain implements Domain { public short getTotalCount() { throw new RuntimeException( "method not implemented" ); } - - public boolean isCompleteQueryMatch() { - throw new RuntimeException( "method not implemented" ); - } - - public boolean isCompleteTargetMatch() { - throw new RuntimeException( "method not implemented" ); - } }