Package org.forester.protein
Class BasicDomain
java.lang.Object
org.forester.protein.BasicDomain
- All Implemented Interfaces:
Comparable<Domain>
,Domain
-
Constructor Summary
ConstructorDescriptionBasicDomain
(String id) BasicDomain
(String id, int from, int to, short number, short total_count, double per_domain_evalue, double per_domain_score) -
Method Summary
Modifier and TypeMethodDescriptionint
Basic domains are compared/sorted based upon their identifiers (case insensitive) and their numbers.boolean
Basic domains are considered equal if they have the same identifier (case sensitive).int
getFrom()
int
short
double
double
int
getTo()
short
int
hashCode()
static final short
static final String
obtainIdFromShort
(short id) toString()
-
Constructor Details
-
BasicDomain
-
BasicDomain
public BasicDomain(String id, int from, int to, short number, short total_count, double per_domain_evalue, double per_domain_score)
-
-
Method Details
-
compareTo
Basic domains are compared/sorted based upon their identifiers (case insensitive) and their numbers.- Specified by:
compareTo
in interfaceComparable<Domain>
-
equals
Basic domains are considered equal if they have the same identifier (case sensitive). -
getDomainId
- Specified by:
getDomainId
in interfaceDomain
-
getFrom
public int getFrom() -
getLength
public int getLength() -
getNumber
public short getNumber() -
getPerDomainEvalue
public double getPerDomainEvalue()- Specified by:
getPerDomainEvalue
in interfaceDomain
-
getPerDomainScore
public double getPerDomainScore()- Specified by:
getPerDomainScore
in interfaceDomain
-
getTo
public int getTo() -
getTotalCount
public short getTotalCount()- Specified by:
getTotalCount
in interfaceDomain
-
hashCode
public int hashCode() -
toString
-
toStringBuffer
-
obtainIdAsShort
-
obtainIdFromShort
-