git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
in progress
[jalview.git]
/
forester
/
java
/
src
/
org
/
forester
/
surfacing
/
SimpleDomain.java
diff --git
a/forester/java/src/org/forester/surfacing/SimpleDomain.java
b/forester/java/src/org/forester/surfacing/SimpleDomain.java
index
5182865
..
2d1826e
100644
(file)
--- a/
forester/java/src/org/forester/surfacing/SimpleDomain.java
+++ b/
forester/java/src/org/forester/surfacing/SimpleDomain.java
@@
-26,9
+26,7
@@
package org.forester.surfacing;
package org.forester.surfacing;
-import org.forester.go.GoId;
import org.forester.protein.Domain;
import org.forester.protein.Domain;
-import org.forester.protein.DomainId;
import org.forester.util.ForesterUtil;
/*
import org.forester.util.ForesterUtil;
/*
@@
-37,20
+35,19
@@
import org.forester.util.ForesterUtil;
*/
public class SimpleDomain implements Domain {
*/
public class SimpleDomain implements Domain {
- final private DomainId _id;
+ final private String _id;
- public SimpleDomain( final String id_str ) {
- if ( ForesterUtil.isEmpty( id_str ) ) {
+ public SimpleDomain( final String id ) {
+ if ( ForesterUtil.isEmpty( id ) ) {
throw new IllegalArgumentException( "attempt to create protein domain with null or empty id" );
}
throw new IllegalArgumentException( "attempt to create protein domain with null or empty id" );
}
- _id = new DomainId( id_str );
- }
-
- @Override
- public void addGoId( final GoId go_id ) {
- throw new RuntimeException( "method not implemented" );
+ _id = 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 ) {
@Override
public int compareTo( final Domain domain ) {
if ( this == domain ) {
@@
-60,7
+57,7
@@
public class SimpleDomain implements Domain {
}
@Override
}
@Override
- public DomainId getDomainId() {
+ public String getDomainId() {
return _id;
}
return _id;
}
@@
-69,11
+66,10
@@
public class SimpleDomain implements Domain {
throw new RuntimeException( "method not implemented" );
}
throw new RuntimeException( "method not implemented" );
}
- @Override
- public GoId getGoId( final int i ) {
- 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" );
@Override
public int getLength() {
throw new RuntimeException( "method not implemented" );
@@
-84,11
+80,10
@@
public class SimpleDomain implements Domain {
throw new RuntimeException( "method not implemented" );
}
throw new RuntimeException( "method not implemented" );
}
- @Override
- public int getNumberOfGoIds() {
- 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" );
@Override
public double getPerDomainEvalue() {
throw new RuntimeException( "method not implemented" );